Reading
Table 26: Read request
0x30
0x06
0x00
0x00
Command
(2 bytes)
Data length
(2 bytes)
Table 27: Read response
0xBn
nn (data length)
Response data (nnn bytes)
The data length identifies the number of response bytes that the user would like to
read. This is limited to a maximum of 4,095 bytes (0x0FFF). The maximum is also lim‐
ited by the network's Maximum Transmission Unit (MTU). This is usually 1,500 bytes for
the Ethernet.
The response telegram contains the returned data lengths (without the two leading
bytes which designate the response indicator 0xB and the length itself).
If exactly 4 bytes are requested then an abbreviated read request is possible:
Table 28: Short read request
0x30
0x02
Command (2 bytes)
Table 29: Short read response
0xB0
0x04
Response data (4 bytes)
Example: Reading out measured values from channel A (short)
Read request: 0x3002 0x0D60
Read response: 0xB004 0x0012D687 (4 bytes are output with the value nnnnnnn nm)
Example: Reading out user-defined application tag
Read request: 0x3006 0x0000 0x0160 0x001E
Read response: 0xB01E (30 characters for user-defined application tag)
Writing
Table 30: Write request
0x40
0x02
Command
(2 bytes)
0nnn (data
length)
Writing data (nnn
bytes)
Table 31: Write response
0xC0
0x00
The data length identifies the number of response bytes that the user would like to
write. This is limited to a maximum of 4,095 bytes (0x0FFF). The maximum is also lim‐
ited by the network's Maximum Transmission Unit (MTU). This is usually 1,500 bytes for
the Ethernet.
Example: Setting the sampling rate to 100
μ
s
Write request: 0x4002 0x0C10 0x0004 0x00000003
Write response: 0xC000
Example: Determining user-defined application tag
Write response: 0x4002 0x0160 0x001E (30 characters for user-defined application
tag)
Write response: 0xC000
OPERATION
7
8021391/17Y6/2020-05-11 | SICK
O P E R A T I N G I N S T R U C T I O N S | OD5000
63
Subject to change without notice