Siemens SIMATIC S5-95F Manual page 165

Table of Contents

Advertisement

Introduction to STEP 5
Operating mode switch STOP
RUN; Programmer command START
Clear the process image I/O table,
the non-retentive timers, counters, and
flags. Interpret DB1
Processing OB21
1 This is the procedure if the programmable controller was in the "RUN" mode when the power went off, if the mode
switch was still on RUN when the power was restored, and if the battery was inserted.
The following two examples show you how you can program a start-up OB.
Example:
Programming OB21/OB22
Example
After the operating mode
switch causes a cold restart,
flag bytes 0 to 9 are preset
with "0". The other flag bytes
are retained since they contain
important machine functions.
7-20
Enabling the outputs
Read in the PII
Processing OB1
Read out the PIQ
Figure 7-9. Setting the Start-Up Procedure
STL
L
T
T
T
T
T
BE
Power recovery
Clear the process image I/O table,
the non-retentive timers, counters,
and flags. Interpret DB1
Processing OB22
Value "0" is loaded in
KH
0
ACCU 1and transferred into
FW
0
flag words 0, 2, 4, 6, and 8.
FW
2
FW
4
FW
6
FW
8
S5-95F
1
Cold
restart
routine
START-
UP
RUN
Explanation
EWA 4NEB 812 6210-02

Advertisement

Table of Contents
loading

Table of Contents