SyncReadVarList (FUN)

FUNCTION SyncReadVarList : Error

Reads the given variable list synchronously. The list must have been created previously by a call to SyncReadVars

Important

As communication is involved, take care (async calls etc.) when using this method from an IEC-Task

InOut:

Scope

Name

Type

Comment

Return

SyncReadVarList

Error

An errorcode representing the result of this operation

Input

hPlcHandler

SysTypes.RTS_IEC_HANDLE

The instance of the PLCHandler to work on.

hVarList

SysTypes.RTS_IEC_HANDLE

The variable list to read.

Output

ppVarInfos

POINTER TO POINTER TO VariableValue

An ARRAY OF POINTERs to VarInfo instances representing each single read value

numVarsResult

UDINT

The size of the array of returned variables