
Acyclical communication
79/98
SmartWire-DT Gateway | EU5C-SWD-ETHERCAT
DOC140901UM01EN | Revision 1 | English | 2015-03 | Released | Public
© Hilscher 2015
10.3.2
Querying the state of the write request
Querying the state of the write 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 27: Elements of SDO Upload Request for a write 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
Data of SWD slave
Slave Address
Address of the SWD slave of which data has been read.
uint8
1…99
SWD Index
SWD index into which the data was written
uint8
0…255
Request Type
Type of request. A write request has the value
2
uint8
0x02
Length
Length of the written 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
Table 28: Elements of SDO Upload Confirmation for a write request
Note:
If no acknowledgement from the SWD slave has yet arrived at the
gateway, the
State
element (state of the response) has the value
1
(= „in
progress“).