show the entry list
S7-400 CPU 41x -- Product information -- Background and system information
Which IO controllers and IO devices support the following functions in STEP 7 (TIA Portal): IRT, prioritized startup, MRP, MRPD, PROFIenergy, Shared device, MSI/MSO, I device, Isochronous mode, System redundancy and Option handling?
All-round protection with Industrial Security - System Integrity
What are the differences between OPEN MODBUS / TCP Redundant V1 and OPEN MODBUS / TCP Redundant V2?
What is the difference between "normal routing" and data record routing?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which manufacturer ID, in other words OUI (Organizationally Unique Identifier), does SIEMENS AG use for the MAC addresses of network-compatible devices?
What should you watch out for when adding components or changing their parameters using CiR (Configuration in Run)?
Which IO controllers and IO devices support the following functions in STEP 7 V5.5: IRT, prioritized startup, MRP, MRPD, PROFIenergy, Shared device, I device, sochronous mode, System redundancy and Option handling?
Which types of connection/protocols do the S7-300/400 CPUs and the CPs support by default?
Which PROFINET nodes support automatic commissioning (device replacement without interchangeable medium) in the case of topological configuration and device replacement without topological configuration?
Behavior of the CPU after power off without back-up battery
I/O addressing with DP slaves
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
What is the difference between a restart (warm restart), cold restart and hot restart of a S7-400 CPU?
Which SIMATIC S7 modules support the "Direct Data Exchange" function (internode communication)?
What properties, advantages and special features does the S7 Basis Communication offer?
What properties, advantages and special features does the global data communication offer?
Which entries deal with consistent data in conjunction with distributed I/O?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
Which modules support the S7 routing function?
CPU does not work in RUN
What does "Correction factor" mean in the "Diagnostics/Clock" tab of the CPU's Properties dialog?
What is multicomputing mode and what are the differences to operating in the segmented subrack?
Differing information on the requirement of offline/ online memory
How can I get an overview of the S7-400 memory concept?
What is the difference between a restart (warm restart), cold restart and hot restart of a S7-400 CPU?
Part number:

Description:
Before a S7-400 CPU or CPU 318-2 starts processing the user program after switch-on, a startup program is processed. In the startup program, you can define specific presettings for your cyclic program by programming startup OBs accordingly.
There are three types of startup:
 
Startup mode Brief description
Restart (warm restart) Program processing starts anew. Retentive data is retained.
Cold restart Current data is discarded and program processing begins again with the start values.
Hot restart Once power is resumed, the program continues at the point at which it was interrupted.

In operating mode "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.

Restart (warm restart):


Fig. 01

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.

Order of operations for restart (warm restart):

You can trigger a manual restart (warm restart):

  • Via the mode selector switch
    (if available, the CRST/WRST switch must be set to CRST).
  • Via menu command from the PG or via communication functions
    (if the mode selector switch is set to RUN or RUN-P).

An automatic restart (warm restart) can be triggered at POWER ON if:

  • The CPU was not in STOP at POWER OFF.
  • The mode selector switch is set to RUN or RUN-P.
  • There is no automatic hot restart or automatic cold restart parameterized for POWER ON.
  • The restart (warm restart) of the CPU has not been interrupted by a power failure (independent of the startup parameterized).

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).

Order of operations for cold restart:

  • 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.

Order of operations for hot restart:

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.

You can trigger a manual hot restart:

  • Via the mode selector switch.
  • If available, the CRST/WRST switch must be set to WRST.
  • Via menu command from the PG or via communication functions (if the mode selector switch is set to RUN or RUN-P).
  • If manual hot restart has been parameterized in the CPU.

An automatic hot restart can be triggered at POWER ON if:

  • The CPU was not in STOP or HALT at POWER OFF.
  • The mode selector switch is set to RUN or RUN-P.
  • Automatic hot restart has been parameterized in the CPU for POWER ON.
  • If available, the CRST/WRST switch is ineffective upon automatic hot restart.

 Entry ID:34053758   Date:2009-01-23 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour