Explainer
Servo Motor as a Linear Axis: Scaling and Feedback Choices
Short answer
A rotary servo motor becomes a linear axis through one scaling number — travel per motor revolution, wheel circumference or screw lead divided by gear ratio — and one decision on where the position loop closes. A 0.1 m wheel at 10:1 gearing gives 0.01 m of travel per motor revolution, or 628.3 rad/m. An analog distance sensor on an input card is monitoring data, not axis feedback, until a documented feedback input binds it to the axis.

On this page
A rotary servo motor becomes a linear axis through two decisions and nothing else: the one scaling number that turns motor revolutions into travel, and the choice of where the position loop closes. The scaling number is travel per motor revolution — wheel circumference, screw lead or pinion circumference, divided by the gear ratio between motor and load. The loop-closing decision decides which measurement the drive corrects against: the motor encoder, or an external linear measurement such as the distance sensors fitted to a wheel-driven X-Y machine. An analog sensor that an input card can read is monitoring data, not axis feedback, until a documented feedback path binds it to the axis. This article gives you both decisions, the arithmetic for a wheel-driven axis, and the commissioning order that proves each layer before the next.
One scaling number turns motor revolutions into travel #
Whatever sits between the motor and the load — a ball screw, a rack and pinion, a belt, or a measuring wheel rolling on the floor — the axis configuration needs exactly one feed constant: travel per motor revolution. Compute it once from the transmission geometry:
travel per motor revolution = travel per output revolution ÷ gear ratio
The output term depends on the transmission: the lead printed in the ball screw datasheet, π times the pinion pitch diameter for a rack drive, or π times the wheel diameter for a wheel drive. If a gearbox sits between motor and load, divide by its ratio, because the motor turns the gearbox input while the travel happens at the output shaft.
Enter that constant in the axis profile and let the drive or motion system do the radians arithmetic internally. The same one-constant discipline covers pulse-scaled axes, as in the step-and-direction pulse scaling calculation, and rotary axes, as in setting a gear ratio for degree moves on a rotary axis. Change the wheel, screw or gearbox later and you edit one number; no target in the controller changes.
Where the position loop closes #
The feed constant tells the axis how to convert. It does not tell the axis which position is true. Two arrangements exist, and they are not interchangeable:
- Motor-encoder loop. The drive closes the position loop on shaft angle, and the feed constant translates that into travel. The loop is stiff and fast; machine position is only as good as the transmission between motor and floor — screw accuracy, belt stretch, backlash, and on a wheel drive, slip between wheel and surface.
- External-measurement loop. A linear scale, or on a wheeled machine an absolute distance sensor, measures actual machine position and the control corrects against it. Slip, wear and transmission error sit inside the loop and get corrected instead of accumulated. The cost is a loop that is typically softer and noisier, because the measuring path carries its own compliance, and it exists only if the motion system documents a feedback path that accepts the external measurement.
The decision rule: when the accuracy the process needs at the machine is tighter than the drivetrain own accumulated error, close the loop on the external measurement through a documented external-feedback input; otherwise keep the motor encoder and use the external sensors to verify. This is the same trade-off as switching a CNC axis between linear scale and motor encoder feedback.
One distinction that saves time: whether the drive runs the DS402 drive profile over CANopen-over-EtherCAT (CoE) or some other profile decides the state machine and the cyclic data layout. It does not decide which feedback closes the position loop. That is a separate configuration choice, documented per drive family, and it must be checked in the documentation for the parts you actually installed.
Why an analog sensor on an input card is not axis feedback #
Reading the distance sensors through the analog input card gives the controller a measurement — currentX and currentY, once the channels are calibrated. It does not give the axis a feedback input. Publishing values so the controller can read them binds them to nothing; a motion system consumes feedback only through an interface documented for that role, with the units, timing and validity that interface expects. Feedback that exists on a card is not yet feedback that closes a loop, which is exactly the failure described in a PTO axis that cannot close the loop with an external encoder.
Three arrangements are legitimate, and you choose exactly one:
- Motor-encoder loop, sensors for monitoring. The drive holds position on the motor; the calibrated sensor readings verify targets, alarm on drift and feed process data.
- Outer position loop in the controller. The controller compares measured position with target and sends a velocity command to the drive, which runs in velocity mode. This works only with defined travel limits and a defined fault response, because the controller is now the position controller.
- Native external feedback. If the axis profile supports a secondary or external actual-position input, configure the sensor measurement into it as the documentation describes, and confirm which feedback roles the profile actually supports before planning around it.
Pick one arrangement and stay with it. Two controllers closing around the same position error — the drive and yours — fight each other, and the axis oscillates or trips on following error.
Keep the targets in machine units #
Command target_X and target_Y in meters — for example 2.34 m and 5.67 m — and let the feed constant produce whatever rotary command the drive needs internally. Converting every controller target into radians by hand hides the machine coordinate system under a second layer of numbers and gives every move a fresh chance to be wrong by a factor of 2π.
The separation runs the other way too: do not change the gear ratio to make motor position agree with the sensors. The gear ratio describes transmission geometry; the analog channel describes the relationship between a signal and a position, and that relationship is fixed by calibration, not by gearing. Keep one linear unit and one origin for targets and measured positions, and keep the two conversions in two different places.
One more thing the two-target picture hides: two independent axes arriving at target_X and target_Y does not by itself produce a straight-line path between where the machine is and where it is going. If the route matters, the coordinated or path-interpolated motion mode has to be part of the same documented motion setup. Two setpoint commands give you two axes arriving, not one path.
Worked example: a 0.1 m wheel at 10:1 gearing #
Inputs, and where each comes from:
- Wheel circumference 0.1 m — the example drive wheel; an example value for a small measuring wheel on a wheel-driven X-Y machine, not a catalog rating.
- Gear ratio 10:1 — reduction between motor and wheel; the motor turns 10 revolutions per wheel revolution. Example value.
- Commanded target 2.34 m — the absolute machine position the axis must reach, from the commissioning case this article answers.
The rule in words: travel per motor revolution equals wheel circumference divided by the gear ratio; radians per meter of travel equals 2π divided by that travel; and the rotary command equals the target distance multiplied by radians per meter.
Arithmetic:
- Travel per motor revolution: 0.1 m ÷ 10 = 0.01 m
- Scale: 2π rad = 6.2832 rad, so 6.2832 rad ÷ 0.01 m = 628.3 rad/m
- Command for the target: 2.34 m × 628.3 rad/m = 1470.3 rad, which is the same as 2.34 m ÷ 0.01 m = 234 motor revolutions
Result: the feed constant for this axis is 0.01 m of travel per motor revolution, or 628.3 rad/m, and the target command works out to 1470.3 rad.
Decision: enter 0.01 m per motor revolution as the feed constant, command the axis in meters, and prove the constant on the machine with a 1.000 m command measured against a rule or scale. Every percent of error in effective wheel circumference is a percent of travel error — at the 2.34 m target, one percent is about 23 mm, orders of magnitude above what a servo encoder resolves. That gap is the whole argument for closing the loop on the distance sensors rather than the motor encoder on a wheel-driven machine. All of these are calculated values for this wheel, this ratio and this target — a worked example, not a universal constant.
Prove each layer before the next #
Commissioning order, from the bottom up:
- Bus and drive first. Each drive is discovered on the bus and reaches its cyclic operating state, the drive profile state machine accepts enable commands, and faults report back to the controller. While that layer is down, an axis profile that will not connect is a drive-integration fault: neither a new feed constant nor extra slaved axes will clear it, and tuning a position loop through a dead interface wastes the day.
- One axis at a time. Short travels, the travel area cleared and the machine own stop function within reach; check command direction against actual direction, the sign of the actual value, stopping behavior and fault response before any combined X-Y move.
- Scale next. Command 1.000 m and measure true travel against a rule or scale. Then compare motor-derived position with the calibrated sensor position: disagreement while stationary points at reference, sign or calibration; disagreement that grows while moving points at slip or a wrong feed constant.
- Route last. If the move must be a straight line between two points, prove the coordinated motion mode before trusting two setpoint commands to trace it.
A wheel-driven machine adds one check of its own: run an aggressive accelerate-coast-stop cycle and watch motor position against sensor position. Slip shows up as a step between the two traces that never recovers.
Questions asked
Does a wheel-driven X-Y machine need master and slave axes?
Only if one coordinate is pushed by two physically driven actuators that must share the load. Master-slave coupling exists for two motors driving one carriage. With one motor for X, one for Y, and a kinematic that prevents rotation about the vertical axis, each motor is a standalone linear axis, and slaving would add a constraint the mechanics already enforce.
Should I convert targets to radians before sending them to the drive?
No. Store travel per motor revolution as the feed constant in the axis configuration and command targets in machine units. The axis then produces the rotary command internally, the program stays readable, and swapping a wheel or gearbox later is a one-constant edit instead of a rewrite of every target in the controller.
How do I turn the analog sensor signal into millimeters?
Two-point calibration from the sensor datasheet: map the signal span between two known machine positions, which gives millimeters of travel per volt, then apply offset and slope to every reading. The analog input converter bit depth sets the smallest position step the reading can resolve, so check that step against the accuracy the machine actually needs.
What does wheel slip do to motor-encoder position?
It makes motor-derived position drift from true position by the slipped fraction of wheel rotation. One percent of slip on the worked wheel drive is about 23 mm of error at the commanded target, which is why the distance sensors exist. Slip grows with acceleration, speed and reduced wheel load, so compare sensor and motor position during motion, not only at rest.
Can the analog sensors close the position loop if I write the loop logic myself?
Yes, as an outer loop: the controller compares calibrated position against target and sends a velocity command to the drive, which must then run in velocity mode. Define travel limits and a fault response before first use, and make sure only one controller closes around the position error, because a drive position loop and a controller position loop on the same axis fight each other.