Siemens SIMATIC S5-115U User Manual page 403

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
It is also possible to renumber FB238
in DB1 (see Section 11.3) or
By changing system data word 202 in the RESTART OB (OB21 or OB22) using the "T RS 202"
operation. System data word 202 must not be changed using the "DISPL. ADDR.", "TNB",
"TIR" or "TDI" operations!
Example:
The integral FB238 (COMPR) is to receive the number 54. Make sure that FB number 54 has not
already been assigned to another FB (if a user program FB has the same number as the integral
FB "COMPR", the "old" FB number is retained in system data word 202). The number of integral
FB239, which can also be changed by system data word 202, should be retained!
High-order byte
(Number of FB "COMPR")
+238
+54
The STL program (programmed here in FB3) takes the following form:
FB3 STL
:
L
KY
54,239
T
RS
202
L
RS
202
!=F
BEC
STS
BE
EWA 4NEB 811 6130-02b
Low-order byte
(Number of FB "DELETE")
+239
+239
FB3 is called by OB21 and OB22.
The numbers of FBs COMPR and DELETE are
transferred to system data word 202.
Read RS 202 (check if new number has been
accepted)
If not ... STOP!
Integral Blocks
Status of
system data
word 202 after
Overall Reset
Explanation
11-29

Advertisement

Table of Contents
loading

Table of Contents