Technical data

Table Of Contents
SFCs for Handling Synchronous Errors
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
11-9
11.4 Reading the Error Register with SFC 38 "READ_ERR"
Description
Using SFC 38 "READ_ERR" (read error register), you can read the error register.
The structure of the error register corresponds to that of the programming and
access error filters which you can program as input parameters with SFC 36 and
SFC 37.
In the input parameters, you enter the synchronous errors you want to read from
the error register. When you call SFC 38, you read the required entries from the
error register and at the same time clear the entries.
The error register contains information that tells you which of the masked
synchronous errors in the current priority class occurred at least once. If a bit is set,
this means that the corresponding masked synchronous error occurred at least
once.
Parameter Declaration Data type Memory area Description
PRGFLT_QUERY INPUT DWORD I, Q, M, D, L,
constant
Query program error
ACCFLT_QUERY INPUT DWORD I, Q, M, D, L,
constant
Query access error
RET_VAL OUTPUT INT I, Q, M, D, L Error Information
PRGFLT_CLR OUTPUT DWORD I, Q, M, D, L Occurred programming errors
ACCFLT_CLR OUTPUT DWORD I, Q, M, D, L Occurred access errors
Error Information
Error Code (W#16#...) Explanation
0000 All queried errors are masked.
0001 At least one of the queried errors is not masked.
8xyy General error information, see Evaluating Errors with Output Parameter
RET_VAL