Access to TcIo parameters

In general, all TcIo parameters on the TcCOM object server can be accessed using the PLC. The following sample shows how to read/write the MoverParametrizationSet OTCID of a mover. The PLC code shown represents the read access and write access to this TcIo parameter.

This principle works in the same way for all methods and parameters, according to the Call Chain of the Tc3_XPlanarUtility.

10: // Read object id of the parametrization set of mover 1 
     nParaSetOid := ipXpu.TcIoMover(1).GetParameterizationSetId();  
     nState := nState + 1;

11: // Write object id of a parametrization set to mover 2  
     IF ipXpu.TcIoMover(2).SetParameterizationSetId(nParaSetOid) THEN  
          nState := nState + 1;  
     END_IF
Access to TcIo parameters 1:

Example Mover Parameter Set

Access to TcIo parameters is shown as an example by reading the MoverParametrizationSet OTCID of a mover. Calling the Init parameters is done in the same way for all TcIo parameters.

Access to TcIo parameters 2:
Expand Solution Explorer
Double-click on SYSTEM
Access to TcIo parameters 3:
Click on the Parameter (Init) tab
Expand General
Read the value for ParametrizationSetId