Access to parameters in the PLC
Similar to the Call Chain, you can use the subitem methods to navigate to the desired object and parameter. The method input of the subitem methods can be interpreted as an index, a consecutive number from 1 to X, or as the OTCID of the object. The following sample shows how to access the TcCOM object of a mover:
120: // Read object name of mover 1 by index
sObjectNameIdx := ipXpu.TcIoMover(1).GetObjectName();
nState := nState + 1;
121: // Read object name of mover 1 by OTCID
sObjectNameOid := ipXpu.TcIoMover(16#010101C0).GetObjectName();
nState := nState + 1;
Both calls return Mover4330_1, as they access the same TcCOM object.
Further Information