Diagnostics with the CP 340
8.3 Diagnostics via the S7-300 backplane bus
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03
143
1st, 3rd and 4th bytes:
The 1st, 3rd, and 4th bytes of the diagnostic data represent the error that has occurred.
Bit 0 in the 1st byte is the group error display (SF). Bit 0 is always set to "1" if at least one bit
from bits 1 to 7 is set to "1", i.e. if at least one error is entered in the diagnostics data.
Event 1st byte 3rd byte 4th byte
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Wire break 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Incorrect parameter 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
No parameter 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
RAM error 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
ROM error 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
System error 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Diagnosis Information (in KH Format)
The following table shows the 4 bytes diagnosis information of the CP 340 in the KH format.
Event 1. 1st byte 2. 2nd byte 3. 3rd byte 4. 4th byte
Wire break 25H 0CH 02H 00H
Incorrect
parameter
81H 0CH 00H 00H
No parameter 41H 0CH 00H 00H
RAM error 03H 0CH 00H 08H
ROM error 03H 0CH 00H 04H
System error 03H 0CH 00H 00H
Dependency of Diagnostics Alarm on CPU Operating Mode
A diagnostics alarm is generated via the I/O bus when fault events (rising edge) and back-to-
normal events (falling edge) occur.
When the CPU switches from STOP mode to RUN mode, the following happens:
● All events entered in the diagnostics buffer of the CPU are deleted,
● Events (both fault and back-to-normal) which occurred when the CPU was in STOP mode
are not stored,
● Events that are still present when the CPU is back to RUN mode are signaled via the
diagnostics alarm.