FC_SyncReadDataInUserData - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

Task

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

Description

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 read a consistent data record from the parameters UserData[0] ... [3] of the synchronized encoder input. As a call up 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 the parameter to be displayed on a UDINT32-ARRAY or on a STRUCT.

Interface

Input

Data type

Description

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.