Modifying The Position Value - Siemens Simatic S5 IP 240 Manual

Counter/positioning/position decoder module
Hide thumbs Also See for Simatic S5 IP 240:
Table of Contents

Advertisement

IP 240
The modified data go into force as soon as they are transferred. The IP 240 updates the status bits
and generates any pending interrupts. However, the IP outputs are not set. To set the outputs,
you must retransfer the position number.

10.18.1 Modifying the Position Value

When you want to change a position value for position 1 to 254, you must specify the new
position value and the associated position number. You can modify two position values per data
interchange. If you transfer "255" as position number, the associated position value is not
evaluated.
Table 10-22. Contents of the Data Block and the Transfer Buffer for Modifying Position Values
Data byte
in data
7
block
DL n
0
DR n
7
2
DL n+1
DR n+1
23
2
DL n+2
15
2
DR n+2
7
2
DL n+1
DR n+1
DL n+2
DR n+2
DL n+3
0
DR n+3
7
2
DL n+4
23
DR n+4
2
DL n+5
15
2
DR n+5
7
2
DL n+4
DR n+4
DL n+5
DR n+5
n= 57+3
(number of the entry)
EWA 4NEB 811 6120-02a
Bit
6
5
4
3
. . .
0
0
6
5
4
3
2
2
2
2
SE
22
21
20
19
2
2
2
2
14
13
12
11
2
2
2
2
6
5
4
3
2
2
2
2
SG
5
10
3
10
1
10
. . .
0
0
6
5
4
3
2
2
2
2
SE
22
21
20
19
2
2
2
2
14
13
12
11
2
2
2
2
6
5
4
3
2
2
2
2
SG
5
10
3
10
1
10
Offset
in transfer
2
1
0
buffer
0
. . .
0
1
2
1
0
2
2
2
2
18
17
16
3
2
2
2
4
10
9
8
2
2
2
5
2
1
0
2
2
2
2
6
10
4
10
3
4
2
10
5
0
10
6
. . .
0
7
2
1
0
2
2
2
8
18
17
16
2
2
2
9
10
10
9
8
2
2
2
11
2
1
0
2
2
2
8
6
10
4
9
10
10
2
10
11
0
10
Positioning
Description
1st position number
1st position value
in binary
A negative value must be
represented as two's comple-
ment.
SE=Sign extension
1st position value
in BCD
"1111" must be entered in
the
high-order
nibble
of
DL n+1 (SG) for a negative
number.
2nd position number
2nd position value
in binary
A negative value must be
represented as two's com-
plement.
SE=Sign extension
2nd position value
in BCD
"1111" must be entered in
the
high-order
nibble
of
DL n+4 (SG) for a negative
number.
10-65

Advertisement

Table of Contents
loading

Table of Contents