FC_WriteDataRequest - General Information

Overview

Type:

Function

Available as of:

V1.0.2.0

Task

This function sends the request for the WriteData service to a Sercos device. This service writes a parameter (IDN).

Functional Description

This function sends the request for the WriteData service to a Sercos device. The Sercos device is specified by its IP address. The data to be sent is transferred via the parameter i_stData. The response to the request is obtained with the function FC_WriteDataResponse.

Interface

Input

Data type

Description

i_sIPAddress

STRING[15]

IP address of the Sercos device

i_uiSlaveIndex

UDINT

Sercos slave index of the Sercos device (allows you to address Sercos devices A and B of a Lexium 62 Double Drive)

i_udiIDN

UDINT

Identification number (IDN) of the parameter to be written

i_stData

ST_Data

Structure to store the data to be written

Output

Data type

Description

q_udiTransactionID

UDINT

Returns the transaction ID to be used for receiving the response

Return Value

Data type

Description

ET_Result

Refer to ET_Result.