Modular Application Creator Use Case Based Documentation
Loading...
Searching...
No Matches
IntegrateLibraries.cs
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;
5
7
12{
21 public static DataBlock CreateInstanceDataBlock(MAC_use_casesEM module, FBMasterCopy masterCopy,
22 string instanceName, BlockGroup target)
23 {
24 return module.ResourceManagement.CreateInstanceDb(masterCopy, instanceName, target.Blocks);
25 }
26
35 public static DataBlock CreateInstanceDataBlock(MAC_use_casesEM module, FBLibraryType libraryType,
36 string instanceName, BlockGroup target)
37 {
38 return module.ResourceManagement.CreateInstanceDb(libraryType, instanceName, target.Blocks);
39 }
40
41
50 public static void CreateInstanceDB_via_XmlInstDB(MAC_use_casesEM module, FBMasterCopy masterCopy,
51 string instanceName, BlockGroup target, PlcDevice m_plcDevice)
52 {
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);
55 }
56
63 public static void GenerateScreenFromMastercopy(HmiTarget hmiSoftware, LibraryMasterCopy screen)
64 {
65 hmiSoftware.ScreenFolder.Screens.CreateFrom((MasterCopy)screen);
66 }
67}
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)