Technical data

Table Of Contents
SFCs for Handling Time-of-Day Interrupts
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
9-7
9.6 Querying a Time-of-Day Interrupt with SFC 31
"QRY_TINT"
Description
Using the system function SFC 31 "QRY_TINT" (query time-of-day interrupt), you
can display the status of a time-of-day interrupt organization block at the output
parameter STATUS.
Parameter Declaration Data Type Memory Area Description
OB_NR INPUT INT I, Q, M, D, L,
constant
Number of the OB, whose status will be
queried (OB10 to OB17).
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is active,
the actual parameter of RET_VAL contains
an error code.
STATUS OUTPUT WORD I, Q, M, D, L Status of the time-of-day interrupt;
see following table.
Output Parameter STATUS
Bit Value Meaning
0 0 Time-of-day interrupt is enabled by operating system.
1 0 New time-of-day interrupts are accepted.
2 0 Time-of-day interrupt is not activated or has elapsed.
3 - -
4 0 Time-of-day interrupt OB is not loaded.
5 0 The execution of the time-of-day interrupt OB is not disabled by an active test
function.
6 0 Base for the time-of-day interrupt is the basic time
1 Base for the time-of-day interrupt is the local time
Error Information
Error Code (W#16#...) Explanation
0000 No error occurred.
8090 Incorrect parameter OB_NR
8xyy General error information, see Evaluating Errors with Output
Parameter RET_VAL