Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register
Accumulating Timer Example using Discrete Status Bits
In the following example, a two input timer (accumulating timer) is used with a preset of 3
seconds. The timer discrete status bit (T6) will turn on when the timer has timed for 3
seconds. Notice in this example that the timer times for 1 second , stops for one second, then
resumes timing. The timer will reset when C10 turns on, turning the discrete status bit off
and resetting the timer current value to 0.
DirectSOFT
X1
C10
T6
Handheld Programmer Keystrokes
$
B
ENT
STR
1
$
C
SHFT
STR
2
N
A
SHFT
TMR
0
Accumulator Timer Example Using Comparative Contacts
In the following example, a two-input timer is used with a preset of 4.5 seconds. Comparative
contacts are used to energized Y3, Y4, and Y5 at one second intervals respectively. The
comparative contacts will turn off when the timer is reset.
Contacts
DirectSOFT
X1
C10
TA20
K10
TA21
K0
TA21
K1
TA20
K20
TA21
K0
TA21
K1
TA20
K30
TA21
K1
Handheld Programmer Keystrokes
$
B
ENT
STR
1
$
C
B
A
SHFT
STR
2
1
N
A
C
A
SHFT
TMR
0
2
$
T
C
A
SHFT
STR
MLR
2
E
V
T
SHFT
SHFT
AND
4
MLR
E
Q
T
SHFT
SHFT
4
OR
MLR
GX
D
ENT
OUT
3
0
TMRA
T6
X1
K30
C10
T6
Y10
Current
OUT
Value
B
A
ENT
1
0
G
6
TMRA
T20
0
K45
X1
C10
Y3
Y3
OUT
Y4
Y5
Y4
T20
OUT
Current
Value
Y5
OUT
ENT
0
E
F
ENT
0
4
5
B
A
ENT
0
1
0
C
B
A
ENT
2
1
0
C
B
B
ENT
2
1
1
DL205 User Manual, 4th Edition, Rev. B
Timing Diagram
Seconds
1
2
3
4
0
10
10
20
1/10th Seconds
Handheld Programmer Keystrokes (cont'd)
D
A
ENT
3
0
$
T
SHFT
STR
MLR
GX
B
A
OUT
1
0
Timing Diagram
Seconds
1
2
3
4
5
0
10
10
20
30
1/10th Seconds
Handheld Programmer Keystrokes (cont'd)
$
T
C
A
SHFT
STR
MLR
2
0
E
V
T
SHFT
SHFT
4
AND
MLR
E
Q
T
SHFT
SHFT
4
OR
MLR
GX
E
ENT
OUT
4
$
T
C
A
SHFT
STR
MLR
2
0
E
V
T
SHFT
SHFT
4
AND
MLR
GX
F
ENT
OUT
5
5
6
7
8
30
40
50
0
G
ENT
6
ENT
6
7
8
40
50
0
C
A
ENT
2
0
C
B
A
ENT
2
1
0
C
B
B
ENT
2
1
1
D
A
ENT
3
0
C
B
B
ENT
2
1
1
5–45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?