AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

What decides the master input for an electronic cam axis

Servo and stepper motion Published 6 min read By AutomateDirectUSA engineering team

Short answer

A cam master input must do two separate jobs: count the reference pulses and expose that count to the cam function as a master position. A handwheel input qualifies only if the controller documentation lists its counter as a selectable cam master source and its voltage level, signal format and count rate match the reference encoder; a working jog display proves neither.

On this page
  1. A cam master must be a position source
  2. Format and level come before routing
  3. Which counting resources are actually candidates
  4. Worked example: the count-rate check
  5. Proving the route from counter to master position
  6. The decision for each setup
  7. Questions asked

A handwheel input can serve as the master reference for an electronic cam, but only when three documented conditions hold: the controller's cam function lists that input's counter among its selectable master sources, the input's electrical spec matches the reference signal's level and format, and the count rate stays inside the input's documented limit. If any one of those fails, no wiring change will fix it, and the answer is a different documented counting resource. This article walks the qualification for a four-axis controller whose feedback channels are all occupied by motors.

A cam master must be a position source #

An electronic cam is a table that maps a master position to a commanded slave position. The master coordinate has to be a number the controller holds that advances predictably with machine motion, which is why incremental encoder inputs are the natural candidates: integrating pulses into a count is exactly what they do, and the count, scaled, becomes the master position.

Acquiring pulses and exposing the count to the cam are two separate functions inside the controller. A handwheel input that jogs an axis and shows a position on the screen is proven only as a jog source; the jog path and the cam master-position path can be different internal routes. The qualification you are looking for is a line in the controller documentation like the one some instruction sets publish: the cam instruction's Master Register selects which axis or high-speed counter provides the position source value. If your controller's master-source list does not include the handwheel counter, that input will never feed the cam, and you move to another resource.

Format and level come before routing #

Record three properties of the reference signal before touching the controller:

  • Format. Quadrature A/B, pulse-and-direction, or a single pulse train. A single pulse train carries travel and speed but no direction: if the machine's master ever reverses, that signal cannot be a position source at all, whatever input it lands on. Handwheel inputs usually expect quadrature, which matches a quadrature encoder but rules out a bare pulse train.
  • Level and line type. Differential versus single-ended, and the voltage: a 5 V receiver will not read a 24 V output correctly or safely. The receiver must be specified for the transmitter; a differential input rejects noise that a single-ended run cannot, as explained in why a differential input rejects a single-ended 5 V encoder signal.
  • Scale. Pulses per machine revolution, and after decoding, counts per revolution. A repeatable count scale and a defined starting position are separate requirements; the count gives you the first, the homing sequence gives you the second.

Which counting resources are actually candidates #

With four servo motors on the controller's four feedback channels, those connectors are not spare. A closed-loop axis's feedback connector is busy even when the reference signal looks encoder-like, and sharing it is not an option the documentation offers.

The remaining candidates are the handwheel counter inputs and any high-speed counters on the installed expansion boards. For each one, read three things in the documentation before wiring anything:

  • whether the input feeds a hardware counter rather than a PLC-scanned input, because a scanned input loses counts at encoder rates — the same trap covered in counting encoder pulses on a PLC without losing position;
  • whether that counter is already assigned to another machine function;
  • whether the counter appears in the cam function's selectable master-source list.

A connector label alone establishes none of the three. Save the working configuration and record all four feedback assignments before changing anything.

Worked example: the count-rate check #

This is a calculated example for the inputs stated, not a measured result. Take a reference encoder of 2500 pulses per revolution, a maximum master speed of 3000 rpm, and an input that decodes quadrature at four counts per cycle.

  • Revolutions per second: 3000 ÷ 60 = 50 rev/s.
  • Signal frequency at the connector: 2500 × 50 = 125,000 Hz, so 125 kHz per channel.
  • Counted edges after decoding: 125,000 × 4 = 500,000 counts/s.
  • Master resolution: 2500 × 4 = 10,000 counts per machine revolution.

Compare those numbers against the input's documented limit using the same definition the datasheet uses. A limit stated as a count rate must be at least 500 kHz; a limit stated as signal frequency must be at least 125 kHz. Mixing the two definitions is the classic way an input looks adequate on paper and saturates on the machine. As a rule of thumb, keep the calculated demand at or under about 80 percent of the documented limit. If the candidate input falls short, your options in order of preference are: a faster documented counter, a lower line count on the reference encoder, or a lower top master speed.

Proving the route from counter to master position #

