Technical data

Table Of Contents
SFCs for Handling Time-Delay Interrupts
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
10-3
10.2 Starting a Time-Delay Interrupt with SFC 32
"SRT_DINT"
Description
With SFC 32 "SRT_DINT" (start time-delay interrupt), you start a time-delay
interrupt that calls a time-delay interrupt organization block once the delay time has
elapsed (parameter DTIME).
With the SIGN parameter, you can enter an identifier that identifies the start of the
time-delay interrupt. The values of DTIME and SIGN appear again in the start
event information of the specified OB when it is executed.
Parameter Declaration Data Type Memory Area Description
OB_NR INPUT INT I, Q, M, D, L,
constant
Number of the OB, to be started after a
time delay (OB20 to OB23).
DTIME INPUT TIME I, Q, M, D, L,
constant
Time delay value (1 to 60000 ms)
You can realize longer times, for example,
by using a counter in a time-delay interrupt
OB.
SIGN INPUT WORD I, Q, M, D, L,
constant
Identifier which appears in the start event
information of the OB when the time-delay
interrupt OB is called.
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the system function
is active, the actual parameter of RET_VAL
contains an error code.
Accuracy
The time between calling SFC 32 "SRT_DINT" and the start of the time-delay
interrupt OB is a maximum of one millisecond less than the selected time
providing that no interrupt event delays the call.
Error Information
Error Code (W#16#...) Explanation
0000 No error occurred.
8090 Incorrect parameter OB_NR
8091 Incorrect parameter DTIME
8xyy General error information, see Evaluating Errors
with Output Parameter RET_VAL