Operating modes
82
35015365.01 07/2008
Operation The table below describes the restart phases for running a program after a cold
restart.
Dealing with cold
start for each
program
To carry out an application process after the PL7 has started from cold, it is possible
to test the bit %SW10:X0 per program (if %SW10:X0=0, there is a cold restart).
Note on Cold
starts
When a cold start is made, either by %S0 set to 1, or by the cold start button on the
PLC screen, system bit %S13 cannot be set to 1 and the PLC remains in use. The
main effect is initialization of the application variables.
Phase Description
1 Start up is in RUN or in STOP depending on the parameter Automatic start
up in RUN defined at configuration or if this is used according to the status of
the RUN/STOP input.
The program run restarts at the beginning of the cycle.
2 The system:
z resets bits, the I/O map and internal words to zero (if the %MW reset to zero
option on restart from cold is checked in the processor Configuration
screen).
If the %MW reset is not active and if internal words %MWi are saved in the
internal EPROM Flash memory (TSX 37), these are restored in the event of
a cold start.
z initializes system bits and words.
z initializes function blocks from configuration data.
z deactivates tasks, other than the master task, up till the end of the first
master task cycle.
z sets Grafcet to initial steps.
z cancels forcings.
z initializes data declared in the DFBs: either to 0 or to the initial value declared
in the code, i.e. with the saved value from the SAVE function
z initializes message and event files
z sends configuration parameters to all discrete and application specific input/
output modules,
3 For this first restart cycle the system:
z relaunches the master task with bit %S0 (cold restart) set to 1, the word
%SW10 (detecting cold restart on the first revolution of a task) is set to 0,
z resets bit %S0 to 0 and resets to 1 each word bit %SW10 to the end of this
first master task cycle,
z activates the fast task and event processes at the end of this first master task
cycle.