public PlanningSegment.PLCAddress AddPLCAddress()
public: PlanningSegment.PLCAddress^ AddPLCAddress();
Return Value
Returns created element.
public PlanningSegment.PLCAddress AddPLCAddress()
public: PlanningSegment.PLCAddress^ AddPLCAddress();
//create new planning object PlanningSegment oNewPCTLoop = PlanningSegment.Create(oSegmentDefinition); //add new PLC address PlanningSegment.PLCAddress oNewAddress = oNewPCTLoop.AddPLCAddress(); //set values oNewAddress.Direction = PlanningSegment.PLCAddress.Enums.PlcAddressDirection.Input; oNewAddress.Address = "A2.0"; oNewAddress.DataType = "WORD"; oNewAddress.SymbolicAddress = "=EB3+ET1-H2:X1"; oNewAddress.Configuration = "Siemens SIMATIC S7"; oNewAddress.Station = "Station 300";