FC_SyncWriteMasterUserData - General Information
Type: |
Function |
Available as of: |
SystemInterface_1.32.6.0 |
Versions: |
Current version |
Writing the parameters MasterUserData[0] ... [3] consistently.
In the case of the encoder network (controller synchronization), application-specific data are transferred cyclically from the synchronization master to the synchronization slave. This function allows you to write a consistent data record into the parameters MasterUserData[0] ... [3] of the synchronization master. 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. |