High-Speed Input and Pulse Output Features
3–12
High-speed Input and Pulse Output Features
The next figure shows how the HSIO counter will appear in a ladder program. Note
that the Enable Interrupt (ENI) command must execute before the counter value
reaches the first preset value. We do this at powerup by using the first scan relay.
When using the counter but not the presets and interrupt, we can omit the ENI.
Direct
SOFT
Required
Preset Range:
1-99999999
Reset Input
UDC
CT76
Kxxxxxxxx
Enable Input
Dummy Input
ENI
SP1
XX
XX
XX
When the enable input is energized, the high-speed counter will respond to pulses
on X0 and increment the counter at CT76 – CT77. The reset input contact behaves in
a logical OR fashion with the physical reset input X2 (when selected). So,the high
speed counter can receive a reset form either the contact(s) on the reset rung in the
ladder, OR the external reset X2 if you have configured X2 as an external reset.
The following example is the simplest way to use the high-speed counter, 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. 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 to be the external reset of the counter.
Program Example:
Counter Without
Preset
Содержание 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 ...