What Is a High Speed Counting Module and How Does It Work?
Release date:
2026-10-06
Image Source: statics.mylandingpages.co A high speed counting module is a specialized interface that processes rapid pulse signals independently of a PLC's main scan cycle. It exists because standard digital inputs cannot reliably detect pulses that arrive faster than the PLC can scan. This module is essential for applications requiring prec
A high speed counting module is a specialized interface that processes rapid pulse signals independently of a PLC's main scan cycle. It exists because standard digital inputs cannot reliably detect pulses that arrive faster than the PLC can scan. This module is essential for applications requiring precise, high-speed counting, such as motion control and position feedback. Engineers rely on a high speed counter to capture encoder signals accurately during high-speed counting operations.
Key Takeaways
- A high speed counting module captures fast pulses that standard PLC inputs miss.
- It reads encoder signals to track position and speed accurately.
- Counting modes like 4x multiply resolution for finer control.
What Is a High Speed Counter Module?
Definition and Core Function
An industrial high speed counting module is a dedicated hardware device inside a PLC. The standard definition describes a high speed counter that counts high-frequency signals. This high-speed counter module stores counted values in hardware registers. The high-speed counter function operates independently of the PLC scan cycle. It captures every input pulse.
The HSC module monitors high-speed inputs, captures rising and falling edges, and counts pulses asynchronously. Hardware interrupts update the current value of the high-speed counter instantly. This process enables high-speed counting without missed events.
Standard Inputs vs. High-Speed Counting
Standard PLC input cards contain RC filters that block fast signals. A scan time of 5ms misses pulses arriving every 1ms. High speed counters avoid this limitation by bypassing the normal scan. A high speed counter counts pulses asynchronously in dedicated silicon. These high-speed counter inputs read signals directly and process them immediately. Applications use high speed counters for position feedback. High-speed counters interpret encoder direction. An input filter set to 20 microseconds rejects narrow noise. Thus, high-speed counting becomes reliable even at kilohertz rates.
Key Hardware Components
A high speed counter accepts encoder signals through Phase A/B inputs. It reads encoder direction and stores an encoder count. The module performs counting entirely in hardware. High-speed counters provide position feedback to the control program. The HSC reads the stored count through special registers. The table below lists typical specifications.
| Specification | Value |
|---|---|
| Input signal level | 2 to 5 mA at DC 5/12/24 V |
| Maximum counting speed | 200k pulses/s or 8M pulses/s |
| Input filter time | 20 microseconds |
How Does High-Speed Counting Work with Encoders?
Understanding Encoder Signals
An encoder converts physical motion into electrical pulses that a high speed counter can process. An incremental encoder is a linear or rotary electromechanical device with two output signals, A and B, which issue pulses when the device moves. Together, the A and B signals indicate both the occurrence and direction of movement. Many incremental encoders have an additional output signal, typically designated index or Z, which indicates the encoder is located at a particular reference position.
The encoder generates its A and B output signals using a quadrature encoding technique. When the encoder moves at a constant velocity, the A and B signals are square waves with a 90° phase difference between them. This phase relationship allows detection of both movement and direction. At any particular time, the phase difference between the A and B signals will be positive or negative depending on the encoder's direction of movement.
A three-channel incremental encoder consists of the channel A and B output signals and a reference output signal denoted as the Index. The Index signal produces a single pulse per revolution at a unique position. The Index signal is typically used to identify a center position, home position, reset point or zero reference. The pulses are emitted as digital output signals using two incremental channels (A and B). If a system only needs to know speed (RPM) but not direction, only the A channel is used. When a system needs to know both speed and direction, channels A and B are used together. The A and B channels have a phasing offset of 90 electrical degrees. This is called quadrature because there are 360 electrical degrees in one pulse encoder cycle. Incremental encoders also generate a digital signal called an index pulse which outputs data once per revolution on a dedicated channel (Z channel). The index pulse is commonly used to verify the pulse count of the A and B signals, or to track the number of shaft rotations with a counter.
For incremental optical encoders, light passes through a patterned disc and is converted to a square wave signal sent to the processor (e.g., PLC and high-speed counter module) via the encoder's output. The encoder produces digital signals (square wave pulses) in response to motion, representing movement increments for measuring speed, direction, or position. The high-speed counter, integrated into a PLC or dedicated HSC module, is configured to receive and process these pulses. As pulses are generated, the counter counts them to determine the position of the rotating object. The counter analyzes the order of pulse transitions (rising/falling edges) to determine the direction of movement (forward or reverse).
Incremental encoders are compatible with high-speed counter modules provided their output frequency falls within the module's input capability. For example, EZ Automation's High Speed Counter Module accepts input frequencies up to 100,000 Hz, which greatly extends the usable range for incremental encoders operating at higher resolutions and speeds. The table below shows the specifications of several high-speed counter modules.
| Module | Count Input Signal Phase | Signal Level | Pulse Input | Max Counting Speed |
|---|---|---|---|---|
| QD62 / QD62E | 1-phase, 2-phase, CW/CCW | 5/12/24 V DC, 2–5 mA | 1-phase (x1, x2), CW/CCW, 2-phase (x1, x2, x4) | 200 kpps |
| QD62D | 1-phase, 2-phase, CW/CCW | EIA RS-422-A differential line driver (AM26LS31 or equivalent) | 1-phase (x1, x2), CW/CCW, 2-phase (x1, x2, x4) | 500 kpps |
| QD63P6 | 1-phase, 2-phase, CW/CCW | 5 V DC, 6.4–11.5 mA | 1-phase (x1, x2), CW/CCW, 2-phase (x1, x2, x4) | 200 kpps |
| QD64D2 | 1-phase, 2-phase, CW/CCW | EIA RS-422-A differential line driver (AM26LS31 or equivalent) | 1-phase (x1, x2), CW/CCW, 2-phase (x1, x2, x4) | 4 Mpps |
| QD65PD2 | 1-phase, 2-phase, CW/CCW | Differential: EIA RS-422-A line driver; DC: 5/12/24 V DC, 7–10 mA | 1-phase (x1, x2), CW/CCW, 2-phase (x1, x2, x4) | Differential: 8 Mpps; DC: 200 kpps |
| QD60P8-G | 1-phase | 5 V DC / 12–24 V DC, ≥ 4 mA | 1-phase | 30 k/10 k/1 k/100/50/10/1/0.1 pps |
Signal Processing and Filtering
A high-speed counter module must interpret encoder signals accurately despite electrical noise present in industrial environments. The module reads the phase relationship between channels A and B to determine direction. When A leads B, the counter increments. When B leads A, the counter decrements. If A and B transition simultaneously, the module flags an invalid condition and increments a quadrature error count. This behavior ensures reliable direction detection during high-speed counting operations.
The table below summarizes how a high-speed counter interprets quadrature phase relationships.
| Input condition | Invert Counter Direction disabled | Invert Counter Direction enabled |
|---|---|---|
| A leads B | Counter increments | Counter decrements |
| B leads A | Counter decrements | Counter increments |
| A and B transition simultaneously | Invalid; QuadratureErrorCount incremented | Invalid; QuadratureErrorCount incremented |
Signal filtering plays a critical role in maintaining accurate pulse counting. Selectable filter values suppress electrical noise but may block valid pulses if set too aggressively. The cable environment determines the level of filtering needed to reject induced noise. The minimum valid pulse width must be matched to the filter so real pulses are not attenuated. Filter configuration (per module or channel) must match the actual signal environment to prevent false counts. Shielding and grounding work together with filtering to prevent noise-induced false transitions.
Engineers diagnose counting problems by examining two common symptoms. A count lower than expected indicates that valid pulses are being filtered, attenuated, or presented above the usable input rate. In this case, the engineer compares the source waveform's amplitude, minimum pulse width, duty cycle, and frequency with the selected HSC input and filter specifications. A count that increases while the machine is stopped points to noise, a floating reference, a shield or ground problem, or insufficient filtering. The engineer then inspects the waveform and grounding arrangement, and checks whether transitions occur at the HSC input terminals.
Select an HSC whose guaranteed input behavior, pulse-width limits, voltage interface, filter setting, and margin all support the real waveform. A stable count requires correct signal levels, filtering, shielding, grounding, and mode configuration.
The choice between single-ended and differential encoder outputs also affects signal integrity. Single-ended output is the most commonly used encoder output, typically alternating between 0 and 5 VDC. Differential output includes a complementary channel for each channel; while one alternates between 0 and 5 VDC, the complementary channel alternates between 0 and -5 VDC. Differential signaling enables longer cable runs and suits electrically noisy environments. The table below compares these two signal types.
| Feature | Single-Ended Signal | Differential Signal |
|---|---|---|
| Wiring | One wire per channel, with the other wire grounded | Two complementary signals, each on its own conductor |
| Signal Form | Varying voltage pulses (A, B, Z) over one wire | Complementary pulses (A-, B-, Z-) |
| Cost | Most cost-efficient; fewer wires needed | Requires more conductors |
| Noise Immunity | Can create noise by design | Provides extra noise immunity |
| EMI Susceptibility | More affected by electromagnetic interference | Less affected by EMI |
Counting Modes: 1x, 2x, and 4x
A high-speed counter can interpret quadrature data in different ways, and the selected counting mode determines the effective resolution of the encoder. At 1x resolution, the position variable updates once per full quadrature cycle, after a complete pulse is seen on both channel A and channel B. At 2x resolution, it updates twice per quadrature cycle, once on a rising edge of both channels and again on a falling edge of both channels. At 4x resolution, the interface updates the position variable whenever an edge is detected on either channel, making the position variable four times more precise than the standard 1x resolution.
The table below summarizes the edge behavior and counts per revolution for each mode.
| Mode | Edge behavior | Counts per revolution |
|---|---|---|
| 1x | Increment/decrement on phase B edge after phase A turns on | Base count |
| 2x | Increment/decrement on phase B edge after phase A turns on or off | 2× base count |
| 4x | Increment/decrement on rising and falling edges of phase A and B | 4× base count |
A quadrature encoder's resolution can be increased by having the counter detect both the rising and falling edges of the pulse train. Counting only one channel's edges doubles (x2) the pulses per revolution. When both the leading and trailing edges of both the A and B channels are counted, the pulses per revolution are quadrupled (x4). This decoding method is called interpolation and depends on how the signal is processed by the drive, PLC, or controller. For example, a 2,500 PPR quadrature encoder can produce 10,000 pulses per turn, and a 10,000 PPR encoder can produce 40,000 pulses. This approach increases resolution without changing the encoder disc, but it requires a clean square wave output and careful consideration of output driver choice, cable length, noise, and encoder accuracy, since any error is also multiplied.
Quadrature encoders use two signal channels, A and B, offset by 90 degrees. Counting both the high and low transitions on both lines yields four counts for each encoder line. Therefore, a 1000 PPR encoder produces 4000 counts per revolution with full quadrature decoding. This quadruples the effective resolution compared to using a single channel. The phase relationship between channels also allows direction detection. Illegal transitions can help detect errors such as missed or extra counts.
Quadrature encoders have two channels (A and B) that are 90 degrees out of phase. By detecting both rising and falling edges of both channels, you get 4 transition events per encoder line: A rising, B rising, A falling, and B falling. This quadruples the effective resolution.
Not every encoder interface can detect edges precisely enough to achieve 2x or 4x resolution. To determine how much of the position variable corresponds to a full rotation, multiply the encoder's cycles per rotation by the interface resolution. The choice of counting mode depends on the application requirements. According to industry sources, 1x quadrature counting can be adequate when the goal is only to measure speed or to obtain a rough position estimate. In contrast, 4x counting is described as the typical choice when precise position accuracy is required. Therefore, 1x counting is preferred in applications where high positional resolution is not critical, such as basic speed monitoring or coarse position tracking.
The table below shows how each encoding mode affects resolution.
| Encoding | Edges counted | Resolution effect |
|---|---|---|
| X1 | Rising or falling edge of channel A | Base resolution |
| X2 | Rising and falling edges of channel A | 2× resolution |
| X4 | Rising and falling edges of channels A and B | 4× resolution |
A practical example illustrates the impact of counting mode selection. An incremental encoder with 1000 pulses per revolution (PPR) generates 1000 pulses per full shaft rotation. Counting these pulses and measuring time between them allows accurate calculation of position and speed. When the engineer configures the module for 4x decoding, the same encoder produces 4000 counts per revolution. This quadrupled resolution enables finer position control without replacing the encoder. The engineer connects channels A and B to high-speed digital inputs, uses the High-Speed Counter (HSC) function to count pulses, determines direction based on phase difference between A and B, and programs logic to track speed and position in real time.
High-Speed Counter Configuration in Practice
Basic Setup Steps
A successful high-speed counter configuration begins with selecting the proper module for the encoder signal type. Voltage input modules accept open collector signals, while differential input modules support line driver outputs. The engineer then assigns the module to a valid slot and enables the desired channels. Each high speed counter module provides two channels, CH0 and CH1, with dedicated registers for presets and current values.
The engineer configures the pulse input mode next. Options include 1-phase, 2-phase quadrature, or CW/CCW modes. The quadrature mode supports x1, x2, or x4 decoding for higher resolution. The count range spans from -2,147,483,648 to 2,147,482,647. The engineer sets the counter mode as linear or ring based on the application needs.
| Feature | XBF-HO02A | XBF-HD02A |
|---|---|---|
| Pulse input Interface | Voltage input (Open collector) | Differential input (Line driver) |
| Maximum count speed | 200kpps | 500kpps (HTL: 250kpps) |
| Number of high speed counters | 2 (CH0 and CH1) | 2 (CH0 and CH1) |
| Pulse input mode | 1 Phase (x1 or x2), 2 Phases (x1, x2 or x4), CW/CCW | Same |
The HSC configuration register controls edge selection and output behavior. The engineer writes the appropriate register value to define the input mode and output mode. For example, a value of 131 enables Quadrature 4X mode with output ON when the preset is reached.
Practical Application Example
A conveyor system uses an encoder to track product position. The encoder generates pulses as the conveyor moves. The engineer connects the encoder channels A and B to the high-speed counter inputs. The PLC reads the current value of the high-speed counter through dedicated registers.
The engineer enables the HSC and sets the preset value for the target position. When the counter reaches the preset, the output flag activates. The PLC then triggers a diverter arm to push the product off the line. This high-speed counting operation occurs independently of the PLC scan cycle. The system achieves accurate position tracking at speeds up to 200kpps.
| Function | HSC CH1 | HSC CH2 |
|---|---|---|
| HSC Input | X0 / Xnn000 | X5 / Xnn005 |
| HSC Reset Input | X1 / Xnn001 | X6 / Xnn006 |
| HSC Output Flag | Y1 / Ynn001 | Y6 / Ynn006 |
| HSC Configuration Register | MWnn00 | MWnn06 |
| HSC Counter Register (Current Value) | MWnn01, MWnn02 | MWnn07, MWnn08 |
Proper wiring and shielding ensure reliable high-speed counting. The engineer verifies signal levels and filter settings match the encoder output. This verification prevents false counts and ensures accurate position feedback.
A high speed counting module counts pulses independently and far faster than standard PLC inputs. It interprets encoder signals through configurable counting modes to deliver accurate position and speed data. Proper high speed counter configuration is critical for reliable high-speed counting performance.
FAQ
What makes a high speed counter different from a standard PLC input?
A high speed counter processes pulses in dedicated hardware, independent of the PLC scan cycle. Standard inputs miss fast pulses because they sample too slowly. The high speed counter captures every pulse reliably.
How does a high-speed counter work with an encoder?
A high-speed counter reads A and B channel pulses from an encoder. It detects phase order to determine direction. The module then updates the current value of the high-speed counter for position tracking.
Why does counting mode matter for high-speed counters?
Counting mode sets resolution. A 4x mode counts every edge on both channels. This approach multiplies pulses per revolution. The HSC then delivers finer position data without changing the encoder.
Keywords:
The next one




