Specifications
IP 240 Counting
Interrupt request bytes for channel 1 and channel 2
Channel 1
Channel 1
Channel 2
Channel 2
DL 20
DR 20
DL 21
DR 21
7
Data
byte
6 5 4 3 2 1 0
0
0
0
0
0
0
0
0
0
0
0
0
0
UBS
0
UBS
RF 2
0
RF2
0
RF 1
UEB
RF1
UEB
Bit
0
0
0
0
0
0
0
0
RF1 =1 Process interrupt was triggered by a positive-going edge of reference bit REF1
(”0” reached)
RF2 =1 Process interrupt was triggered by a positive-going edge of reference bit REF2
(last count terminated and final value stored)
UEB =1 Process interrupt was triggered by a positive-going edge of status bit UEBL
(count out of range)
UBS =1 Process interrupt was triggered by a positive-going edge UEBS
(last count terminated and final value stored)
Bits for the configured mode and data block number
DL 23
DR 23
7
Data
byte
6 5 4 3 2 1 0
0
2
5
0
2
4
0
2
3
0
2
2
0
2
0
Bit
0
2
7
0
2
6
DB No.
1
2
1
After error-free configuring of the channel, a bit combination corresponding to the mode is
entered in DL 23.
DL 23=02
H
Channel has been configured for counting mode
DR 23= No. of the data block, in binary, specified during configuring
Status bits for the final value and final value in binary
0000000 0
0 0 0 0 0 UEBS UEBE SGF
002
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
DL 27
DR 27
DL 28
DR 28
7
Data
byte
6 5 4 3 2 1 0
Bit
Final
value
SGF =1 The final value specified in DW 28 is negative
=0 The final value specified in DW 28 is positive
UEBE =1 Actual value exceeds negative range (final value < - 9 999)
UEBS =1 Old value was overwritten without being read
DW 28 : Final value in binary; the specified value is the absolute final value
EWA 4NEB 811 6120-02a
8-15