FC_SercosReadServiceDataByTopAddr

 

FC_SercosReadServiceDataByTopAddr - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.35.2.0

Description

FC_SercosReadServiceDataByTopAddr reads out data via the Sercos service channel from the addressed device.

Interface

Input

Data type

Description

i_wTopoAddr

WORD

Topological address of the Sercos device

i_dwIDN

DWORD

Data Service IDN

i_wType

WORD

Data Service Type

o0: read name

o1: read attribute

o2: read unit

o3: read min. value

o4: read max. value

o5: read user data

o6: read user data with variable length

o7: execute command

i_dwPointerToData

DWORD

Pointer to the data memory, filled with the actual length of the data bytes

i_wMaxDataLen

WORD

Actual length of the data bytes to read

Input/Output

Data type

Description

iq_uiReadDataLen

UINT

UINT variable to read out the data length of the Sercos parameter (i_wType=6)

iq_uiMaxReadDataLen

UINT

UINT variable to read out the maximum data length of the Sercos parameter (i_wType=6)

Return Value

Data type

Description

DINT

0: OK

-1: The topological address is invalid.

-431: Error detected during service request (for example, timeout)

-445: Service timeout

-461: In the current phase, reading out parameters via the service channel is not supported.

-462: The addressed axis does not support the ServiceDataRead function.

-464: Invalid service transfer