Specifications

DL06 Micro PLC User Manual, 3rd Edition, Rev. C
E–17
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: (cont’d)
The compare double instructions below use the current count of the HSIO counter to turn
on Y0 and Y1. This technique can make more than 24 comparisons, but it is scan-time
dependent. However, use the 24 built-in presets with the interrupt routine if your application
needs a very fast response time, as shown in the next example.
END
END coil marks the end of the main program.
SP1
LDD
V1174
Load the current count of the HSIO counter in
V1174 and V1175 into the accumulator
CMPD
K123456
Use the Compare-double instruction to compare
the double word in the accumulator to the constant
K123456.
SP62
OUT
The execution of the above CMPD instruction turns
on special relay contact SP62 if the current count
is greater than the comparison number (K345678).
Y1
UDC
CT176
K99999999
SP1
SP1
SP1
CT176
always enables the counter. The Preload Input in
the middle is always of f. The third rung’s Reset
input is always off, because we will use the
external reset.
SP1
LDD
V1176
Load the current count of the HSIO counter in
V1176 and V1177 into the accumulator
CMPD
K345678
Use the Compare-double instruction to compare
the double word in the accumulator to the constant
K345678
SP62
OUT
The execution of the above CMPD instruction turns
on special relay contact SP62 if the current count
is greater than the comparison number (K123456).
Y0
continued from previous page