The Main type is a counter that uses up to 5 fast inputs and 4 reflex outputs. The TM3 HSC expansion modules can have up to 2 Main type high speed counters configured.
The Main type supports the following counting modes on single phase (1 input) or dual-phase (2 inputs) pulses:
One-shot: In this mode, the counter value register decrements (from a user-defined value) for each pulse applied to the A input until the counter reaches 0.
Modulo-loop: In this mode, the counter repeatedly counts up from 0 to a user-defined modulo value, then returns to 0 and restarts counting. In reverse, the counter counts down from the modulo value to 0, then presets to the modulo value and restarts counting.
Free-large: In this mode, the counter behaves like a full range up and down counter.
Event Counting: In this mode, the counter accumulates the number of events that are received during a user-configured time base.
Frequency meter: In this mode, the counter measures the frequency of events. Frequency is the number of events per second (Hz).
Period meter: Use the Period meter mode to:
odetermine the duration of an event
odetermine the time between 2 events
oset and measure the execution time for a process
Optional features can be configured depending on the selected mode:
oHardware inputs to operate the counter (enable, preset) or capture the on-going counting value
oUp to 4 thresholds, the values of which can be compared.
oWith the TM3XFHSC202 module, up to 4 external events (1 for each threshold) can be associated with tasks
oUp to 4 reflex outputs
The maximum frequency admissible on a fast input is 100 kHz if the bounce filter value is 0.005 ms. If the bounce filter value is 0.002 ms (default value for configuration), the maximum frequency is 200 kHz.
For more information about the bounce filter, refer to Dedicated Features.