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
9-4
A5E00709327-01
9.3 Setting a Time-of-Day Interrupt with SFC 28
"SET_TINT"
Description
With SFC 28 "SET_TINT" (set time-of-day interrupt), you set the start date and
time of time-of-day interrupt organization blocks. The seconds and milliseconds of
the specified start time are ignored and set to 0.
Parameter Declaration Data Type Memory Area Description
OB_NR INPUT INT I, Q, M, D, L,
constant
Number of the OB started at the time SDT +
multiple of PERIOD (OB 10 to OB 17).
SDT INPUT DT D, L, constant Start date and time: The seconds and
milliseconds of the specified start time are
ignored and set to 0.
If you want to set a monthly start of a time-of-
day interrupt OB, you can only use the days
1, 2, ... 28 as a start date.
PERIOD INPUT WORD I, Q, M, D, L,
constant
Periods from start point SDT onwards:
W#16#0000 = once
W#16#0201 = every minute
W#16#0401 = hourly
W#16#1001 = daily
W#16#1202 = weekly
W#16#1401 = monthly
W#16#1801 = yearly
W#16#2001 = at month's end
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.
Error Information
Error Code (W#16#...) Explanation
0000 No error occurred
8090 Incorrect parameter OB_NR
8091 Incorrect parameter SDT
8092 Incorrect parameter PERIOD
80A1 The set start time is in the past.
8xyy General error information, see Evaluating Errors
with Output Parameter RET_VAL