DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-342
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
CTREDPT Example (cont’d)
Rung 2: This rung is a sample method for enabling the CTREDPT 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 CTREDPT instruction to change the second preset from a reset
at a count of 20 to a reset at a count of 30 for output #0 on the CTRIO in slot 2.
Operating procedure for this example code is to load the CTREDPT_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 and stay on until a count of 20 is reached, where it will turn off. Now reset the counter
with C1, enable C0 to execute CTREDPT command to change the second preset, turn on C2
to enable output #0, then turn encoder to value of 10+ (output #0 should turn on) and then
continue past a count of 30 (output #0 should turn off).
Note that we must also reload the profile after changing the preset(s), this is why the CTRLDPR
command follows the CTREDPT command in this example.
(example continued on next page)