EtherCAT Programming Guide EtherCAT CoE Standard Communication
March, 2017 7-7
7
7.5 _ECAT_Slave_SDO_Read_Response
Syntax
U16 PASCAL _ECAT_Slave_SDO_Read_Response (U16 CardNo, U16 NodeID,
U16 SlotNo, U16* Done, U8* Data, U32* ErrorCode)
Purpose
This is for reading the returned data from the slave.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
Done U16* Status
0: Completed
1: In execution
2: Error
Data U8 Data Data of the received message
ErrorCode U32* Number Error code
Example
U16 Status;
U16 CardNo=16,NodeID=1,SlotNo=0;
U16 Index=0x6040, SubIndex=0, DataSize=4;
U8 Data[4] = {0};
U32 ErrorCode;
Status = _ECAT_Slave_SDO_Read_Response (CardNo, NodeID, SlotNo,
&Done, Data, &ErrorCode);