FC_SyncWriteDataOutUserData - General Information
Type: |
Function |
Available as of: |
SystemInterface_1.32.6.0 |
Versions: |
Current version |
Writing the parameters UserData[0] ... [3] consistently.
In the encoder network (controller synchronization), application-specific data is transferred cyclically from the synchronized encoder output to the synchronized encoder input. This function allows you to write a consistent data record into the parameters UserData[0] ... [3] of the synchronized encoder output. As a call parameter, it only contains a pointer to a data range (i_dwUserData) and its size (i_uiSizeOfUserData, max. 16 bytes). This allows the content of a UDINT32-ARRAY or a STRUCT to be mapped to the parameter.
Input |
Data type |
Description |
---|---|---|
i_dwUserData |
DWORD |
Pointer to a data structure from which the data are to be copied |
i_uiSizeOfUserData |
UINT |
Number of bytes to be copied from this data structure This value may not exceed 16. |
Data type |
Description |
---|---|
DINT |
0: Data record could be written. -1: An error is detected. |