Counting Mode - Siemens Simatic S5 IP 240 Manual

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

Advertisement

Direct Data Interchange with the IP 240

11.4.2 Counting Mode

Read actual value, final value and status area
The IP 240 makes the actual value, the final value and the status area available in the transfer
buffer when you transfer job number 1B
register.
Table 11-8. Contents of the Transfer Buffer on Reading Actual Value,
Offset
transfer
7
6
buffer
0
1
2
0
3
0
4
7
6
2
2
5
0
0
6
0
0
7
0
8
0
0
9
7
6
2
2
10
0
0
11
0
0
12
0
0
13
0
0
14
0
DA1
Description of the status bits
DA1
=1
Digital output D1 is set
=0
Digital output D1 is not set
AKTV =1
Counting was enabled
=0
Counting was not enabled
TRIG =1
Counting has begun (first counting pulse acquired)
REF1 =1
Actual value has reached "0"
=0
Actual value is not yet "0"
11-14
H
Final Value and Status Area , Counting Mode
Bit
5
4
3
2
1
10
3
10
. . .
0
0
. . .
0
0
5
4
3
2
2
2
2
2
13
12
11
10
2
2
2
2
0
0
0
0
. . .
0
0
0
0
0
0
5
4
3
2
2
2
2
2
13
12
11
10
2
2
2
2
0
0
0
UEBS UEBE SGF
0
0
0
0
AKTV TRIG
0
0
0
0
0
0
(channel 1) or 2B
(channel 2) to the job request
H
1
0
0
10
2
10
. . .
0
. . .
0
Actual value in binary
1
0
2
2
9
8
2
2
0
0
Status bits for actual value
. . .
0
SG=1
UEBL SG
SG=0
1
0
2
2
9
8
2
2
Status bits for final value
REF2 REF1
0
0
0
0
Description
Actual value in BCD
The actual value is negative
The actual value is positive
Final value
of the last count
Status bits
EWA 4NEB 811 6120-02a
IP 240

Advertisement

Table of Contents
loading

Table of Contents