Specifications
Positioning IP 240
If you use FB 168 to write the new position values, you must specify the entry to be transferred in
the data block when you initialize the FKT parameter. Based on this information, the FB checks
the length of the DB and computes the number of data words to be transferred. You can also
specify whether you want to transfer only one entry or two continuous DB entries to the IP 240.
The position numbers and position values reserve the data words from DW 60 in the data block.
Transferring new position values for positions 1 to 254
with control DB 168 in direct data interchange
You must first update the position values in
the DB.
Using FB 168, you can then transfer either
one or two position entries to the IP 240. You
must initialize the FB as follows:
: JU FB 168
NAME : STEU.POS
:
FKT : 41,y y=Number of the entry to
be transferred; must be a
number between 1 and 255
FKT : 42,y y=Number of the first of
the two entries to be
transferred; must be a
number between 1 and 255
Note that the number of the entry in the
data block, not the position number, must be
specified when you call the FB.
You must specify the following job numbers
to transfer the new position values:
• For channel 1: 11
H
• For channel 2: 21
H
If you want to change only one position
value, you must specify ”255” for the second
position number.
If the bytes with offset 0 and 6 are also to be
transferred, they must first be set to ”0”.
Example:
Modified position values for entries 8 and 9 are to be transferred to the IP 240. The data block
containing these data is DB12. Errors are to be flagged in flag byte FY 12.
: JU FB 168
NAME : STEU.POS
DBNR. : KF + 12
FKT : KY 42,8
= Transfer two entries
PAFE : FY 12
=Transfer the data beginning with entry 8
If you transfer two position values and one of them is errored, only the errored data is rejected.
Positions in excess of 65 require a DB comprising more than 256 words. Data words with a data
word number greater than 255 can be addressed only with the supplementary STEP 5 commands
(system operations) ( Section 10.24).
10-66
EWA 4NEB 811 6120-02a