SyncWriteVarListToPlc (FUN)ΒΆ
FUNCTION SyncWriteVarListToPlc : Error
Writes 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 - SyncWriteVarListToPlc- 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 write. - ppValues- POINTER TO POINTER TO BYTE - A POINTER to an ARRAY of POINTERs to the values that should be written. - pulSizes- POINTER TO UDINT - An optional POINTER to an ARRAY of sizes of each item. If omitted, the performance of the write operation might not be optimal because the according information has to be derived from the internal symbol tables. - numVars- UDINT- The number of variables to write. In fact this number represents the sizes of the arrays given by - ppValuesand- pulSizesso all three arrays are expected to have the same size.
