AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Comparison

What an external motion controller does for servo drives

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

Short answer

No: Mach4 plans the trajectory, but axis motion always leaves through motion hardware matched to the amplifier's command interface. Step/direction drives work from a step/dir board; analog amplifiers need a controller that reads the encoder and closes the position loop; Modbus TCP/IP is for remote I/O, never coordinated axes.

On this page
  1. Can Mach4 command servo drives directly over Modbus TCP/IP?
  2. What does an external motion controller actually do?
  3. Which servo drive command interface chooses the controller?
  4. Can a step and direction controller run a servo drive?
  5. What does an analog servo amplifier demand from the motion controller?
  6. Can remote I/O over Modbus TCP/IP replace the motion card?
  7. How fast must the step pulses run on a two-axis punch?
  8. Which architecture should you buy for each drive type?
  9. Questions asked

Mach4 does not command servo drives over Modbus TCP/IP, and no plugin setting changes that. The software plans the trajectory; the axis command always leaves through motion hardware matched to what the servo amplifier accepts. That one specification, pulse train, analog command, or EtherCAT, decides which external motion controller to buy: a step and direction board runs any servo drive with a pulse command input that closes its own position loop, an analog amplifier needs a controller that reads the encoder and closes the loop itself, and only the real-time EtherCAT package eliminates the external card. Modbus TCP/IP belongs to remote I/O and status, never to coordinated axes. This article compares the three architectures, works the pulse-rate number for a two-axis punch, and ends with the decision for each drive type.

Can Mach4 command servo drives directly over Modbus TCP/IP? #

No: in every documented Mach4 architecture the software hands each axis's trajectory to an external motion controller, and that hardware generates the command signal the servo amplifier actually accepts; Modbus TCP/IP has no role in the axis command path for coordinated motion.

Mach4's job is the trajectory: coordinated positions, feedrates, blending and lookahead across the axes. It passes each move to the motion controller's plugin, and the plugin drives the hardware that produces the timing-critical output. Modbus TCP/IP cannot take that role, because the protocol is polled client-server: one device asks, the other answers, and nothing in the exchange guarantees a delivery interval. Coordinated axis command is a continuous stream, pulses at hundreds of kilohertz or a servo update every few hundred microseconds, and an ask-answer register write carries nothing like it. The register interface on a servo drive is built for configuration and status; the split where a drive ignores a speed command that arrives as a register value but follows an analog command on the same drive is the subject of why servo drives ignore Modbus speed commands but follow analog. Even where a drive offers a fieldbus positioning mode, that mode does not make the drive part of Mach4's coordinated trajectory: the documented motion path still runs through the motion controller.

What does an external motion controller actually do? #

It converts Mach4's planned trajectory into the electrical command each amplifier needs: a step and direction pulse pair, an analog voltage, or an EtherCAT telegram, at real-time rates a desktop program and a polled network cannot keep.

The split of duties is fixed. Mach4 decides what the machine does: path, feed override, coordinate systems, what blends into what. The motion controller decides when, at the microsecond level, producing the step timing or the analog updates while the operating system does whatever the operating system does. Two documented board families cover the drive interfaces that matter here. An Ethernet SmoothStepper connects to the computer's Ethernet port and generates step and direction pulses for Mach3 and Mach4; it is a documented example of the pulse-only class. A Vital Systems HiCON carries analog command outputs and encoder counter inputs and closes position loops itself, which is what an analog servo amplifier demands. Each controller family ships its own Mach4 plugin and its own configuration pages, so the software plans axes the same way over whichever board. The third option removes the board entirely and runs the motion engine on a real-time PC, covered under the EtherCAT decision below.

Which servo drive command interface chooses the controller? #

The amplifier's command input, pulse train, analog command, or EtherCAT, is the deciding specification, because it fixes what the motion hardware must emit and, for analog drives, what feedback it must read; the drive family, not Mach4, makes this choice.

Read the table by the drive you own, then buy down the last column:

Drive command interface Motor encoder wires to Position loop closed by Motion hardware that works
Step and direction (pulse train) The servo amplifier The servo amplifier A step and direction motion controller, one channel per motor
Analog command (velocity or torque) The motion controller The motion controller A controller with encoder counters, analog outputs and closed-loop firmware
EtherCAT The servo drive The servo drive A real-time PC running an EtherCAT master; no external card
Modbus TCP/IP registers Not applicable Not applicable None: registers are not a coordinated axis command path

