Technical FAQs

Ask a Question

When using the 140 EHC202 00 High Speed Counter, how do I reset my counter value(s) to zero, or maximum value?

Using the "Parameter" screens the module is configured for its set points,max value
and mode of operation. To reset the count is a simple matter of sending a command
to the first 4x register of the module's I/O map reference. Prior to doing anything you
should be aware of the terminology involving this module.

Reset: Turning off the output coils associated with the card. Reset has nothing to do
with your count values being set to 0 or max value.
Preset: This can be a hardware input or software command. Preset will set your current
count to zero if your counting up, or to max value if your counting down.

 To perform the initial start up of the module you can send any of the following commands
 based upon the number of counters being used. The value should be sent to the 1st
 4xxxxx or %MW assigned to the module in the IO Map.

Startup
To Preset and Enable counters 1 and 2... Send the value 233H to the module.
To Preset and Enable counter 1 only......... Send the value 203H
To Preset and Enable counter 2 only..........Send the value 230H

 Following the Preset and Enable command you will send the Read command to the 1st
4xxxxx or %MW reference assigned to the module in the IO Map

 Read Counters  1 & 2  ...............................Send the value 300H


Run Time
  Once the PLC application is running and you wish to Preset and Enable counters 1 & 2
 send the following commands to the EHC202.

To Preset and Enable counters 1 and 2... Send the value  0033H to the module.
To Preset and Enable counter 1 only......... Send the value  0003H
To Preset and Enable counter 2 only..........Send the value  0030H


If you want to know what the last count was prior to Preset send a 400H command. This command
will buffer the last count seen by the counters just before the Preset command arrived.

Remember, you can Preset the module with hard wired inputs to the Preset input of each counter or
you can use the software Preset described here. A hardware Preset is accomplished by pulsing the
Preset input terminal on the EHC 202 for counter 1or counter 2. It is permissible to use both methods
simultaneouslyif you wish. Follow the wiring diagrams in the Quantum Hardware Reference Guide
they are accurate and should be relied upon for proper module operation.
 

Was this helpful?
What can we do to improve the information ?