KUNBUS-COM EtherCAT
37 / 135
Transmission block with fixed length
Status code
(1 byte)
Error code
(2 bytes)
Address area**
(2 bytes)
Description
0x00
0xXXXX
0xXXXX
NO_PREVIOUS_OPERATION
0x01
0x0000
0xXXXX
WRITE_SUCCESS
0x02
ERROR_CODE
1
0x0000-0xFFFF
WRITE_FAILURE
1
See Table "ErrorCode"
** Address where an error occurs
Reading 2 bytes (Word)
This access type is used if just 1 register is to be read from a
memory register of the module by the Master. The Master first sends
a data block with a fixed length of 5 bytes, which have the following
content:
Transmission block with fixed length
Command
code
(1 byte)
Address area
(2 bytes)
Not
used
(2 bytes)
Description
0x10
0x0000-0xFFFF
0xXXXX
READ_WORD
0x00
0xXXXX
0xXXXX
NO_OPERATION*
* This command allows the master to request the status of a read
request without an additional read or write request having to be
executed.
Theoretically, you could use all memory register addresses between
0 and 0xFFFF. In practice, however, the write access is limited to
registers that are enabled for this purpose.
During transmission of the first data block, the module sends the
status of the previous data transmission. The module first returns the
data to be read when sending the next data block. If, however, no
further write or read operation should follow the read access, then
the Master must send another data block with the command code 0
("NO_OPERATION") for retrieving the data to be read, in which the
module returns the status for the last write access operation.
The response from the module is structured as follows for all read
access operations:
Transmission block with fixed length
Status code
(1 byte)
Error code
(2 bytes)
Data area
(2 byte)
Description
0x00
0xXXXX
0xXXXX
NO_PREVIOUS_OPERATION
0x01
0x0000
0x0000-0xFFFF
READ_SUCCESS
0x02
ERROR_CODE
1
0xXXXX
READ_FAILURE
1
See Table "ErrorCode"
Components