Many modern amplifiers expose more than one of these interfaces and select between them with a command-mode parameter, so the same drive can belong to two rows. The interface you actually wire is the one that chooses the controller, and the pulse row is usually the cheapest and simplest to support.

Can a step and direction controller run a servo drive? #

Yes, whenever the servo amplifier accepts step and direction and closes its own position loop, which covers most AC servo drives and many DC drives with a matching amplifier; the board then treats each servo exactly like a stepper channel.

The wiring makes the architecture plain: the motor's encoder connects directly to the servo amplifier, and the amplifier's command input connects to the motion electronics. Mach4 sends step and direction requests to the motion control card, and the card outputs one pulse pair to each axis amplifier. The pulses only say where the axis should be; the amplifier's internal loops decide the currents that put it there, which is why a servo of this kind tunes in the drive, not in Mach4. Treat closed loop on a datasheet with care, because the term is used for several different feedback arrangements; when a step and direction servo drive is closed loop separates the cases that matter at purchase time.

What does an analog servo amplifier demand from the motion controller? #

It demands that the motion controller close the position loop itself: encoder counters wired to the motor's encoder, one analog command output per axis, and firmware executing the loop at real-time rates; a step-and-direction-only board has none of these and cannot do the job.

An analog amplifier is a velocity or torque amplifier: command voltage in, motor current out. With nobody closing the position loop, an axis commanded to a position keeps moving at whatever the voltage asks, and the software never learns where it went. The controller class that runs these drives, of which the Vital Systems HiCON is a documented example, therefore carries encoder counter inputs, analog outputs per axis and closed-loop firmware, and it costs more than a pulse-only board because of that hardware. A step-and-direction-to-voltage converter is not a workaround: it translates the command but nothing reads the encoder, which is exactly the gap explained in step and direction to a ±10 V servo drive: what converts it. The matching problem has two ends, and the drive side, which amplifiers accept a 10 V analog command at all, is what finding a servo drive that accepts a 10 V analog command is for.

Can remote I/O over Modbus TCP/IP replace the motion card? #

For limits, buttons, lamps and solenoid outputs it can act as ordinary remote I/O where the controller's plugin supports it, but it can never carry the axis commands and cannot replace the motion card for motion.

Two services share the same Ethernet jack, and they are not the same service: deterministic motion on one side, polled signaling on the other. Whether a Modbus TCP/IP remote I/O node works in your Mach4 setup depends on the motion controller's plugin, and that support is per product; check the plugin's documented feature list before buying the node, and test each signal's update behavior, because a polled input is fine for a lamp and can be too slow for a fast capture. The two-axis punch decision: axis pulses never leave the motion controller, and the remote node, if supported, takes only the non-motion signals. Do not infer that the node can replace the card because both use Ethernet cabling; the cable is the same, the service is not.

One safety line belongs here: however you distribute the operator I/O, keep the emergency stop and hard-limit circuits in hardware, designed and verified under the machine's risk assessment. ISO 13849-1 is the standard governing safety-related parts of control systems, and it treats those functions as machine safety functions, not network features.

How fast must the step pulses run on a two-axis punch? #

For an example punch with 5 mm lead screws driven one to one and drives set to 10,000 pulses per revolution, a 15 m/min rapid needs 500,000 pulses per second per axis, so the step-and-direction board must be documented above that rate.

This is a calculated example for those inputs, not a measured result, and each input is a choice you confirm from your own hardware:

  • Rapid speed: 15 m/min = 250 mm/s.
  • Screw lead 5 mm/rev with a 1:1 motor coupling: 250 mm/s ÷ 5 mm/rev = 50 rev/s, which is 3,000 rev/min.
  • Drive electronic gear 10,000 pulses/rev, an example setting that the drive's electronic gear parameters decide: 50 rev/s × 10,000 pulses/rev = 500,000 pulses/s, a 500 kHz pulse pair per axis.
  • Both axes rapiding together: 1,000,000 pulses/s of simultaneous step and direction output from the board.

The decision follows directly: the exact board's documented maximum step output rate must sit above 500 kHz per axis with margin, taken from that board's own documentation, because the usable rate depends on its output circuit and can be lower than the headline figure. On the analog branch the same check moves to the encoder input: a 2,500-line quadrature encoder resolves 10,000 counts per revolution, and at the same 50 rev/s that is 500,000 counts/s per axis the controller must count without loss. Halve the pulses-per-rev setting and both requirement numbers halve with it. Channel count follows motors, not axes; the two-servo punch consumes two controller channels, and when the motor count outruns one board's outputs the axes split across controllers, which is the arithmetic in why nine servo axes need more than one motion controller.

