Applications

5-8

Series

505 High Speed Counter

and Encoder Module User
s Manual
Tank Filling Example (continued)
C51
C8
C51 C8
: AFTER
90,000 PULSES, SUBTRACT THE OVERCOUNTS FROM 10,000
AND LOAD THE REMAINING COUNT INT
O PRESET 2.
CTR2
P =
9
MOVW2
A: V201
N = 1
B: WY7
SUB2
C51 C8 Y20
C61
SUB1
C61
C51
: ACCUMULA
TE THE OVERCOUNTS
A: WX3
B: V200
C: V101
ADD1
A: V101
B: V100
C: V100
A: V200
C:
B: V100
WY8
C140
C256
C8 C256
:
TEST FOR COMPLETION OF 100,000 COUNTS, INHIBIT FUR
THER
COUNTS, AND CLEAR OVERCOUNT ACCUMULA
T
OR. C256 WILL THEN
TURN OFF C140 AND DISABLE THE V
ALVE.
BITP2
A: WX1
LDC3
A: V100
N = 0
BITS2
A: WY4
N = 6N = 8
BITS5
A: WY4
N = 5
BITP5
A: WX1
N = 7
C51 :
WHEN HSC CH2 OUTPUT 1 TURNS ON, PULSE COUNT IS 10,000
OR GREA
TER, RESET COUNTER AND ST
AR
T NEW COUNT
.

Figure 5-7 Ladder

Logic for T

ank Filling Example (continued)