DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-350
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
CTRINPT Example (cont’d)
Rung 2: This rung is a sample method for enabling the CTRINPT 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 CTRINPT instruction to create a single entry preset table, but
not as a file, and use it for the output #0. In this case the single preset will be a set at a count
of 15 for output #0.
Operating procedure for this example code is to load the CTRINPT_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 15 and output #0 light will not
come on. Now reset the counter with C1, enable C0 to execute CTRINPT command to create
a single preset table with a preset to set output #0 at a count of 15, then turn encoder to value
of 15+ (output #0 should turn on).
(example continued on next page)