Which architecture should you buy for each drive type? #

Buy the step-and-direction architecture if your amplifiers accept pulse command and close their own loops, buy the analog-closing controller class if the amplifiers are analog velocity or torque command, and accept the real-time EtherCAT package only if you are replacing the external card with a real-time PC.

  • Step-and-direction amplifiers, the common command input on modern AC servos: buy a pulse-only motion controller with one channel per motor, wire each motor encoder to its amplifier, and check the board's documented step rate against your calculated kilohertz figure before purchase.
  • Analog amplifiers: buy the controller class with encoder counters, per-axis analog outputs and closed-loop firmware, wire the encoders to the controller, and expect the higher cost; do not bridge the gap with a converter.
  • EtherCAT and no external card: the documented package pairs Mach4 with the IntervalZero RTX64 real-time Windows extension and the Kingstar EtherCAT master plugin on a real-time-capable PC, with EtherCAT servo drives as the network nodes; that description dates from June 2022, so verify current package contents and compatibility with the vendors before buying. The PC is part of the motion chain, and real-time software compatibility is its selection criterion, which is the role an industrial mini PC plays in the cabinet.
  • Modbus TCP/IP: reserve it for remote I/O where the plugin documents support, and keep every coordinated axis off it.

The drive interface decides; every other line of the purchase order follows from it.

Questions asked

How do I confirm which command interface my servo amplifier takes before buying anything?

Read the amplifier's own documentation: the command input is a listed specification, pulse train, analog, or fieldbus, and many drives expose more than one, selected with a command-mode parameter. A motor encoder feeding the amplifier confirms local feedback but says nothing about the command interface, so the datasheet entry decides, not the wiring.

Does homing each servo independently change the architecture?

No. Every physical motor is one motor output in Mach4 regardless of how it homes, so the two-servo punch needs two motor outputs either way; homing only decides where the home switches wire in. Capacity planning counts motors, not axes: five axes carrying ten independently homing motors need ten motor outputs, which is a channel-count limit and never a reason to move axes onto Modbus.

Can a PLC command the servo drives instead of a motion controller?

Only if the PLC has its own real-time motion outputs matched to the drive interface, pulse, analog or fieldbus, and then it owns the trajectory, with the CNC software out of the loop. A PLC used as a remote device over Modbus TCP/IP gains no such outputs; polling a register node faster does not turn it into a motion controller.

What should a two-axis punch prove on the bench before production?

Run each axis at reduced speed and confirm direction, that commanded millimetres match travelled millimetres, and that the drive's electronic gear agrees with the board's pulse output. On an analog axis, confirm the position loop holds without oscillation at reduced speed. Then exercise limits, home switches and I/O response timing, and only then cut production parts.

Keep reading

  • Selection guide

    Choosing a motion controller for an analog servo Mach3 retrofit

    Trace the command input on every servo amplifier before you buy anything. If the brushed DC drives take a bipolar analog command, a motion controller with analog axis outputs keeps the working SEM motors and amplifiers; if they take step and direction, a pulse-output controller runs them but the drives must change. For a fourth stepper axis, buy a controller with both output types and allocate every analog, feedback and discrete point first.

    Servo and stepper motion

  • Selection guide

    Counting Real Axes Before Selecting a Gantry Motion Controller

    Count independent servos, not marketing axes: this machine is 13 controlled axes (1 X, 4 Y, 4 Z, 4 C), so the controller must coordinate 13. Size the payload forces first — 300 N horizontal and about 1,772 N accelerating up on Z — then use a PLC with integrated motion driving servos on one deterministic fieldbus unless robot-style kinematics or conveyor tracking saves real development time.

    Servo and stepper motion

  • Explainer

    Step and Direction to a ±10V Servo Drive: What Converts It

    No: a step-and-direction stream cannot be wired to a ±10 V analog servo input, because pulses count position while the analog input reads a voltage as a torque or speed level. A motion controller or pulse-to-analog converter that counts the pulses, closes the position loop from encoder feedback and outputs the scaled voltage does the conversion; the drive's digital terminals are enable and fault I/O, not a command path.

    Servo and stepper motion

Reading a handwheel MPG on a PLC without a motion controller