Technical data

Table Of Contents
SFCs for Handling Time-Delay Interrupts
System Software for S7-300/400 System and Standard Functions - Volume 1/2
10-4
A5E00709327-01
10.3 Querying a Time-Delay Interrupt with SFC 34
"QRY_DINT"
Description
With SFC 34 "QRY_DINT" (query time-delay interrupt), you can query the status of
a time-delay interrupt OB. Time-delay interrupts are managed by organization
blocks OB20 to OB23.
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 (OB20 to OB23).
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is being
processed, the actual parameter of
RET_VAL contains an error code.
STATUS OUTPUT WORD I, Q, M, D, L Status of the time-delay interrupt, see
following table.
Output Parameter STATUS
Bit Value Meaning
0 0 Time-delay interrupt is enabled by the operating system.
1 0 New time-delay interrupts are not rejected.
2 0 Time-delay interrupt is not activated or has elapsed.
3 - -
4 0 Time-delay interrupt-OB is not loaded.
5 0 The execution of the time-delay interrupt OB is not disabled by an active
test function.
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