I/O Terminal /
ERROR HANDLING AND DIAGNOSIS
65
Signaling the Standard-Bus error
A Standard-Bus error is indicated both on the I/O-ERR LED and in the DPV1 status message
in the DP diagnostic data (bytes 11-13).
Byte
Bit
Description
11
0
too many Standard-Bus command errors
11
1
too many Standard-Bus timeouts
11
2
too many Standard-Bus receive errors
11
3
too many Standard-Bus transmit errors
11
4
Standard-Bus reset error
11
5
general Standard-Bus error
12
0-7
Standard-Bus error code
13
0-7
Standard-Bus error argument
Standard-Bus reset
A Standard-Bus reset can be carried out manually by means of a DPV1 Write:
Slot number
Index
Byte
Value
0
2
1
1
2
0
0
99
3
0
8.3.2 Terminal
Diagnostics
If terminal diagnosis has been activated, then each channel of a complex terminals is
examined to see whether bit 6 in the status has changed (exceptions are the KL6001,
KL6011 and KL6021, where the relevant bit is bit 3), and whether the diagnostic bit of each
channel of a digital terminal with diagnostics (KL12x2 or KL22x2) has changed. If that is the
case, the existence of new diagnostic data is reported to the master, and two bytes of
diagnostic information starting at byte 16 of each channel for which a diagnosis is pending
are inserted (see Diagnostic data).
Terminal diagnosis can be activated in the UserPrmData:
Byte
Bit
Value
Description
7
1
1
bin
Terminal Diagnosis is active