CNC Machinist Calculator Ultra

Home › M-codes › Hurco WinMax (NC) › M126

M126 Shortest rotary path on

Hurco WinMax (NC) M-code · Mill

Rotary axis takes the shortest way to the commanded angle. 350 to 20 degrees moves plus 30.

Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.

Format

M126

Addresses

AddressWhat it does
noneNo words

How it works

Modal. Cancel with M127.

Example program

M126 (SHORTEST PATH ON)
G00 C20. (FROM 350 GOES PLUS 30)
M127 (SHORTEST PATH OFF)

Example is in inch. Check offsets and clearances first.

Watch out for

Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.

Related codes

M127 · M31

M126 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCBuilt in M code relay 6 with M-Fin
Doosan (Fanuc)Synchro control cancel
DMG Mori MAPPS (Fanuc)External output
Heidenhain TNC (ISO)Shortest path for rotary axes
Centroid CNC12 AcornProtected probe move plus, no contact expected

Every M-code for Hurco WinMax (NC) in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open M126 in the app All Hurco WinMax M-codes

App Store Google Play