Siemens SIMATIC S5-115U User Manual page 191

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

S5-115U Manual
OB22 STL
:L
KF
+0
:T
PW
0
:T
PW
2
:T
PW
4
:L
PW
6
:L
PW
8
:L
PW
10
:BE
If an input/output module cannot be accessed with the statement L PW or T PW, the CPU jumps to
the STOP mode at this statement and the interrupt bit QVZ (timeout) is set in the ISTACK (see
Section 5.1).
Example 2: Programming OB21 and FB1
After cold restart with the mode selector, flag bytes 0 to 99 are supposed to be preset with "0".
Flag bytes 100 to 127 are supposed to be retained since they contain important machine
information.
Prerequisite:
The retentive switch must be on the retentive setting (RE).
OB21 STL
:JU
FB
NAME
:CLEAR F
:BE
EWA 4NEB 811 6130-02b
Output words 0, 2, and 4 are set to "0".
The information in input words 6, 8, and 10 is
loaded into ACCUM 1 consecutively.
1
Call FB 1 unconditionally.
Introduction to STEP 5
Explanation
Explanation
7-19

Advertisement

Table of Contents
loading

Table of Contents