Specifications
IP 240 Positioning
Invoking the control function block
The control FB is normally invoked in the cyclic program and in the interrupt service OBs.
Name Parameter Data Description
type type
DBNR D KF/KY Data block number
FKT D KY Function number
PAFE Q BY Error byte
FB 168
: JU FB 168
NAME: STEU.POS
DBNR : KF/KY
FKT : KY
PAFE : QB
STL
QB
DBNR
FKT PAFE
LAD/CSF
Table 10-29. Parameters for Control FB 168
Parameters
DBNR:
KF 0
KF 3 to 255
Use the data block that has already been opened.
In the S5-115U, this function is only available
from CPU 943 onwards.
Number of the data block to be opened instead
S5-115U and
S5-150U
Data block was created in DB area
Data block was created in DX area
Use the data block opened before the FB was
called. x must always be ”0” in this case, regard-
less of where the DB was created.
Number of the data block to be opened instead.
KY x,y
x=0
x=1
y=0
y=3
to 255
S5-135U and
S5-155U
Format Description Valid for
Note
The standard function blocks use scratch flags and system data areas for handling
data interchange with the IP 240 ( Technical specifications for the FBs).
You must
• save these flags and system data areas at the beginning of the interrupt service
routines for the S5-115U, S5-135U (when interrupt servicing enabled after each
statement) and S5-155U (155U mode) and reload them at the end of these
routines.
• save these flags and data areas in the restart routine (OB21/OB22) for the
S5-135U (with preset restart mode) and the S5-150U and reload them at the
end of this routine.
EWA 4NEB 811 6120-02a
10-91