Professional Documents
Culture Documents
In the startup program, you can define specific presettings for your cyclic program by
programming startup OBs accordingly.
There are three types of startup:
The program is processed in the startup OB (OB 100 for restart (warm restart), OB 101 for
hot restart and OB 102 for cold restart).
Time- and alarm-controlled program processing is not possible.
Times are updated.
The runtime meter runs.
The digital outputs on signal modules are blocked, but can be set via direct access.
In a restart (warm restart), program processing restarts at the beginning of the program with a
"basic setting" of the system data and user address areas.
The process image and the non-retentive markers, timers and counters are reset.
Retentive markers, timers and counters each retain their last valid value. All data blocks
parameterized with the property "Non Retain" are reset to the loaded values. The other
data blocks each retain their last valid value.
Program processing starts again at the beginning (startup OB or OB 1).
If the power supply is interrupted, a warm restart is only possible in buffered mode. If you
are operating your CPU without backup battery, the CPU is automatically reset completely
and then restarted (warm restart) when you switch on or power returns after a POWER
OFF.
A restart (warm restart) is always permissible unless the system demands an overall reset. In the
following cases only a restart (warm restart) is possible after:
Overall reset.
Loading of the user program in the STOP mode of the CPU.
USTACK/BSTACK overflow.
Interruption of the restart (warm restart) through POWER OFF or via mode switch.
Exceeding of parameterized interruption time limit for restart.
Cold restart
Fig. 02
With a cold restart, data blocks created by SFCs in the main memory are deleted, while
the other data blocks have the default values from the load memory.
The process image and all timers, counters, and markers are reset to the start values in the
program (load memory) regardless of whether they were set as retentive.
The process image of the inputs is read in and the STEP 7 user program starts again at the
beginning (OB 102 or OB 1).
You can only trigger a manual cold restart from the PG.
In the case of some S7-400 CPUs you execute a cold restart with the mode selector switch
and startup mode switch (CRST/WRST) if this has been defined accordingly in the
parameters with STEP 7.
Hot restart
Fig. 03
After a power failure in RUN and subsequent return of power, S7-400 CPUs run through an
initialization routine and then automatically execute a hot restart. After a hot restart the user
program continues at that point where the processing was interrupted (timers, counters and
markers are not reset and the current values are retained in DBs). The part of the user program
not processed before the power failure is called the remainder cycle. The remainder cycle can
also include time- and alarm-controlled program parts.
Upon a hot restart all the data including the process image receive their last valid values.
Program processing is continued at exactly that command where the interruption
occurred.
The outputs are not changed until the end of the current cycle.
If the power supply is interrupted, a hot restart is only possible in buffered mode.
A hot restart is in principle only permissible if the user program has not been changed in STOP
state (e.g. through loading a modified block) or if a restart (warm restart) is not necessary for
other reasons.
A manual hot restart is only possible if the relevant parameters are set in the CPU and after the
following reasons for the STOP:
The mode selector switch has been switched from RUN to STOP.
STOPs programmed by the user; STOPs after calling OBs that are not loaded.
STOP state has been induced by the PG or a communication function.