1using Siemens.Automation.ModularApplicationCreator.Tia.Helper.Create_XML_Block.XmlBlocks.BlockFrames;
2using Siemens.Automation.ModularApplicationCreator.Tia.Openness;
3using Siemens.Engineering.Hmi;
4using Siemens.Engineering.Library.MasterCopies;
22 string instanceName, BlockGroup target)
24 return module.ResourceManagement.CreateInstanceDb(masterCopy, instanceName, target.Blocks);
36 string instanceName, BlockGroup target)
38 return module.ResourceManagement.CreateInstanceDb(libraryType, instanceName, target.Blocks);
51 string instanceName, BlockGroup target, PlcDevice m_plcDevice)
53 var instance_DB_of_MAC_use_casesFB =
new XmlInstDB(instanceName, masterCopy.Name);
54 instance_DB_of_MAC_use_casesFB.GenerateXmlBlock(m_plcDevice, target.Blocks);
65 hmiSoftware.ScreenFolder.Screens.CreateFrom((MasterCopy)screen);
This is the main class in which the workflow starts. Here are all sections for creating or generating...
All the functions to configure and generate parts of the library are defined here.
static DataBlock CreateInstanceDataBlock(MAC_use_casesEM module, FBLibraryType libraryType, string instanceName, BlockGroup target)
This function creates an instance DB in the target folder (folder under program blocks)
static void GenerateScreenFromMastercopy(HmiTarget hmiSoftware, LibraryMasterCopy screen)
This function creates the screen from a Mastercopy.
static DataBlock CreateInstanceDataBlock(MAC_use_casesEM module, FBMasterCopy masterCopy, string instanceName, BlockGroup target)
This function creates an instance DB in the target folder (folder under program blocks)
static void CreateInstanceDB_via_XmlInstDB(MAC_use_casesEM module, FBMasterCopy masterCopy, string instanceName, BlockGroup target, PlcDevice m_plcDevice)
This function can also create an instance DB in the target folder (folder under program blocks)