DL205 User Manual, 4th Edition, Rev. D
5-49
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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.
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.
3
D
7
H
Handheld Programmer Keystrokes
X1
C5
CT7
SGCNT CT7
K3
RST
X1
Y7
12340
Current
Value
RST
CT7
CT7
Y7
OUT
Counting diagram
DirectSOFT
STR
$
1
B
ENT
CNT
GY
STR
$
SHFT ENT
OUT
GX
ENT
H
2
C
MLR
T
7
H
STR
$
SHFT ENT
2
C
5
F
RST
S
SHFT
2
C
7
H
ENT
SHFT
RST
S
6
G
SHFT
ENT
Handheld Programmer Keystrokes (cont)
SHFT
SHFT
SHFT
MLR
T
7
Handheld Programmer Keystrokes
X1
X1
Y3
12 340
Current
Value