Standard
RLL
Instructions
5--38
Standard RLL Instructions
Timer, Counter, and Shift Register Instructions
DL105 PLC User Manual, 3rd Edition
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.
3
D
ENT
Handheld Programmer Keystrokes
X1
UDC
CT2
K3
X2
X3
CT2
Y7
OUT
X1
CT2
1
2
1
2
3
0
Current
Value
X2
X3
Counting Diagram
Direct
SOFT32
Handheld Programmer Keystrokes (cont)
STR
$
1
B
ENT
STR
$
2
C
STR
$
3
D
SHFT
ISG
U
3
D
2
C
2
C
ENT
ENT
STR
$
SHFT
ENT
OUT
GX
ENT
0
A
1
B
2
C
MLR
T
2
C
SHFT
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.
AND
V
Handheld Programmer Keystrokes
X1
UDC
CT2
V2000
X2
X3
X1
X2
X3
Counting Diagram
CTA2
K1
CTA2
K2
Y4
OUT
Y3
OUT
Y3
1
2
3
4
0
Current
Value
Y4
Direct
SOFT32
Handheld Programmer Keystrokes (cont)
STR
$
1
B
ENT
STR
$
2
C
STR
$
3
D
SHFT
ISG
U
3
D
2
C
2
C
ENT
ENT
SHFT
ENT
2
C
0
A
0
A
0
A
STR
$
SHFT
1
B
ENT
OUT
GX
ENT
3
D
MLR
T
2
C
2
C
STR
$
SHFT
ENT
OUT
GX
ENT
MLR
T
2
C
2
C
2
C
4
E
SHFT
SHFT
Up / Down Counter
Example Using
Discrete Status
Bits
Up / Down Counter
Example Using
Comparative
Contacts
Содержание DL105
Страница 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Страница 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Страница 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Страница 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Страница 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...
Страница 329: ...1F European Union Directives CE In This Appendix European Union EU Directives Basic EMC Installation Guidelines...