Selection guide
Reading a handwheel MPG on a PLC without a motion controller
Short answer
You do not need a servo motion CPU to bring an operator handwheel into a PLC that commands stepper drives by pulse train. Read both A and B phases on a pulse-input or high-speed-counter module, and pick that module by the handwheel's electrical output: a 5 VDC handwheel needs an input range that reaches down to 5 V, which rules out counter modules rated from 9 VDC up.

On this page
You do not need a servo motion CPU to bring an operator handwheel into a PLC that commands stepper drives with a 5 VDC pulse train. A handwheel (manual pulse generator, MPG) is a quadrature encoder with a knob: it outputs two pulse trains, A and B, phase-shifted so the receiving hardware can resolve direction. Read both phases on a pulse-input or high-speed-counter module and keep the pulse-output card commanding the drives. The module is decided by one check: the handwheel's electrical output against the module's documented input range.
Why the pulse-output card cannot be the input #
A pulse-output card generates step pulses; it cannot count pulses arriving at it. Treating it as the handwheel's entry point is the usual dead end in this design, and it is what pushes people toward a motion CPU they do not need. The output side stays exactly as planned: the card sends step-and-direction to the drives, configured the same way as any pulse-output servo or stepper axis, which configuring a PLC pulse-output servo axis before the first move covers. The handwheel needs its own input path, and a standard CPU with a counter module provides it. The reasons to add an external motion controller in front of servo drives (coordinated multi-axis moves, camming, path control) do not apply to two hand-jogged axes, so the ladder-only architecture survives.
The handwheel's output decides the module #
Before choosing hardware, take three facts from the handwheel's datasheet:
- Output circuit type: 5 V line driver with complementary outputs (A, A-, B, B-), 5 V push-pull, or 24 V open collector.
- Pulses per revolution, per phase.
- Maximum output frequency at the fastest turn.
If the handwheel presents complementary pairs and the input module is single-ended, connect only A and B and insulate each unused complement wire individually, taped and separated, so no two of them can touch. Document those wires in the panel drawing; the next technician will need to know they are deliberate.
Input paths that work with a standard CPU #
| Path | What it does | Fits when | Watch for |
|---|---|---|---|
| High-speed counter module | Counts A/B in hardware between scans; direction from phase order | The handwheel's voltage sits inside the module's documented input range | Configure ×4 quadrature decoding; read the count value in ladder |
| Positioning module with a documented handwheel input | Pulse outputs and an MPG input in one module | The manual of the exact order code documents the MPG input at your voltage | Family name alone proves nothing; verify the specific module |
| Ordinary discrete inputs of the CPU | Sampled once per scan | Only for slow handwheel-house signals (axis select, enable) | Filter time and scan period lose counts; never use for counting |
Match the voltage before anything else #
Documented input ranges show why this check decides the module. One Compact high-speed counter module documents a 2.6 to 30 V DC input range, ×1, ×2 or ×4 quadrature decoding and 32-bit count values in its installation instructions (Rockwell publication 1769-IN030). Another high-speed counter I/O module documents a 9 to 30 VDC input range in its specification sheet (the CTRIO module specification). A handwheel with 5 VDC outputs therefore falls inside the first range and below the second: the 9 to 30 V module will not read it, and the 2.6 to 30 V module will, with no conditioning. A 24 V open-collector handwheel works on either, with the counter's common wired per its manual. If the only module available starts at 9 VDC and the handwheel is a 5 V type, insert a differential line receiver on each channel, chosen so its output level lands inside the module's range; that is signal conditioning, not a redesign, and it keeps the standard CPU.
Worked example: count rate and scaling #
This is a calculated example for stated inputs, not a measured result. Inputs: handwheel with 100 pulses per phase per revolution; ×4 decoding; fastest operator turn 2 revolutions per second; motor 200 full steps per revolution; ball screw 5 mm per revolution, motor coupled 1:1.
Count rate at the fastest turn:
- A-phase frequency: 100 pulses/rev × 2 rev/s = 200 Hz per phase.
- Decoded count rate: 200 Hz × 4 = 800 counts/s.
A standard discrete input with a 10 ms filter responds to roughly 50 Hz at best and the scan samples it far slower than that, which is why ordinary inputs lose these pulses. Any counter module rated in the tens of kHz carries 800 counts/s with large margin; take the count-frequency rating from the datasheet of the exact module.
Scaling, if one handwheel revolution should move the axis 0.5 mm:
- 0.5 mm ÷ 5 mm/rev = 0.1 motor revolution.
- 0.1 rev × 200 steps/rev = 20 step pulses per handwheel revolution.
- One handwheel revolution = 100 × 4 = 400 decoded counts, so 400 counts ÷ 20 pulses = 20 counts per step pulse.
In ladder, accumulate the decoded counts and emit one step pulse every 20 counts, carrying the remainder so slow turns are not rounded away. Keep the scaling factor and a travel limit as explicit program constants; raw handwheel counts must never produce unrestricted travel.
Wire and configure the counter #
- Wire the handwheel's A and B to the counter's quadrature input terminals per the module's wiring diagram, with the complements insulated if unused.
- Set the counting mode to ×4 quadrature so both edges of both phases count and direction resolves from the phase order. A single phase counts movement but cannot tell left from right.
- Read the module's count value in ladder and apply the scaling from the worked example above.
- Generate the step pulses through the pulse-output card, keeping its pulse format matched to the drive's input requirements; the drive's 5 VDC pulse-train input constrains the PLC-to-drive link only and says nothing about the handwheel link.
Prove it at commissioning #
- With drive power disabled, turn the handwheel slowly both ways and watch the module's count value: it must change steadily and reverse sign with direction.
- Count a known number of detents against the displayed count; missing, doubled or reversed counts point at the phase wiring or the decoding mode, in that order.
- Enable motion with a conservative travel limit and confirm that handwheel direction maps to the intended axis direction and that the scaling produces the intended move.
- Test the travel limits and the stop behavior, including what happens if the handwheel cable is pulled mid-turn: a stale command must never keep an axis moving. Handwheel jogging is an operator convenience, not a safety function; the travel limits and the stop circuit stay hardwired as the machine's risk assessment requires (safety-related control functions per ISO 13849-1).
With those checks passing, the project keeps its standard CPU, its ladder program and its pulse-output card, and the operators keep their handwheels.
Questions asked
Can I read the handwheel on the CPU's ordinary discrete inputs if I shorten the input filter?
No, not for counting. Even at the minimum filter setting, the program samples the input point once per scan and cannot count a pulse train arriving faster than the scan. Ordinary inputs suit slow signals like an axis-select switch or an enable flag from the handwheel housing. The counting itself must happen in hardware, on a counter or pulse-input module, between scans.
The handwheel is 5 V differential and the only counter module available starts at 9 VDC. What do I add?
Put a differential line receiver on each channel, one for A and one for B, powered so its output swings inside the module's documented input range. Keep each complement pair twisted together, and bond the cable shield at one end only. Verify the receiver's output high level against the counter's minimum high-state voltage before wiring the whole pendant.
Does a positioning module that outputs pulse trains also accept a handwheel?
Some do, some do not, and only the manual of the exact module order code decides. If that manual documents a dedicated handwheel input whose electrical spec matches your handwheel, one module covers both paths and the design stays compact. The fact that a module family includes an MPG-capable variant does not make every variant in the family MPG-capable, so never order by family name.
What if the count direction is reversed after wiring?
Swap phase A with phase B at the input terminals, or invert the direction in the counter's configuration, whichever your module manual offers. On a differential handwheel, swap the whole pairs (A with A- against B with B-), never one wire of a pair, so the complement relationships stay valid. Confirm the fix with the slow-turn test before enabling any axis motion.

