High
-S
peed
Input
and
Pulse
O
utput
Features
3--12
High-speed Input and Pulse Output Features
DL105 PLC User Manual, 3rd Edition
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 clock.
OUT
V7634
Output the constant K1 to V7634, the location of
the setup parameter for X0.
First Scan Only
Direct
SOFT
UDC
CT76
Kxxxxxxxx
SP1
SP1
SP1
END
END coil marks the end of the main program.
CT76 is the HSIO counter. The first rung’s SP1
always enables the counter. The preload contact 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
K1006
Load the constant required to configure inputs
as filtered inputs.
OUT
V7635
Output the constant K1006 to V7635, the location
of setup parameter for X1.
OUT
V7637
Output the constant K1006 to V7637, the location
of setup parameter for X3.
Mode 10
Configure
Inputs
SP1
LDD
V1076
Load the current count of the HSIO counter in
V1076 and V1077 into the accumulator
CMPD
K309482
Use the Compare-double instruction to compare
the double word in the accumulator to the constant
K309482
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 (K309482).
Y0
The compare double instruction above uses the current count of the HSIO counter to
turn on Y0. 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.
Program
Example Cont’d
Summary of Contents for DL105
Page 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Page 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Page 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Page 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Page 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...