CNC Machinist Calculator Ultra

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

AddressWhat it does
LDistance along the tool vector, plus is away from the part
PP1 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)

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

G08.2 · M128

M140 on other controls

The same number can mean something different on another control.

ControlMeaning
Okuma OSPTapping 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

App Store Google Play