Specifications
DL06 Micro PLC User Manual, 3rd Edition, Rev. C
E–29
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
Writing Your Control Program
The mnemonic for the counter is UDC (up-down counter). The DL06 can have up to 128
counters, labeled CT0 through CT177. The quadrature counter in the HSIO circuit is
accessed in ladder logic by using UDC CT174. It uses counter registers CT174 and CT175
exclusively when the HSIO mode 20 is active (otherwise, CT174 and CT175 are available for
standard counter use). The HSIO counter needs two registers because it is a double-word
counter. It has three inputs as shown. The first input is the enable signal, the middle is a
preload (write), and the bottom is the reset. The enable input must be on before the counter
will count. The enable input must be off during a preload.
The next figure shows the how the HSIO quadrature counter will appear in a ladder program.
When the enable input is energized, the counter will respond to quadrature pulses on X0 and
X1, incrementing or decrementing the counter at CT174 – CT175. The reset input contact
behaves in a logical OR fashion with the physical reset input X2. This means the quadrature
counter can receive a reset from either the contact(s) on the reset rung in the ladder, OR the
external reset X2.
NOTE: The count is 32 bit BCD sign + magnitude format.
Preset Range:
1-99999999
Reset Input
UDC
CT174
Kxxxxxxxx
Enable Input
Preload Input
Reset Input
UDC
CT174
Kxxxxxxxx
Enable Input
Preload Input
Reset Input
UDC
CTxx
Kxxxxxxxx
UP Count
DOWN Count
Standard Counter Function HSIO Counter Function
Counts UP and DOWN Counts UP and DOWN (from X0, X1)
Reset input is internal only Reset may be internal or external
Preload counter by write to value Can use Preload Input to change count
-8388608 to 8388607