
Acyclical communication
76/98
SmartWire-DT Gateway | EU5C-SWD-ETHERCAT
DOC140901UM01EN | Revision 1 | English | 2015-03 | Released | Public
© Hilscher 2015
10.2.2
Querying the state of the read request
Querying the state of the read request
The
SDO
Upload Request
sent by the EtherCAT
®
master to the gateway
contains the following elements:
Element
Description
Data type
Value / value range
Address
Node ID of the gateway (according to project
configuration)
uint16
0…65535
Index
Object index for acyclical communication
uint16
0x2200
Sub index
Index for SDO Upload
uint8
0x02
Table 20: Elements of SDO Upload Request for a read request
Answer from the gateway
The
SDO
Upload Confirmation
sent by the gateway to the EtherCAT
®
master contains the following elements:
Element
Description
Data type
Value / value range
Header
Address
Node ID of the gateway (according to project
configuration)
uint16
0…65535
Index
Object index for acyclical communication
uint16
0x2200
Sub index
Index for SDO Upload
uint8
0x02
Size
Amount of data of the SDO Upload
-
10 Bytes + n
*
Data of SWD slave
Slave Address
Address of the SWD slave of which data has been read.
uint8
1…99
SWD Index
SWD index of the data which has been read, e. g. error
counter or firmware version.
uint8
0…255
Request Type
Type of request.
A read request has the value
1
uint8
0x01
Length
Length of the received response (payload data) in bytes
uint8
1…120
Job ID
Freely selectable value, serves as job identification
uint8
0…255
State
State of the response
uint8
Idle =
0
In Progress =
1
Finished =
2
Error =
3
Error Code
Error detected by the gateway
uint32
No error
=
0x00000000
JOBID_BUFFER_FULL
=
0xC0AD0002
JOB_DENIED
=
0xC0AD0003
NOT_AVAILABLE
=
0xC0AD0004
Data
Payload data which has been read according to SWD
Index, e. g. error counter or firmware version.
uint8 [n-1] * (…)
* n = amount of read bytes
Table 21: Elements of SDO Upload Confirmation for a read request