Once the raw count is proven against a known displacement — read the count, move the reference a measured amount, read again — watch the raw count and the displayed cam master position together, with the slave axis disabled and the machine held in its safe state so no commanded motion can result from these checks. The observed pair tells you where you stand:

Observed result Meaning Next step
No raw count change Input not yet counting Check wiring, input mode and counter assignment
Raw count moves, master position frozen Acquisition works; routing unresolved The counter is not a selectable cam master source — pick another resource
Master tracks with wrong scale or sign Route exists; conversion is wrong Correct the count scaling or direction configuration
Master tracks exactly Reference is ready Proceed to cam phase and controlled slave testing

The routing row is the one that ends handwheel hopes quietly: if the count is clean and the master position never moves, the cam function cannot see that counter, and no setting in the jog or display pages changes that. Only a documented master-source selection counts.

Keep the timing requirement in mind too: cam switch points fire when the master crosses table positions, and a master position that updates late or coarsely shifts the effective window, the failure mode covered in when a scan time misses an encoder cam window.

The decision for each setup #

  • A servo feedback channel is free (fewer motors than channels): use it. A configured axis is the documented first-choice master in controller families whose cam Master Register accepts any axis, and the encoder-level input is guaranteed compatible with encoder-level signals.
  • All channels occupied, and the documentation lists the handwheel or an expansion-board counter as a selectable cam master source: use it, after the level, format and count-rate checks above pass. The handwheel input is then a legitimate master input, not a workaround.
  • The counter acquires pulses but is absent from the master-source list: it is not a cam master. Add or reconfigure to a counter the documentation names as master-capable, chosen by signal compatibility and master-position accessibility rather than connector availability.

The pattern in every case: the decision comes from one documented list, the cam function's selectable master sources, backed by an electrical match and an arithmetic check on count rate. Everything else on the machine can wait until those three line up.

Questions asked

Can I use one of my own servo axes as the cam master instead of an external encoder?

Yes, and it is usually the first-choice route. Controller documentation that lets a cam's Master Register select any axis means a closed-loop axis you already run can drive the cam directly, with no extra wiring. Scale the cam table in that axis's position counts and the slave tracks it through gearing or camming instructions.

My reference signal is 24 V single-ended and the candidate input expects 5 V differential. Can I adapt it?

Only with a proper line receiver or level converter rated for the input, not a resistor divider alone. A divider sets the level but does not provide the differential pair, the receiver thresholds or the noise immunity the input is specified for. If the converter's added propagation delay varies between channels, quadrature decoding can lose counts at speed, so verify with the raw-count test after converting.

How fine does the master resolution need to be?

Fine enough that one master count moves the slave less than the position tolerance the cam profile must hold at the steepest part of the table. A working rule of thumb is at least four to ten master counts for the smallest slave step the profile demands. Coarser masters show up as visible stair-stepping in the slave motion on steep cam segments.

The cam master tracks but jumps counts only at high speed. What fails first?

Usually the signal, not the counter. Check, in order: the raw count against a known displacement at the failing speed, the receiver and wiring for the differential pair, then the input's documented count-rate limit against your calculated demand with matching definitions. Deterioration that appears only above a certain speed points at edge rate or noise, while a constant scale error points at decoding configuration.

Keep reading

  • How-to

    Configuring a PLC pulse-output servo axis before PLS2 moves

    The drives are not plug and play: keep command scaling in one place, the drive's gearing or the PLC program, and stay under the 100 kHz pulse ceiling, which at 10,000 pulses per revolution caps the motor at 600 rpm. Prove direction, limits and homing first, then tune for the load.

    Servo and stepper motion

  • How-to

    Syncing an Indexing Conveyor With a Web Using Electronic Gearing

    Make the indexing conveyor the master and the web drive the follower, tied by one ratio: (web advance per index × follower pulses per mm) ÷ (conveyor advance per index × master pulses per mm). With a 150 mm index at 40 pulses/mm and a 120 mm web advance at 25 pulses/mm, it is 3,000 ÷ 6,000 = 0.5. The follower counts measured master pulses, so the web stays locked through accel and decel; at one to two cycles per minute, lag is not a constraint.

    Servo and stepper motion

  • Comparison

    Brushless AC Servo Position Control and Holding Torque for a Lathe

    A brushless AC servo matches brushed DC accuracy on a lathe axis when the drive commutates sinusoidally, runs in torque mode with a motor-mounted encoder, and sits behind a reduction. It holds by active current through the position loop within the continuous stall rating, and a brake covers power-off hold.

    Servo and stepper motion