Siemens SIMATIC S5-115U User Manual page 402

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

Integral Blocks
11.1.4
The Integral "COMPR" Block
The integral "COMPR" block (no. 238) compresses the internal program memory. If you want to
use integral FB "COMPR" with block number 238, you must not have assigned number 238 to any
other FB. If you nevertheless want to use a user-written block with number 238 (and not the
integral FB238), proceed as follows:
POWER ON
Overall Reset
Transfer "user" FB with number 238 to the PLC
Set mode selector to RUN
or
Plug E(E)PROM with "user" FB (number 238) into the submodule
POWER ON
Overall Reset
Set mode selector to RUN.
Calling the Function Block
The "PLC Compress" function is initiated by invoking FB238 in the application program. This
function block returns the "AKT" bit, which indicates whether the "Compress" function is or is
not still in progress. The "ERR" bit is set if the function cannot be executed.
STL
: A
I
: AN
F
: =
F
: A
I
: =
F
:
: A
F
: JC
FB
NAME
: COMPR
AKT
: F
1.0
ERR
: F
1.1
Note
The FB COMPR has the same effect as the programmer "Compress" function, i.e. if
FB COMPR is active, other programmer/OP functions will be rejected, e.g. STATUS or
block input/output.
Generation and deletion of a DB with G DB in this case results in CPU Stop (TRAF).
11-28
0.0
0.0
0.1
0.0
0.0
0.1
238
S5-115U Manual
CSF/LAD
FB238
COMPR
AKT
ERR
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents