SyncReadVars (FUN)
FUNCTION SyncReadVars : SysTypes.RTS_IEC_HANDLE
Reads the given variables synchronously. The resulting variable list must be released by a followup call to SyncReadVarsRelease.
Note
The returned variable list may be reused for further read calls (without additional symbolic resolution) by calling SyncReadVarList
Important
As communication and symbolic resolution is involved, take care (async calls etc.) when using this method from an IEC-Task
- InOut:
Scope
Name
Type
Comment
Return
SyncReadVarsSysTypes.RTS_IEC_HANDLEA handle to the newly created variable list
Input
hPlcHandlerSysTypes.RTS_IEC_HANDLEThe instance of the PLCHandler to work 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 written
numSymbolsUDINTThe number of variables to read. In fact this number represents the number of entries in
ppInstPathsOutput
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
resultAn error code representing the result of the operation