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
20 plcDevice, string myUnitName, MAC_use_casesEM macUseCasesEm)
21 {
22 return plcDevice.SoftwareUnits.GetOrCreateSoftwareUnit(myUnitName, macUseCasesEm);
23 }
24
34 public static ISafetySoftwareUnit GetSafetySoftwareUnit(PlcDevice
35 plcDevice)
36 {
37 return plcDevice.SoftwareUnits.GetSafetySoftwareUnit();
38 }
39}
This is the main class in which the workflow starts. Here are all sections for creating or generating...
static ISoftwareUnit GetOrCreateSoftwareUnit(PlcDevice plcDevice, string myUnitName, MAC_use_casesEM macUseCasesEm)
Retrieves an existing software unit or creates a new one if it doesn't exist in the specified PLC dev...
static ISafetySoftwareUnit GetSafetySoftwareUnit(PlcDevice plcDevice)
Retrieves the safety software unit from the specified PLC device.