Specifications
Positioning IP 240
10.23.3 The Control Function Block
FB 168 (STEU.POS) Control function block for ”positioning” mode
Functional Description
The control function block first checks to make sure that the DB has the correct identifier in DL 23
and that the channel was configured for ”positioning” mode. Then, depending on the parame-
ters with which the FB was initialized, specific data areas are forwarded from the data block to
the IP or read out from the IP and updated in the data block.
The following functions are possible:
• Read actual value, final value and status bits
• Write control bits and position number
• Write position data for position 0
• Read interrupt request bytes
• Write new position values for positions 1 to 254
• Write new zero offset
• Write new distance values for positions 1 to 254
Parameter assignment errors and data errors are flagged in the PAFE byte and described in detail
in data words DW 8 to 10 and DW 13. When an error is detected, the selected function is not
executed.
Indirect initialization
Indirect initialization means indirect specification of the data block number and the function
number.
• Initializing the data block number
You can initialize the DBNR by entering the data block number directly or by specifying ”0” or
”0,0” and opening the data block you want to use before invoking the FB.
• Initializing the function number
You can initialize the FKT parameter by entering either ”0,0” or the number of the function
you want to execute. If you enter FKT=0,0, FB 168 takes the function number that was en-
tered in DW 19 of the data block.
DL 19
DR 19
7
Data
byte
6 5 4 3 2 1 0
2
5
2
5
2
4
2
4
2
3
2
3
2
2
2
2
2
1
2
1
2
0
2
0
Bit
0
2
7
0
2
6
FKT:
KY x,y
FKT x
FKT y
During configuring, FB 167 enters data in the data block which is needed by FB 168. If you want
the control FB to use a different data block, you must copy the following data words to that
block:
• DW 0
• DW 11 to 12
• DW 14 to 18
• DW 22 to 27
• DW 34
• DW 56 to 57
These data words should be copied in the restart routine immediately following configuring.
10-90
EWA 4NEB 811 6120-02a