M51-M56/M61-M66: Integrated M-code relays
Turns internal M-code relays or outputs on/off for fixtures, robots or peripherals.
For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.
- Family
- Automation
- Machine
- Milling, Turning, Mill-turn, Laser/cut
- Risk
- High
- Example
- M51 / M61
M51 / M61Machine: Milling, Turning, Mill-turn, Laser/cutRisk: High
Haas · Fanuc
- Haas: On Haas they can control built-in M-code relays.
- Fanuc: On Fanuc it depends entirely on the builder's ladder/PLC.
Other codes in Automation
Frequently Asked Questions (FAQ)
What does M51-M56/M61-M66 mean in a CNC program?
Turns internal M-code relays or outputs on/off for fixtures, robots or peripherals. In the catalogue it appears as "Integrated M-code relays", within the Automation family.
Can you give me an example of M51-M56/M61-M66?
M51 / M61 — Turns internal M-code relays or outputs on/off for fixtures, robots or peripherals.
Which machines use M51-M56/M61-M66?
M51-M56/M61-M66 is used in: Milling, Turning, Mill-turn, Laser/cut.
What should you watch out for with M51-M56/M61-M66?
High risk: a mistake here can cause a crash, a broken tool or an out-of-tolerance part. Simulate the program and dry-run it before cutting.
Related tools
CNC G-code Simulator
CNC IDE: editing with G/M tooltips, line inspector, conversion between controls and 2D/3D toolpath.
CNC Alarms Guide
CNC Alarms and Solutions Guide. Enter the error code or symptom to find the cause and how to repair it at the machine.
Calculate cycle time
Estimate CNC turning and milling cycle time from G-code. Calculate parts per hour with a breakdown of cutting, rapids, canned cycles and tool changes.