SyncReadVarListFromPlc (FUN)
FUNCTION SyncReadVarListFromPlc : Error
Reads the given variable list synchronously. The list must have been created previously by a call to SyncDefineVarList
Important
As communication is involved, take care (async calls etc.) when using this method from an IEC-Task
- InOut:
Scope
Name
Type
Comment
Return
SyncReadVarListFromPlcAn errorcode representing the result of this operation
Input
hPlcHandlerSysTypes.RTS_IEC_HANDLEThe instance of the PLCHandler to work on.
hVarListSysTypes.RTS_IEC_HANDLEThe variable list to read.
Output
ppVarInfosPOINTER TO POINTER TO VariableValue
An ARRAY OF POINTERs to VarInfo instances representing each single read value
numVarsResultUDINTThe size of the array of returned variables