Stage Counter Example Using Discrete Status Bits; Stage 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

Stage Counter Example Using Discrete Status Bits

In the following example, when X1 makes an off to on transition, stage counter CT7 will
increment by one. When the current value reaches 3, the counter status bit CT7 will turn on
and energize Y7. The counter status bit CT7 will remain on until the counter is reset using
the RST instruction. When the counter is reset, the counter status bit will turn off and the
counter current value will be 0. The current value for counter CT7 will be held in V-memory
location V1007.
DirectSOFT
X1
CT7
C5
Handheld Programmer Keystrokes
$
B
ENT
STR
1
S
G
SHFT
SHFT
RST
6
H
D
ENT
7
3
$
C
SHFT
STR
2

Stage 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. Although this is not shown in the example, when the counter is reset using the Reset
instruction, 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
CTA2
K1
CTA2
K2
CTA2
K3
Handheld Programmer Keystrokes
$
B
ENT
STR
1
S
G
SHFT
SHFT
RST
6
C
B
A
2
1
0
$
C
SHFT
STR
2
B
ENT
1
GX
D
ENT
OUT
3
SGCNT
CT7
X1
K3
Y7
Y7
OUT
Current
Value
CT7
RST
RST
CT7
Handheld Programmer Keystrokes (cont)
GX
OUT
GY
$
SHFT
CNT
STR
S
RST
T
H
SHFT
ENT
MLR
7
SGCNT
CT2
K10
X1
Y3
Y3
OUT
Y4
Y4
OUT
Y5
Current
Y5
Value
OUT
RST
CT2
GY
CNT
ENT
T
C
SHFT
MLR
2
DL205 User Manual, 4th Edition, Rev. B
Counting diagram
1
2
3
H
ENT
7
C
F
SHFT
ENT
2
5
C
T
H
SHFT
SHFT
2
MLR
7
Counting diagram
1
2
3
Handheld Programmer Keystrokes (cont)
$
C
SHFT
SHFT
STR
2
C
ENT
2
GX
E
ENT
OUT
4
$
C
SHFT
SHFT
STR
2
D
ENT
3
GX
F
ENT
OUT
5
4
0
ENT
4
0
T
C
MLR
2
T
C
MLR
2
5–49
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?

Table of Contents

Save PDF