Blog
CNC machine door and interface notes for cobot tending
ArmMate

A cobot that tends a CNC does not start at the gripper. It starts at the door and at the signals that say what the machine is actually doing. If those two things are fuzzy, the rest of the cell is a motion program waiting on a guess.
This note is for the integrator and the shop lead who have to agree, before anyone teaches a point, how the door moves and how the control talks. It is not a wiring diagram for a particular mill, and it is not a claim about a named cell. The photo on this page is a cobot at a lathe chuck. It is not a named install.
The door is part of the process
On a vertical mill the person at the machine opens the door, loads the vise, closes the door, and starts the cycle. On a lathe the same person clears the chuck, loads, closes, and starts. A cobot can take the load and unload. It cannot invent a door state the control does not report.
Walk the machine you already run with the door in both positions. Note the swing or the slide, the handle, the coolant sheet, and anything that crosses the opening when the door moves. A bar feeder, a tool setter, a chip conveyor, and the pendant all live in that same space. The example cycle on this site shows unload, then load. It does not show your door.
Manual door, auto door, and a door the arm must not fight
Three setups show up in small shops.
A manual door stays a person's job. The arm waits outside until someone opens it, then loads, then waits again until someone closes it and starts the cycle. That can be the honest first cell when the door mechanism is tired or when the control has no door outputs. It does not remove the person from the station. It only moves them off the vise.
An automatic door is already on the machine, or it is added as a cylinder, a motor, or the machine's own door option. The arm requests open, waits for open and clear, enters, leaves, requests close, and waits for closed before anyone starts the spindle. The request and the confirmation are different signals. A request that never gets a confirmation is a stuck door, not a completed step. A door the arm pushes by the handle is a last resort: the handle was made for a hand, and a fault that leaves the arm in the opening is a guarding problem.
Safety interlocks are not status lights
The public text of OSHA 1910.212, general requirements for all machines, says one or more methods of machine guarding shall protect people from hazards at the point of operation, from ingoing nip points, and from rotating parts, flying chips, and sparks. It names milling machines among the machines that usually require point of operation guarding. The point of operation is the area where work is performed on the material. The guard has to be built so a person is not in the danger zone during the operating cycle. Read the section itself:
https://www.osha.gov/laws-regs/regulations/standardnumber/1910/1910.212
That is a guarding rule, not a robot catalog. It still decides the door. A cobot that loads a mill is reaching into the point of operation. The door, the interlock, and the zone around the arm are how you keep a person out while the spindle is in the cut, and how you keep the spindle from starting while a person or the arm is still inside.
An interlock that only lights a lamp on the pendant is not the same device as an interlock in the safety circuit. The lamp can be wrong. The bit the robot reads can be wrong. The circuit that drops the spindle enable when the door is open is the one that has to be identified on the electrical drawings before the cell is programmed. If that circuit does not exist, say so in the assessment. Do not replace it with a timer.
ISO 10218-2:2025 is the public standard page for industrial robot applications and robot cells. It covers integration, commissioning, operation, maintenance, and the information that has to go with that work. The robot standard and the machine guarding rule meet at this door. The ISO page is:
https://www.iso.org/standard/73934.html
What the interlock has to refuse
Write the refusals in plain language before you name terminals.
The spindle does not start while the door is open, unless the machine is in a setup mode a person has deliberately selected, and that mode is visible.
The door does not open while the spindle is at cutting speed, unless the machine maker already provides a sanctioned door open function during the cycle and the shop intends to use it. Many shops do not.
The arm does not enter while the door reports closed, and it does not start the cycle while it still reports inside.
A person can still stop the cell, open the door by the means the machine allows, and remove a part without fighting the arm. That recovery path is part of the interface, not a later favor.
M-codes and handshake signals
Controls differ. An M-code that opens a door on one mill is a different number, or does not exist, on the next mill. Treat every M-code as a line in that machine's manual. Do not copy a number from a forum post into a cell.
What travels from shop to shop is the handshake, not the number. The machine tells the arm that the cycle is finished and the spindle is safe to approach. The arm tells the machine that the part is seated, the gripper is clear, and the door is closed. A powered vise or chuck has to report clamped before the tool moves, and unclamped before the arm pulls. A CNC cobot cell that guesses this from a dwell is not handshaking.
A minimum set to look for
Ask the control, the drawings, and the person who edits the programs. Look for names, not for a promise that every machine has every signal.
Cycle complete, true only at the agreed program end. Door open and door closed as separate confirmations. Clamped and unclamped, if workholding is powered. Spindle stopped, not merely commanded to stop. A start request and a sign that the start was accepted. A fault state so the arm does not load a machine that is waiting on a person.
If a signal is missing, add it, add a sensor, or leave that step with a person.
I/O versus fieldbus
Discrete I/O is a wire per fact. A technician with a meter can see cycle complete or door closed without a protocol tool. Fieldbus is the same facts on a network the control already speaks. Use the bus when those signals already exist there and the shop can maintain that network. A bus nobody can diagnose is a reason the cell sits idle.
Safety is the split that matters more than the connector. A standard input that says the door is closed is information. A safety input in the safety circuit is permission. Put information on I/O or on the bus. Put permission where the safety relay, the safety controller, or the machine's own door circuit already lives. Do not route a safety permission through a regular controller bit that a program can force on.
Draw the e-stops and the door circuit on one page with wire numbers. A screenshot of a robot I/O page is not that drawing.
What to write down before the first taught point
Name the machine, the control, the door type, who moves it, which switches confirm it, which M-codes request it, and what the arm reads and drives. Cite the M-codes from that manual. Also write alarm, e-stop, a door opening mid load, and power loss.
Bring that note to the assessment. The visit is where someone checks the drawing against the terminal strip, not where the drawing is invented from memory.
Failure modes worth naming out loud
Typical misses: a timer used as "door closed," a switch that reads closed while a hand still fits in the gap, cycle complete tied to a reset button, a network value that freezes true when the node drops, and an air door that moves when someone restores pressure. The handshake has to confirm a physical state. The safety circuit is not the same wire as the status bit.
A cell that can explain its door and its signals can be programmed. A cell that cannot should stay a manual load until it can. That is a normal outcome of a careful look. The CNC tending page describes the cell around the machine you already run. The door is where that sentence becomes a terminal number.
