DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-346
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
CTREDRL Example (cont’d)
Rung 2: This rung is a sample method for enabling the CTREDRL command. A C-bit is used
to allow the programmer to control the command from Data View for testing purposes.
Turning on C0 will cause the CTREDRL instruction to change the second preset in file 1 from
a reset at a value of 20 to a reset at a value of 30.
Operating procedure for this example code is to load the CTREDRL_ex1.cwb file to your
CTRIO, then enter the code shown here, change to RUN mode, enable output #0 by turning
on C2 in Data View, turn encoder on CTRIO to value above 10 and output #0 light will come
on, continue to a count above 20 and the output #0 light will turn off. Now reset the counter
with C1, enable C0 to execute CTREDRL command to change the second preset count value
to 30, then turn encoder to value of 10+ (output #0 should turn on) and continue on to a value
of 30+ and the output #0 light will turn off.
Note that it is not necessary to reload this file separately, however, the command can only
change one value at a time.
(example continued on next page)