Modular Application Creator Use Case Based Documentation
Loading...
Searching...
No Matches
SoftwareUnits.cs
1using Siemens.Automation.ModularApplicationCreator.Tia.Openness;
2using Siemens.Automation.ModularApplicationCreator.Tia.Openness.SoftwareUnit;
3
5
6public class SoftwareUnits
7{
19 public static ISoftwareUnit GetOrCreateSoftwareUnit(PlcDevice plcDevice, string myUnitName, MAC_use_casesEM macUseCasesEm, string nameSpace = "")
20 {
21 ISoftwareUnit ssw = plcDevice.SoftwareUnits.GetOrCreateSoftwareUnit(myUnitName, macUseCasesEm);
22 ssw.NamespacePreset = nameSpace;
23 return ssw;
24 }
25
35 public static ISafetySoftwareUnit GetSafetySoftwareUnit(PlcDevice
36 plcDevice)
37 {
38 return plcDevice.SoftwareUnits.GetSafetySoftwareUnit();
39 }
40}
This is the main class in which the workflow starts. Here are all sections for creating or generating...
static ISafetySoftwareUnit GetSafetySoftwareUnit(PlcDevice plcDevice)
Retrieves the safety software unit from the specified PLC device.
static ISoftwareUnit GetOrCreateSoftwareUnit(PlcDevice plcDevice, string myUnitName, MAC_use_casesEM macUseCasesEm, string nameSpace="")
Retrieves an existing software unit or creates a new one if it doesn't exist in the specified PLC dev...