FC_SyncWriteDataOutUserData - 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 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.

Interface

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.

Return Value

Data type

Description

DINT

0: Data record could be written.

-1: An error is detected.