Program Errors - Siemens SIMATIC S5-95F Manual

Table of Contents

Advertisement

Testing the User Program and Storing It on the Memory Submodule
ISTACK
Flags
SUF
Substitution error:
Function block call with bad actual parameters
Interrupt-driven and time-controlled scanning:
Integral FB call while other integral FB is being
processed
TRAF
Transfer error:
Data block operation programmed in which
data word number exceeds data block length
Data block operation programmed without first
opening DB
ZYK
Cycle time exceeded:
The program scan time exceeds the cycle
monitoring time. Causes:
Program too long
Too many interrupts
14.3

Program Errors

Two types of program errors are flagged in the ISTACK:
Errors detected by the compiler during program compilation (compiler error "NNN")
Errors detected during the program run (runtime errors "SUF" and "TRAF")
14.3.1 Determining the Error Address
Program Errors Detected During Compilation
When a compiler error occurs, the error address provided in the ISTACK is correct, i.e. the STEP
address counter points to the absolute memory address of the STEP 5 statement immediately
preceding the statement which caused the S5-95F to go to "STOP".
The relative STEP address counter (REL-SAC) gives the address of the STEP 5 statement
immediately preceding the statement which caused the PLC to go to STOP relative to the start of
the block.
14-10
Table 14-6. Interrupt Analysis (continued)
Cause of Error
Corrective Measures
Change actual parameters
Disable interrupts
Eliminate program error
(refer to the Programmer
Manual)
Check program for
continuous loops and/or
shorten program
EWA 4NEB 812 6210-02
S5-95F

Advertisement

Table of Contents
loading

Table of Contents