PLC concepts
5.1 Execution of the user program
5.1.3.10
Time of day OB
Time of day OBs execute based on configured clock time conditions. The CPU supports two
time of day OBs.
Time of day events
You can configure a time of day interrupt event to occur once on a specified date or time or
cyclically with one of the following cycles:
● Every minute: The interrupt occurs every minute.
● Hourly: The interrupt occurs every hour.
● Daily: The interrupt occurs every day at a specified time (hour and minute).
● Weekly: The interrupt occurs every week at a specified time on a specified day of the
week (for example, every Tuesday at 4:30 in the afternoon).
● Monthly: The interrupt occurs every month at a specified time on a specified day of the
month. The day number must be between 1 and 28, inclusive.
● Every end of month: The interrupt occurs on the last day of every month at a specified
time.
● Yearly: The interrupt occurs every year on the specified date (month and day). You
cannot specify a date of February 29.
Table 5- 10
Input
CaughtUp
SecondTimes Bool
5.1.3.11
Status OB
Status OBs execute if a DPV1 or PNIO slave triggers a status interrupt. This might be the
case if a component (module or rack) of a DPV1 or PNIO slave changes its operating mode,
for example from RUN to STOP.
Status events
For detailed information on events that trigger a status interrupt, refer to the manufacturer's
documentation for the DPV1 or PNIO slave.
Table 5- 11
Input
LADDR
Slot
Specifier
102
Start information for a time of day event OB
Data type
Description
Bool
OB call is caught up because time was set forward
OB call is started a second time because time was set backward
Start information for status OB
Data type
Description
HW_IO
Hardware identifier
UInt
Slot number
Word
Alarm specifier
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK