Counter Example Using Discrete Status Bits; Counter Example Using Comparative Contacts - Automationdirect.com DirectLOGIC DL205 Series User Manual

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register

Counter Example Using Discrete Status Bits

In the following example, when X1 makes an off to on transition, counter CT2 will
increment by one. When the current value reaches the preset value of 3, the counter status bit
CT2 will turn on and energize Y7. When the reset C10 turns on, the counter status bit will
turn off and the current value will be 0. The current value for counter CT2 will be held in V-
memory location V1002.
DirectSOFT
X1
C10
CT2
Handheld Programmer Keystrokes
$
B
ENT
STR
1
$
C
SHFT
STR
2
GY
C
CNT
2

Counter Example Using Comparative Contacts

In the following example, when X1 makes an off to on transition, counter CT2 will
increment by one. Comparative contacts are used to energize Y3, Y4, and Y5 at different
counts. When the reset C10 turns on, the counter status bit will turn off and the counter
current value will be 0, and the comparative contacts will turn off.
DirectSOFT
X1
C10
CTA2
K1
CTA2
K2
CTA2
K3
Handheld Programmer Keystrokes
$
B
ENT
STR
1
$
C
B
SHFT
STR
2
1
GY
C
D
CNT
2
3
$
C
SHFT
SHFT
STR
2
B
ENT
1
GX
D
ENT
OUT
3
CNT
CT2
X1
K3
C10
CT2 or
Y7
Y7
OUT
Current Value
B
A
ENT
1
0
D
ENT
3
CNT
CT2
X1
K3
C10
Y3
Y3
OUT
Y4
Y4
Y5
OUT
Current
Value
Y5
OUT
Handheld Programmer Keystrokes (cont)
$
STR
A
ENT
0
GX
ENT
OUT
T
C
$
MLR
2
STR
GX
OUT
DL205 User Manual, 4th Edition, Rev. B
Counting diagram
1
2
Handheld Programmer Keystrokes (cont)
$
C
SHFT
SHFT
STR
2
GX
H
ENT
OUT
7
Counting diagram
1
2
3
C
T
SHFT
SHFT
2
MLR
C
ENT
2
E
ENT
4
C
T
SHFT
SHFT
2
MLR
D
ENT
3
F
ENT
5
3
4
0
T
C
ENT
MLR
2
4
0
C
2
C
2
5–47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF