Position Numbers In The Data Block; Position Values In The Data Block - Siemens Simatic S5 IP 240 Manual

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

Advertisement

Positioning
Entering the position numbers and position values in the data block
The area beginning with DW 60 is reserved for position numbers and position values. The number
of positions determines the length of the data block ( Section 10.23.1). If you need more than 65
positions, then you also need more than 256 data words in the DB. Observe carefully the restric-
tions applying to processing of data words beyond DW 255 ( Section 10.24).
A position entry (position number and position value) always reserves three contiguous data
words in the data block. In the tables below, the variable n identifies the first word for a position
entry.
The first position entry begins at data word 60.
1st
position entry
DW 60
DW 61 to 62
2nd
position entry
3rd
position entry
254th position entry

Position numbers in the data block

Binary representation
Data
byte
7
6
DL n
0
0
7
6
DR n
2
2
Permissible value range: 1 to 254

Position values in the data block

Binary representation
Data
byte
7
6
DL n+1
SE
SE
23
22
DR n+1
2
2
15
14
DL n+2
2
2
7
6
DR n+2
2
2
Negative values must be given as
two's complement.
SE=Sign extension
Permissible value ranges:
Between - 9,999,999 and +9,999,999 for a linear axis
Between 0 and +[final value of rotary axis - 1] for a rotary axis
Note
When you attempt to define position number "255", the IP 240 does not evaluate
transfer the position value.
10-30
: DW 60
to DW 62
: Position number
: Position value
: DW 63
to DW 65
: DW 66
to DW 68
:
: DW 819 to DW 821 (n=819)
Bit
5
4
3
2
1
0
0
0
0
0
5
4
3
2
1
2
2
2
2
2
2
Bit
5
4
3
2
1
SE
SE
SE
SE
SE
21
20
19
18
17
2
2
2
2
2
2
13
12
11
10
9
2
2
2
2
2
2
5
4
3
2
1
2
2
2
2
2
2
(n=60)
(n=63)
(n=66)
0
0
0
BCD representation
Bit
0
7
6
5
4
SE
SG
16
5
10
8
3
10
0
1
10
The high-order nibble of DL n+1
(SG) must be "1111" for a nega-
tive number.
3
2
1
0
6
10
4
10
2
10
0
10
EWA 4NEB 811 6120-02a
IP 240

Advertisement

Table of Contents
loading

Table of Contents