Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register
Up/Down Counter Example Using Discrete Status Bits
In the following example, if X2 and X3 are off, when X1 toggles from off to on the counter
will increment by one. If X1 and X3 are off the counter will decrement by one when X2
toggles from off to on. When the count value reaches the preset value of 3, the counter status
bit will turn on. When the reset X3 turns on, the counter status bit will turn off and the
current value will be 0.
DirectSOFT
X1
X2
X3
CT2
Handheld Programmer Keystrokes
B
$
ENT
STR
1
C
$
ENT
STR
2
D
$
ENT
STR
3
U
D
C
SHFT
ISG
3
2
Up/Down 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 and Y4 at different counts.
When the reset (X3) turns on, the counter status bit will turn off, the current value will be 0,
and the comparative contacts will turn off.
DirectSOFT
X1
X2
X3
CTA2
K1
CTA2
K2
Handheld Programmer Keystrokes
$
B
ENT
STR
1
$
C
ENT
STR
2
$
D
ENT
STR
3
U
D
C
SHFT
ISG
3
2
V
C
A
SHFT
AND
2
0
$
C
SHFT
STR
2
UDC
CT2
K3
X1
X2
X3
CT2
Y10
Current
OUT
alue
V
C
2
UDC
CT2
V2000
X1
X2
X3
Y3
Y3
OUT
Y4
Y4
Current
Value
OUT
C
2
A
A
ENT
0
0
T
C
SHFT
MLR
2
DL205 User Manual, 4th Edition, Rev. B
Counting Diagram
1
2
1
Handheld Programmer Keystrokes (cont)
D
ENT
3
C
T
$
SHFT
SHFT
STR
2
GX
B
A
ENT
OUT
1
0
Counting Diagram
1
2
Handheld Programmer Keystrokes (cont)
B
ENT
1
GX
D
ENT
OUT
3
$
C
SHFT
SHFT
STR
2
C
ENT
2
GX
E
ENT
OUT
4
3
2
0
C
ENT
MLR
2
3
4
0
T
C
MLR
2
5–51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?