Home › M-codes › Hurco WinMax (NC) › M140
M140 Retract along tool vector
Hurco WinMax (NC) M-code · Mill
Moves the tool along its own axis. With no L it goes to the machine limit, away from the part.
Format
M140 [L] [P]
Addresses
| Address | What it does |
|---|---|
L | Distance along the tool vector, plus is away from the part |
P | P1 stops at the machine limit with no error |
How it works
Non modal.
Example program
G01 Z-.1 F10. (LAST CUT ON TILTED PLANE)
M140 L2. P1 (BACK OFF 2. ALONG TOOL)
M140 (FULL RETRACT TO LIMIT)
G69.1 (CANCEL PLANES)
M140 L2. P1 (BACK OFF 2. ALONG TOOL)
M140 (FULL RETRACT TO LIMIT)
G69.1 (CANCEL PLANES)
Example is in inch. Check offsets and clearances first.
Watch out for
- Use before an index on a tilted plane so the tool does not drag across the part.
- A negative L moves toward the part.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M140 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Okuma OSP | Tapping Cycle M-Tool Constant Rotation Answer Ignored |
| Heidenhain TNC (ISO) | Retract in the tool axis |
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 M140 in the app All Hurco WinMax M-codes