Specifications
DL06 Micro PLC User Manual, 3rd Edition, Rev. C
E–16
Appendix E: High-speed Input and Pulse Output Features
1
2
3
4
E
6
7
8
9
10
11
12
13
14
A
B
C
D
Program Example 1: Counter Without Presets
The following example is the simplest way to use the high-speed counters, which does not use
the presets and special relays in the interrupt routine. The program configures the HSIO
circuit for Mode 10 operation, so X0 is automatically the counter clock input for the first
counter, and X1 is the counter clock input for the second counter. It uses the Compare-
double (CMPD) instruction to cause action at certain count values. Note that this allows you
to have more than 24 presets. Then, it configures X2 and X3 to be the external reset of the
counter.
SP0
LD
K10
Load constant K10 into the accumulator. This
selects Mode 10 as the HSIO mode.
OUT
V7633
Output the constant K10 to V7633, the
location of HSIO Mode select register.
LD
K1
Load the constant required to configure X0 as
the counter 1 clock.
OUT
V7634
Output the constant K1 to V7634, the location of
the setup parameter for X0.
First Scan Only
Direct SOFT
UDC
CT174
K99999999
SP1
SP1
SP1
CT174 is the HSIO counter. The first rung’s SP1
always enables the counter. The Preload Input in
the middle is always off. The third rung’s Reset
input is always off, because we will use the
external reset.
LD
K7
Load the constant required to configure X2 as
an external reset without interrupt.
OUT
V7636
Output the constant K7 to V7636, the location of
the setup parameter for X2.
LD
K1
OUT
V7635
Output the constant K1 to V7635, the location
of setup parameter for X1.
Mode 10
Configure
Inputs
LD
K7
an external reset without interrupt.
OUT
V7637
Output the constant K7 to V7637, the location of
the setup parameter for X3.
Load the constant required to configure X1 as
the counter 2 clock.
Load the constant required to configure X3 as
continued on next page