Home › M-codes › Hurco WinMax (NC) › M31
M31 Rotary encoder reset
Hurco WinMax (NC) M-code · Mill
Resets the rotary axis reading to within plus or minus 180 degrees so it does not unwind on the next run.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
M31
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Non modal.
Example program
G01 A9000. F500. (MANY TURNS)
M31 (RESET ROTARY READING)
M30 (END)
M31 (RESET ROTARY READING)
M30 (END)
Example is in inch. Check offsets and clearances first.
Watch out for
- Use after many full turns, before the program repeats.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M31 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Chip auger forward |
| Doosan (Fanuc) | Left chucking interlock by-pass |
| DMG Mori MAPPS (Fanuc) | Axis interlock bypass ON |
| Mazak (EIA) | Tail spindle & tailstock body advance (for 300 or 400-III or IIIT) |
| Fadal | Exchange pallets |
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 M31 in the app All Hurco WinMax M-codes