High-Speed Counter Calculator

Calculate maximum encoder frequency and verify if your PLC HSC module can handle the application.

HSC high-speed counter encoder frequency PLC maximum speed input

Input values

Enter values and click Calculate to see results here.

Formula

Max freq = (CPR × Max RPM × Encoding) / 60

Worked Example

Given: A 1000 CPR encoder on a motor running at 3000 RPM with x4 encoding.

Step 1: Max freq = (1000 × 3000 × 4) / 60 = 200,000 Hz = 200 kHz

Result: A standard 20 kHz HSC input is insufficient. You need a high-speed counter module rated ≥ 200 kHz.

Check: Siemens S7-1200 HSC0 supports up to 100 kHz. You may need x2 encoding or a lower-speed motor.

Engineering Notes

  • Standard vs high-speed: Most PLC digital inputs max out at 10-20 kHz. HSC modules handle 100 kHz to several MHz.
  • Overspeed margin: Always design for 1.5× the maximum expected speed. Components can degrade over time.
  • Encoding impact: x4 encoding quadruples the pulse frequency. If frequency is too high, reduce encoding to x2 or x1.
  • PLC scan time: Even with HSC hardware, the PLC program must read the counter fast enough. Use interrupt-driven counting for high-speed applications.
  • Cable length: High-frequency signals degrade over long cables. Keep encoder cables short (< 10 m) and use shielded cable.

References

  • IEC 61131-3 — Counter functions
  • Allen-Bradley 1756-HSC High-Speed Counter Module
  • Siemens S7-1200 HSC configuration