Grafcet
206
35015365.01 07/2008
Description of preliminary processing
General points Entered in contact language, instruction list language or structured text language,
preliminary processing is scanned in its entirety from top to bottom.
It is run before the sequential and subsequent processes and is used to process all
the events that have an effect on the following:
z managing power re-starts and re-initializations,
z resetting to zero or pre-positioning graphs.
Therefore it is only in the preliminary process that it can affect the bits associated
with the steps (step bits %Xi or %Xi.j set to 0 or to 1 by the instructions SET and
RESET).
System bits Pre-positioning, initialization, freezing operations are done using system bits %S21
to %S24.
The system bits associated with Grafcet are classified numerically in order of priority
(%S21 to %S24), and so when several of them are simultaneously set to 1 in the
preliminary processing, they are dealt with one by one in ascending order (only one
is used per scanning revolution).
This bits are used at the beginning of sequential processing.
Processing cold
re-starts
On a new application or when a system context has been lost, the system restarts
from cold.
The bit %S21 is set to 1 by the system before calling up the preliminary processing
and Grafcet is positioned on the initial steps.
If you want a particular process for the application when it is re-starting from cold, it
is possible to test % S0 which remains at 1 during the first cycle of the master task
(MAST).
Processing cold
re-starts
Following a power failure without changing the application, the system re-starts from
cold. It starts again from where it was before the power failure.
If you want a particular process for the application in the case of a cold re-start, you
can test %S1 in the preliminary process and call up the corresponding program.