Variable Type Description
OB1_EV_CLASS BYTE Event class and identifiers: 11h: OB 1 active
OB1_SCAN_1 BYTE 01h: completion of a restart
03h: completion of the main cycle
OB1_PRIORITY BYTE Priority class: 1
OB1_OB_NUMBR BYTE OB number (01)
OB1_RESERVED_1 BYTE reserved
OB1_RESERVED_2 BYTE reserved
OB1_PREV_CYCLE INT Run time of previous cycle (ms)
OB1_MIN_CYCLE INT Minimum cycle time (ms) since the last startup
OB1_MAX_CYCLE INT Maximum cycle time (ms) since the last startup
OB1_DATE_TIME DATE_AND_TIME Date and time of day when the OB was called
6.3 Startup
6.3.1 OB 100, OB 102 - Complete/Cold Restart - Startup
On a restart, the CPU sets both itself and the modules to the programmed initial state,
deletes all not-latching data in the system memory, calls Startup OB and then executes
the main program in OB 1. Here the current program and the current data blocks gener-
ated by SFC remain in memory.
A distinction is made between the following types of startup:
n OB 100: Complete restart
n OB 102: Cold restart
The CPU executes a startup as follows:
n after PowerON and operating switch in RUN
n whenever you switch the mode selector from STOP to RUN
n after a request using a communication function
(menu command from the programming device)
Even if no startup OB is loaded into the CPU, the CPU goes to RUN without an error
message.
The following table describes the start information of the startup OB with default names of
the variables and its data types:
Description
Local data
VIPA SPEED7
Organization Blocks
Startup > OB 100, OB 102 - Complete/Cold Restart - Startup
HB00 | OPL_SP7 | Operation list | en | 18-30 72