FC_SyncReadSlaveUserData - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

Task

Writing the parameters SlaveUserData[0] ... [3] consistently.

Description

In the case of the encoder network (controller synchronization), application-specific data are transferred cyclically from the synchronization slave to the synchronization master. This function allows a consistent data record to be read from the parameters SlaveUserData[0] ... [3] of the synchronization master (synchronized module). As a call-up parameter, it only contains a pointer to a data range (i_dwUserData) and its size (i_uiSizeOfUserData, maximum 16 bytes). This allows the content of the parameter to be displayed on a UDINT32-ARRAY or on a STRUCT.

Interface

Input

Data type

Description

i_diSyncModuleId

DINT

Logical address of the synchronized module

i_dwUserData

DWORD

Pointer to a data structure to which the data is to be copied

i_uiSizeOfUserData

UINT

Number of bytes to be copied to this data structure

This value may not exceed 16.

Return Value

Data type

Description

DINT

0: Data record could be read.

-1: An error is detected.