For monthly execution of a time-of-day interrupt OBs, only the day 1, 2, ...
28 can be used as a starting date.
To start a time-of-day interrupt, you must first set and than activate the interrupt. The
three following start possibilities exist:
1. The time-of-day interrupts are configured via the hardware configuration. Open the
selected CPU with Edit > Object properties > Time-of-Day interrupts. Here the cor-
responding time-of-day interrupts may be adjusted and activated. After transmission
to CPU and startup the monitoring of time-of-day interrupt is automatically started.
2. Set the time-of-day interrupt within the hardware configuration as shown above and
then activate it by calling SFC 30 ACT_TINT in your program.
3. You set the time-of-day interrupt by calling SFC 28 SET_TINT and then activate it
by calling SFC 30 ACT_TINT.
The time-of-day interrupt can be delayed and enabled with the system functions SFC 41
DIS_AIRT and SFC 42 EN_AIRT.
If a time-of-day interrupt OB is called but was not programmed, the operating system calls
OB 85. If OB 85 was not programmed, the CPU goes to STOP. Is there an error at time-
of-day interrupt processing e.g. start time has already passed, the time error OB 80 is
called. The time-of-day interrupt OB is then executed precisely once.
The possibilities of activation of time-of-day interrupts is shown at the following table:
Interval Description
Not activated The time-of-day interrupt is not executed, even when loaded
in the CPU. It may be activated by calling SFC 30.
Activated once only The time-of-day OB is cancelled automatically after it runs
the one time specified.
Your program can use SFC 28 and SFC 30 to reset and
reactivate the OB.
Activated periodically When the time-of-day interrupt occurs, the CPU calculates
the next start time for the time-of-day interrupt based on the
current time of day and the period.
The following table describes the start information of the OB 10 ... OB 11 with default
names of the variables and its data types. The variable names are the default names of
OB 10.
Function
Behavior on error
Possibilities of activation
Local data for time-of-day
interrupt OB
VIPA SPEED7
Organization Blocks
Time of day Interrupts > OB 10, OB 11 - TOD_INTx - Time-of-day Interrupt
HB00 | OPL_SP7 | Operation list | en | 18-30 79