Technical data

Table Of Contents
Common Parameters for SFCs
System Software for S7-300/400 System and Standard Functions - Volume 1/2
2-2
A5E00709327-01
Reactions to Error Information
There are two different types of error code in RET_VAL as follows:
A general error code, that all system functions can output and
A specific error code, that the system function can output and which relates to
its specific function.
You can write your program so that it reacts to the errors that occur during
execution of a system function. This way you prevent further errors occurring as a
result of the first error.
General and Specific Error Information
The return value (RET_VAL) of a system function provides one of the two following
types of error codes:
A general error code, that relates to errors that can occur in any system
function.
A specific error code, that relates only to the particular system function.
Although the data type of the output parameter RET_VAL is integer (INT), the error
codes for system functions are grouped according to hexadecimal values. If you
want to examine a return value and compare the value with the error codes listed in
this manual, then display the error code in hexadecimal format.
The figure below shows the structure of a system function error code in
hexadecimal format.
Error code, for example W#16#8081
Sign bit = 1 indicates that an error has occurred.
15 8 7 0
1
X
Event number or error class and single error
x = ‘0’
indicates that this is a
specific error code
from an SFC. The error
codes are listed in the section entitled "Error Information" in the
descriptions of the individual system functions.
x > ‘0’
indicates that this is a
general error code
from an SFC. In this
case, x is the number of the SFC parameter that caused the error. The
possible error codes are shown in the following table.