Beruflich Dokumente
Kultur Dokumente
com
https://support.industry.siemens.com/cs/document/42781105/how-do-you-proceed-when-peripheral-device-errors-are-detected-bythe-s7-1200?dti=0&lc=en-WW
No.
Evaluating the diagnostics error events with the "Diagnostic error interrupt" organization block
OB82
1/11
Fig. 01
2/11
Reading out the startup information of the "Diagnostic error interrupt" OB82.
Double-click the "Diagnostic error interrupt [OB82]" item of your S7-1200 PLC in the "Project
tree".
In the directory "Instructions > Basic instructions" you select the commands "Move operations >
MOVE".
Use drag-and-drop to move a "MOVE" instruction into the network of your OB82 "Diagnostic
error interrupt".
Move the value of the "IOstate" tag into a global tag ("`DB1`.w_IOstate", for example).
Program all the other tags you want to monitor in the same way. See the example in the figure
below.
Fig. 02
3/11
Fig. 03
Table 01
Enabling and understanding the different diagnostic error events
The operating system monitors the diagnostics-compatible devices for the diagnostic errors mentioned above.
Diagnostic error events are indicated by flashing red LEDs. The table below shows additional information about
the different diagnostic error events, how to enable them, and the indicating LEDs.
No.
4/11
Fig. 04
5/11
Fig. 05
6/11
7/11
"Wire break"
The circuit of an analog Current output is not closed.
The following S7-1200 LEDs start to flash (LED color: red).
The "ERROR" LED on the CPU.
The "DIAG" LED if it is a signal module.
The LED of the associated channel.
"Enable broken wire diagnostics"
Select your S7-1200 in the "Project tree" under "Device configuration".
Click your signal module in the "Device configuration" window.
Select the "Properties" tab and click the "AI4/AO2" item in the "General" directory.
Scroll down to the channel you want to monitor.
Choose the "Current" analog output type.
Check the "Enable broken wire diagnostics" check box.
Fig. 06
"Short circuit"
The contacts of an analog Voltage output are short-circuited.
The following S7-1200 LEDs start to flash (LED color: red).
The "ERROR" LED on the CPU.
8/11
Fig. 07
9/11
Table 02
Online diagnostics with STEP 7 Basic
If you have online access to your S7-1200 PLC with STEP 7 Basic, you can use the "Online & diagnostics"
function.
Go online to your S7-1200.
Browse the "Project tree" for the entry "Online & diagnostics".
Mark the "Diagnostics buffer" item in the "Online access" area.
Select a diagnostic error event in the "Events" table.
Details of the selected event are shown under the "Events" table. The hardware identification (HW ID), the
channel number and the event type are displayed here.
Note
"Incoming event" indicates the beginning of an event.
"Outgoing event" indicates the end of an event.
Fig. 08
"IOstate"
tag
The table
below shows
the possible
IO states of
the "IOstate"
tag.
IO state
Description
Bit 0
Configuration correct:
1 if the configuration is correct
0 if the configuration is no longer correct
Bit 4
Error:
1 if an error is present (for example a wire break)
0 if the error is no longer present
10/11
Bit 5
Bit 6
IO cannot be accessed:
1 if an IO access error has occurred.
In this case, the "laddr" tag contains the hardware identifier of the IO with the access error.
0 if the I/O can be accessed again
Table 03
Creation environment
The screens in this FAQ were created with STEP 7 Basic V11.
Requirements
S7-1200
Ethernet cable
PG/PC
STEP 7 (TIA Portal)
Diagnostics-compatible signal module / signal board
Additional Information
More information about diagnostics-compatible analog signal modules (SM) and signal boards (SB) is available
in the SIMATIC S7-1200 Automation System manual (Entry ID: 36932465).
11/11