VarListDefine (FUN)ΒΆ
FUNCTION VarListDefine : SysTypes.RTS_IEC_HANDLE
Creates a new variable list that will be cyclically updated by the underlying PLCHandler instance. The returned handle must be deleted by calling VarListDelete if no longer in use.
Important
Calling this method might take some time (for registering the list in the connected PLC) so be careful when calling from an IEC-Task. Typically this method should be called in an asynchronous way.
- InOut:
Scope
Name
Type
Comment
Return
VarListDefineSysTypes.RTS_IEC_HANDLEA handle to the newly created variable list
Input
hPlcHandlerSysTypes.RTS_IEC_HANDLEThe instance to define the variable list on.
ppInstPathsPOINTER TO POINTER TO BYTE
A POINTER to an ARRAY of POINTERs to zero terminated ASCII STRINGs representing the instance paths that should be monitored
numVarsUDINTThe number of variables for the new variable list as pointed to by
ppInstPathsupdateRateUDINTThe update rate for this variable list in milliseconds
Output
resultAn error code representing the result of the operation