68
13.8 Read diagnostics information
Dependent on the previously executed command, the diagnostic request must be prepared .
The control and status byte must have value "00" before the following command sequence can be
started .
13.8.1 Command sequence view, read diagnostics in mode “Read UID”
Step 0:
diagnostics
event
Step 1:
set bit DR
Step 5:
wait for bit DR-
RDY
Step 6:
reset bit DR
Step 7:
wait for reset
bit DR-RDY
PLC process data output
Byte 1
0 0
0
0
0
0
0
1 AO
0
0
0
0
0
2 WR
0
0
0
0
0
3 RD
0
0
0
0
0
4 UR
0
0
0
0
0
5 0
0
0
0
0
0
6 DR
0
1
1
0
0
7 0
0
0
0
0
0
Byte 2 (data length)
0x00
0x00
0x00
0x00
0x00
Byte 3 (address MSB)
0x00
0x00
0x00
0x00
0x00
Byte 4 (address LSB)
0x00
0x00
0x00
0x00
0x00
…
…
…
…
…
…
Byte 19
0x00
0x00
0x00
0x00
0x00
Byte 20
0x00
0x00
0x00
0x00
0x00
Step 0:
diagnostics
event
Step 1:
set bit DR
Step 5:
wait for bit DR-
RDY
Step 6:
reset bit DR
Step 7:
wait for reset
bit DR-RDY
PLC process data input
Byte 1
0 TP
0
0
0
0
0
1 AI
0
0
0
0
0
2 WR-RDY
0
0
0
0
0
3 RD-RDY
0
0
0
0
0
4 UD
0
0
0
0
0
5 EF
0
0
0
0
0
6 DR-RDY
0
0
1
1
0
7 Diag
1
0
0
0
0
Byte 2
0x00
0x00
0x02
0x00
0x00
Byte 3
0x00
0x00
0xF1
0x00
0x00
Byte 4
0x00
0x00
0xFE
0x00
0x00
…
…
…
…
…
…
Byte 19
0x00
0x00
0x00
0x00
0x00
Byte 20
0x00
0x00
0x00
0x00
0x00