Standard
RLL
Instructions
5--34
Standard RLL Instructions
Timer, Counter, and Shift Register Instructions
DL105 PLC User Manual, 3rd Edition
In the following example, when X1 makes an off to on transition, counter CT2 will
increment by one. When the current value reaches the preset value of 3, the counter
status bit CT2 will turn on and energize Y7. When the reset C10 turns on, 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.
2
C
Handheld Programmer Keystrokes
CT2
X1
CNT
CT2
K3
C10
Y7
OUT
X1
Y7
1
2
3
4
0
Current
Value
C10
Counting diagram
Direct
SOFT
STR
$
1
B
ENT
3
D
ENT
STR
$
SHFT
ENT
2
C
1
B
0
A
CNT
GY
STR
$
SHFT
ENT
OUT
GX
ENT
0
A
1
B
2
C
MLR
T
2
C
Handheld Programmer Keystrokes (cont)
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, Y4, and Y5 at
different counts. When the reset C10 turns on, the counter status bit will turn off and
the counter current value will be 0, and the comparative contacts will turn off.
Handheld Programmer Keystrokes
X1
CNT
CT2
K3
C10
X1
Y3
1
2
3
4
0
Current
Value
C10
Counting diagram
CTA2
K1
CTA2
K2
CTA2
K3
Y4
OUT
Y3
OUT
Y5
OUT
Y4
Y5
Direct
SOFT
Handheld Programmer Keystrokes (cont)
STR
$
SHFT
ENT
OUT
GX
ENT
2
C
4
E
STR
$
SHFT
2
C
ENT
OUT
GX
ENT
3
D
5
F
STR
$
1
B
ENT
2
C
STR
$
SHFT
1
B
ENT
OUT
GX
ENT
3
D
STR
$
SHFT
ENT
2
C
1
B
0
A
CNT
GY
ENT
3
D
MLR
T
2
C
2
C
MLR
T
2
C
2
C
MLR
T
2
C
SHFT
SHFT
SHFT
Counter Example
Using Discrete
Status Bits
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...