Explainer
Robot Tending a CNC Lathe Over a Simple I/O Handshake
Short answer
Almost any CNC lathe whose control offers spare M-code-mapped outputs, spare inputs that can gate cycle start, chuck clamp control, an automatic door and a wait-on-input can be robot-tended over a sequential handshake. The lathe asks, the robot loads or unloads and answers done, and the program resumes. Simultaneous robot-and-cutting motion is a separate integration project.

On this page
- Which CNC lathes can a robot tend over a handshake?
- Does the handshake need simultaneous robot and lathe motion?
- Why does the robot need to align the workpiece?
- Which signals cross the cell, and where does each handshake step stall?
- How much time does the handshake add to the cycle?
- How do you keep the operator safe when the robot loads the lathe?
- How do you commission and verify the handshake?
- Questions asked
A CNC lathe can be robot-tended over a handshake when its control offers spare digital outputs you can map to M-codes, spare inputs that can gate cycle start, program control of the chuck, an automatic door, and a part program that waits on an input. Almost every lathe with those five things qualifies, regardless of the robot brand. The two machines never share software or coordinates: they meet at a small set of discrete signals — the lathe asks, the robot answers, the program resumes. This page sets out which lathe capabilities to check before quoting a cell, why the robot is asked to align workpieces, where each handshake hop can stall, and how much time the exchange costs. It also draws the line to quote against: loading and unloading is a wiring-and-programming job; simultaneous robot-and-cutting motion is a different, far larger project.
Which CNC lathes can a robot tend over a handshake? #
A lathe qualifies for robot tending when its control offers spare digital outputs you can map to M-codes, spare inputs one of which can gate cycle start or resume, program-controlled chuck clamp, an automatic door, and a part program that waits on an input. The robot brand is irrelevant; the lathe is the limiting side. Check the machine's option list and the control maker's input and output documentation against this list before quoting:
| Lathe capability | Why the cell needs it |
|---|---|
| Spare outputs, or M-codes mapped to outputs | Tell the robot the lathe is ready to load or unload |
| Spare inputs, one usable as cycle-start or resume | Receive the robot's done signal |
| Automatic door, or a door actuator input | Open the work area without an operator |
| Chuck clamp and unclamp from the program or an input | Release and grip the part while the robot holds it |
| A part program that waits on an input | Hold the cycle until the robot is clear |
A lathe with no free signals or no automatic door needs hardware options or retrofit work first, and that work often decides whether the cell is worth quoting at all.
Does the handshake need simultaneous robot and lathe motion? #
For load and unload, no: the handshake is sequential, the lathe and the robot never move at the same time, and the only things they exchange are discrete on-off signals that any industrial robot and any communicating CNC control can carry. The lathe finishes its cycle, signals the robot, waits, and resumes when the robot reports done. Most pick-and-place tending of a lathe lives entirely in this case, and it is a project of mapping signals, wiring them, and writing the wait into the part program.
The second case is different in kind: the robot holds or moves the part while the spindle cuts, under a shared coordinate relationship between the two controllers. That demands deterministic communication, control-specific options and a deep integration of both controllers, and it belongs with coordination inside one controller — the same problem Synchronizing Two Servo Axes on One Heavy Lift works through for two axes on a single lift. Quote it as its own engineering project, not as an extension of the handshake.
If the customer's requirement is parts loaded and unloaded, take the handshake and continue. If they want the robot working with the cut, stop and scope that requirement with both controller suppliers before quoting anything.
Why does the robot need to align the workpiece? #
A CNC never aligns the workpiece: it cuts relative to a work offset that an operator or a probe established earlier, and it assumes the blank sits exactly where that offset says, so a crooked seat produces wrong geometry with no alarm. That is why customers ask the robot to align: the control has no idea where the blank really is.
The robot is a repeatable placement device, so the alignment question decomposes into three checks:
- Does the incoming blank carry a repeatable datum — a bar end, a machined face, a fixture pocket — the gripper can reference?
- Does the chuck or collet offer a positive stop or face seat the robot can push the part against before clamping?
- Does the lathe have a touch probe or in-process measurement that verifies position after clamping?
If all three answers are no, the robot places parts as consistently as its gripper and the incoming blanks allow, and no better. Set the alignment tolerance with the customer in numbers before committing to it, then prove it with real stock, not with a perfect blank from the sample bag.
Which signals cross the cell, and where does each handshake step stall? #
Five signals close the loop — a load or unload request out of the lathe, a door-open command, a chuck unclamp request, a done-and-clear response back, and the cycle resume — and a cycle that stops always stops at one specific hop in that chain. Trace each signal from sender to receiver and you can name the stalled hop from where the program froze:
| Step | Sender | Signal | Receiver | The hop stalls if |
|---|---|---|---|---|
| 1 | Lathe program | Load or unload request | Robot input | The M-code is not mapped to a spare output, or the wire is open |
| 2 | Robot or cell controller | Door-open command | Lathe door actuator | The door interlock is not satisfied |
| 3 | Robot | Chuck unclamp request | Lathe control | The chuck input is not enabled in the control |
| 4 | Robot | Done and clear of the envelope | Lathe input | The program waits on a different input than the one wired |
| 5 | Lathe | Cycle resume | Part program | The resume needs a cycle-start input the robot never gave |
Start diagnosis at the physical layer. Measure the voltage at the receiving terminal while the sender commands the signal: a reading near zero means a wiring, common or output-type fault; a correct reading with no program response means a mapping or parameter fault in the receiving control. Confirm that output type and input type match, that the commons are tied, and that the supply voltages agree — and where the lathe and the robot run from separate supplies, put relay isolation between them rather than tying grounds across machines.
How much time does the handshake add to the cycle? #
The signals themselves cross in milliseconds; the handshake costs time in the physical sequence around them, about 21 seconds per part in the worked example below — and because tending adds no value to the part, every one of those seconds is pure overhead. That is why cycle time rules these cells: the cut is the only step that earns money.
Calculated example, for these inputs only, not a measured cell:
- Cut cycle from the lathe's proven program: 180 s
- Door open, door close: 2 s each
- Robot travel into and out of the envelope: 5 s each
- Chuck unclamp, chuck clamp: 1 s each
- Finished part out plus blank in: 4 s
- Done-and-resume exchange: 1 s
Handshake overhead = 2 + 5 + 1 + 4 + 1 + 5 + 2 + 1 = 21 s per part.
Per-part time = 180 + 21 = 201 s, so unattended output = 3600 / 201 = 17.9 parts per hour, against 3600 / 180 = 20.0 parts per hour if tending cost nothing. Measure your own numbers with a stopwatch during dry runs and recompute; the overhead scales with travel distance, door type and gripper design, and cutting 21 s down to 15 buys more output than shaving the cut cycle ever will at these ratios.
How do you keep the operator safe when the robot loads the lathe? #
Keep the lathe's door interlock and chuck-clamp safeguard in force and interlock both directions: the spindle must not start while the robot is inside the work envelope, and the robot must not enter without a valid load request from the lathe. Each machine holds the other still — the machine admits the robot, and the robot's presence disables the machine from moving.
Automating the door and the chuck adds hazards the lathe was never configured for, so treat the cell as a new machine: run the task-based risk assessment that ISO 10218-2, and its US adoption ANSI/RIA R15.06, require before the first automatic cycle, and cover the whole cell, not the robot alone. Never jumper an interlock to get the handshake running during commissioning; a handshake that only works with the safeguard defeated is a wiring error, not a shortcut. Where the chuck itself needs a hardware interlock so the spindle cannot turn with the jaws open, the pattern in Why a CNC axis needs an external interlock with a cylinder covers it.
How do you commission and verify the handshake? #
Commission hop by hop: assign and document every signal, force it at the sender, read it at the receiver, run the dry sequence, put a timeout and a named alarm on every wait, then interrupt a live cycle at each step, power cycle included.
- Assign one spare lathe output per request and one spare input per response; document the assignment with terminal numbers.
- Define each M-code to set or clear its output, and write the wait-on-input into the part program before the next move.
- Wire through isolated interfaces where the supplies differ, then test every point by forcing it at the sender and reading it at the receiver.
- Run the sequence with no part — request, door open, robot in, robot out, done, resume — and watch for any step where the program waits indefinitely.
- Add a timeout to each wait and an alarm that names the stalled step, so the next stall is a diagnosis, not a mystery.
- Run with a part at reduced speed, then at full speed, and gauge the first parts against the tolerance you set in the alignment step.
The verification pass matters because handshake state does not survive a restart: if the robot is power cycled while the request signal is on, that signal reads off when the robot boots, so the lathe sits waiting and nothing recovers on its own. Startup and restart states are their own failure class — the same one that makes a stepper axis run at drive power-up before software loads. So interrupt a running automatic cycle at each handshake step — open the guard, drop the done signal, power cycle the robot — and confirm the lathe holds, nothing moves unexpectedly, and the cell returns to cutting only through a deliberate, designed restart path. Finish by gauging a sample of parts against the alignment tolerance.
The decision, then: if the lathe has the five capabilities and the requirement is load and unload, build the handshake — it is signals, wiring and a wait in the program, and almost any robot will do. If the requirement is the robot moving with the cut, or the lathe lacks free signals and an automatic door, scope it as a separate integration project before quoting.
Questions asked
Does the make of robot change whether a lathe can be tended?
No. Every industrial robot controller exposes generic digital inputs and outputs, and the handshake uses nothing beyond them. The lathe side decides compatibility: spare outputs, spare inputs, chuck control, an automatic door and a wait-on-input in the part program. Choose the robot for payload, reach and cycle time, not for the lathe interface.
Can one robot tend two lathes?
Yes, sequentially. The robot finishes one handshake completely, meaning part out, blank in, done signal, door closed, before it requests the second machine. A cell controller or the robot program holds a wait state per machine, and each lathe keeps its own request and done signals, so a stall on one machine leaves the other free to cut.
How do you tell whether the control's M-codes can drive spare outputs?
Look in the control's input and output documentation for programmable M-code-to-output mapping. A control that lets you assign an M-code to set or clear a chosen output is ready as it stands. One where the M-codes are fixed to built-in functions needs a programmable machine interface option before the handshake can be built.
What does the cell do if the cycle stops partway through a handshake?
Nothing happens automatically: the request the lathe sent is not remembered across a robot restart, so a mid-cycle power loss leaves the lathe waiting and the robot idle. Design recovery as a deliberate restart: verify the chuck state and the part in the gripper, home the robot, then re-run the handshake from a defined step, never from an automatic resume.
Which signal voltage should handshake wiring use?
Discrete 24 V DC is the common choice on both sides, but what matters is that the sender output type and the receiver input type match, sourcing against sourcing or relay contact against the control's expected input, and that the commons are tied. Where the two machines run from separate supplies, put relay isolation between them.

