After power-up, the startup program has started working before the Siemens S7-400 CPU or CPU 318-2 starts executing the user program. In the startup program, the user can define the presets accordingly by programming the startup OB for the cyclic program.
There are three ways to start as follows:
Startup mode descriptionStart (warm start)
Program processing restarts and data continues to be maintained.
Cold start
The current data is lost and the program processing starts again with the initial value.
Hot Start
Once power is restored, the program continues to work from the value at power down.
In the operating mode "STARTUP":
- The program runs in the startup OB (OB 100 is started (warm restart), OB101 is hot start and OB102 is cold start).
- Unavailable time and alarm control program to run.
- The time stays updated.
- The running schedule is running.
- The digital output on the signal module is locked, but can be set by direct storage.
Start (warm start):
Figure 01
In startup (warm restart), the program processing restarts with the system data and user address range in the "Basic Settings" as the program startup point.
- The process image area, non-retentive memory, timers and counters are reset. The held memory, timer, and counter each retain their last valid value. All data blocks parameterized with "unreserved" attributes are reset to their initial values. The other data blocks each retain their last valid value.
- The program processing is restarted again from the beginning (starting OB or OB1).
- If the power supply is interrupted, the warm restart can only be used in buffer mode. If the running CPU does not have a backup battery, the CPU will automatically reset and restart (warm restart) when the switch is turned ON or POWER OFF and then powered back on.
Startup (warm restart) is always possible if the system does not require a full reset. After the following occurs, only the start (warm start) is possible:
- Complete reset.
- Download the user program in the STOP mode of the CPU.
- USTACK/BSTACK overflow.
- Start (hot start) is interrupted by POWER OFF or mode switch.
- Restart the time limit beyond the parameterization interrupt.
Start (warm start) operation command:
The user can trigger a manual start (warm start):
- Mode selection switch
- (If possible, the CRST/WRST switch must be set to CRST)
- Via the PG's command menu or communication function
- (The mode selection switch needs to be set in the RUN or RUN-P position).
At POWER ON, the following states trigger an automatic start (warm start):
- The CPU is not in STOP when POWER OFF.
- The mode selection switch is set to RUN or RUN-P.
- The parameter of POWER ON is not set to automatic hot start or automatic cold start.
- CPU startup (warm restart) does not cause an interrupt due to a power failure (does not depend on the startup parameter settings)
Cold start:
Figure 02
- At cold start, the data blocks generated by the SFC in the main memory are deleted, and the other data blocks get the default values ​​from the load memory.
- The process image area, timer, counter, and indicator are reset to their initial values ​​in the program (load memory) regardless of whether data retention is set.
- The input process image area is read in and the STEP 7 user program starts to restart (OB102 or OB1).
Cold start operation command:
- A manual cold start can only be triggered from the PG.
- If the parameters have been defined in STEP 7 accordingly, some S7-400 CPUs can perform a cold start via the mode selector switch and the start mode transition (CRST/WRST).
Hot Start:
Figure 03
After the power supply is interrupted and the power is supplied again in the RUN state, the S7-400 CPU automatically performs a hot start by initializing the path. After a warm restart, the user program continues to run at the point of interruption (timer, counter, indicator is not reset, the current value is saved in the DB block). The user program that was not executed before the power was turned off is called the remaining loop program. The remaining cycle program includes both the time and alarm control program sections.
- In a warm boot, all data, including the process image area, performs their last valid value.
- The program continues to execute the command at the point of interruption.
- The output does not change until the current cycle is completed.
- If the power supply is interrupted, the warm boot is only available in buffer mode.
In principle, a warm start is allowed if the user program does not change in the STOP state (eg loading a modified block) or if it is not necessary to start (warm restart) for some reason.
Hot start operation command:
Manual hot start is possible if the relevant parameters have been set in the CPU and the STOP is caused by the following reasons:
- The mode selector switches from RUN to STOP.
- STOP has been programmed by the user and STOP has not been loaded since the OB was called.
- The STOP status is included in the PG or a communication function.
The user can trigger a hot start:
- Select by the mode selection switch.
- CRST/WRST needs to be set to WRST.
- Via PG menu command or via communication function (mode selection switch is set to RUN or RUN-P)
- Manual hot start has been parameterized in the CPU.
Automatic hot start can be triggered in the POWER ON state if:
- In the POWER OFF state, the CPU is not in STOP or HALT.
- The mode selector switch is set to RUN or RUN-P.
- The automatic hot start has been parameterized within the CPU for POWER ON.
- In automatic hot restart, the conversion of CRST/WRST is invalid.
Outdoor low power LED lamps,Aluminum Alloy LED lamps,LED Flood light series
Kindwin Technology (H.K.) Limited , https://www.ktlleds.com