17 - Error and Troubleshooting
17 - Error and Troubleshooting
SIEMENS
SIMATIC S7 1/17 March 27, 2024
SIEMENS LTD EGYPT 2007
All Rights Reserved
SIEMENS
Objectives
Errors that are detected by the PLC‘s Functional errors, that is, the CPU
operating system and normally cause processes the program as usual, but
the CPU to go into the Stop state. thedesired function is either not
executed at all or it is executed
- Module failure incorrectly.
- Short-circuit in signal cables
- Scan time overrun - Process fault, Ex. wiring error
- Programming error (accessing - Logical programming error (not
a non-existent block) detected
during creation and startup)
Error
Debugging Tools:
• Monitor / Modify Variable
• Monitor Blocks (Block Status)
• Reference Data
x x+1 x x+1
Module Information
Details on Event
When you select an event, the
following additional information is
supplied in the "Details on Event" box
Help on Event
When you click on the button, help on
the event selected in the list is opened.
Open Block
When you click on the button, the
block in which the interruption
occurred can be opened online
After the restart, the error occurred and caused entries no. 2 and 3.
Event No. 2: the CPU goes into the STOP mode because the
associated error OB (OB 121) was not loaded into the controller.
Event No. 3: the actual cause of error, FC is not loaded to the CPU
B Stack
The block stack (B stack) is a graphic
representation of the call hierarchy,
that is, the sequence and nesting of
the called blocks up to the point of
interruption.
I Stack
The interrupt stack (I Stack) always
refers to an execution level. Before
you can open the I Stack, the
organization block concerned must
be selected in the B Stack.
L Stack
The current values of the temporary
variables for blocks not ended at the
time of interruption are contained in
the L Stack.
Monitor/Modify Variables
PII
Trigger point
"Beginning of Scan Cycle" Update
Monitor Modify Update Modified
Monitor values
Cyclic
program
execution
Trigger point
"Transition to STOP"
Trigger point
"End of Scan Cycle"
PIQ
Program Structure
Comparing Blocks