Skip to content

M62-M65: Auxiliary outputs / PLC

Turns auxiliary digital outputs on or off for fixtures, air blast, sensors or automation.

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.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Automation
Machine
Milling, Turning, Mill-turn, Laser/cut
Risk
High
Example
M62 P1 / M63 P1 / M64 P2 / M65 P2

How to write it on each control

Example
M62 P1 / M63 P1 / M64 P2 / M65 P2
Fanuc · ISO común—

Fanuc: The actual meaning depends on the builder's PLC.

ISO común: Never assume equivalence by M-code number without the machine table.

Parameters

P
Number of the output (relay) that is turned on (M62/M64) or off (M63/M65).

Machine: Milling, Turning, Mill-turn, Laser/cut

Other codes in Automation

See the full list of G and M codes

Frequently Asked Questions (FAQ)

What does M62-M65 mean in a CNC program?

Turns auxiliary digital outputs on or off for fixtures, air blast, sensors or automation. In the catalogue it appears as "Auxiliary outputs / PLC", within the Automation family.

Can you give me an example of M62-M65?

M62 P1 / M63 P1 / M64 P2 / M65 P2 — Turns auxiliary digital outputs on or off for fixtures, air blast, sensors or automation.

Which machines use M62-M65?

M62-M65 is used in: Milling, Turning, Mill-turn, Laser/cut.

What should you watch out for with M62-M65?

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 apps