High-Speed Input and
Pulse Output Features
3–13
High-Speed Input and Pulse Output Features
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 dummy 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
K1006
Load the constant required to configure input
as filtered inputs.
OUT
V7635
Output the constant K1006 to V7635, the location
of setup parameter for X1.
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
Содержание DL05
Страница 1: ...DL05 User Manual Automationdirect com ...
Страница 2: ...DL05 User Manual Automationdirect com ...
Страница 436: ...1B DL05 Error Codes In This Appendix Ċ Error Code Table ...
Страница 443: ...1C Instruction Execution Times In This Appendix Ċ Introduction Ċ Instruction Execution Times ...
Страница 459: ...1D Special Relays In This Appendix Ċ DL05 PLC Special Relays ...
Страница 464: ...1E DL05 Product Weights In This Appendix Ċ Product Weight Table ...
Страница 466: ...1F European Union Directives CE In This Appendix Ċ European Union EU Directives Ċ Basic EMC Installation Guidelines ...