DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-50
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Up / Down Counter Example Using Discrete Status Bits
In the following example, if X2 and X3 are off, the counter will increment by one when X1
toggles from Off to On . 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.
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.
3
D
ENT
Handheld Programmer Keystrokes
X1
UDC CT2
K3
X2
X3
CT2
Y7
OUT
X1
CT2
1212 30
Current
Value
X2
X3
Counting Diagram