Specifications
IP 240 Positioning
Table 10-24. Contents of the Data Block and the Transfer Buffer for Changing the Zero Offset
Zero offset
in binary
A negative value must be
given as two's complement.
SE=Sign extension
Control bit ADD
Zero offset
in BCD
”1111” must be entered in
the high-order nibble of
DL 46 (SG) for a negative
number.
Bit
76543210
Description
Data byte
in data
block
Offset
in transfer
buffer
2DL 46
2
23
2
22
2
21
2
20
2
19
2
18
2
17
2
16
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
SE
DR 46
DL 47
DR 47
3
4
5
2DL 46
10
5
10
4
10
3
10
2
10
1
10
0
SG 10
6
DR 46
DL 47
DR 47
3
4
5
10000000ADD DR 45
00 . . . 0 0 . . . 0DL 45
Transferring a zero offset
with control FB 168 in direct data interchange
The new zero offset value must be entered in
DW 46 to 47. The type of zero offset is
specified when you initialize the FB.
Initialize the FB as follows:
: JU FB 168
NAME : STEU.POS
:
FKT : 5,y y=0 Relative zero offset
y >0 Additive zero offset
The function block transfers the relevant
identifier to data word 45.
You must specify the following job numbers
to transfer a new zero offset:
• For channel 1: 19
H
• For channel 2: 29
H
Select the type of zero offset via bit 0 of
offset 1.
The byte with offset 0 must be set to ”0”.
EWA 4NEB 811 6120-02a
10-69