Siemens SIMATIC S5-115U User Manual page 404

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.5 Integral FB "DELETE"
The integral FB "DELETE" (No. 239) deletes a block. If you want to use integral FB "DELETE" with
block number 239, you must not have assigned number 239 to any other FB. If you nevertheless
want to use a user-written block with number 239 (and not the integral FB239), proceed as
follows:
POWER ON
Overall Reset
Transfer "user" FB with number 239 to the PLC
Set mode selector to RUN
or
Plug E(E)PROM with "user" FB (number 239) into the submodule receptacle
POWER ON
Overall Reset
Set mode selector to RUN.
Initializing the Integral FB DELETE
Initialize the integral FB239 as follows:
Store the type of the block to be deleted in an input word, flag word or data word as an ASCII
character (KS). The characters OB. PB, FB, SB and DB are permissible as block identifiers.
Store the block number in an input byte or a flag byte.
You must also specify a flag byte or an output byte which the operating system can use to flag
errors (see Table 11-9).
Calling the Function Block (Example)
STL
: JU
FB
239
NAME : DELETE
TYPE : FW
5
NUM
: FY
7
ERR
: FY
8
: ***
Contents of FW 5: Block type in ASCII code (e.g. PB for program block)
Contents of FY 7: Block number (e.g. KF+7)
Contents of FY 8: No entry is made in FY 8 until the function block has been invoked
(see Table 11-9)
Hinweis
If Delete is currently active, programmer/OP functions can be rejected.
11-30
S5-115U Manual
CSF/LAD
FB239
DELETE
TYPE
ERR
NUM
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents