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-7
11.2 Masking Synchronous Errors with SFC 36 "MSK_FLT"
Description
With SFC 36 "MSK_FLT" (mask synchronous errors), you can control the reaction
of the CPU to synchronous errors. With this SFC, you can mask the synchronous
errors using the error filter (see Masking Synchronous Errors). When you call SFC
36, you mask the synchronous errors in the current priority class.
If you set individual bits of the synchronous error filter to "1" in the input
parameters, other bits that were set previously retain their value "1." You therefore
obtain new error filters that you can read out using the output parameters. The
synchronous errors you have masked do not call an OB but are simply entered in
an error register. You can read out the error register with SFC 38 "READ_ERR".
Parameter Declaration Data Type Memory Area Description
PRGFLT_SET_MASK INPUT DWORD I, Q, M, D, L,
constant
Programming error to be
masked
ACCFLT_SET_MASK INPUT DWORD I, Q, M, D, L,
constant
Access error to be masked
RET_VAL OUTPUT INT I, Q, M, D, L Error information
PRGFLT_MASKED OUTPUT DWORD I, Q, M, D, L Masked program errors
ACCFLT_MASKED OUTPUT DWORD I, Q, M, D, L Masked access errors
Error Information
Error Code (W#16#...) Explanation
0000 None of the errors was already masked.
0001 At least one of the errors was already masked.
Nevertheless the other errors will be masked.
8xyy General error information, see Evaluating Errors with Output Parameter
RET_VAL