CNC Machinist Calculator Ultra

Home › M-codes › Centroid CNC12 Acorn › M124

M124 Write machine position to data file

Centroid CNC12 Acorn M-code · Mill and lathe

Same as M122 but writes machine coordinates.

Format

M124 [/axis] [L1]

Addresses

AddressWhat it does
axisAxes to write

How it works

One shot.

Example program

M120 "MACHPOS.TXT" ; OPEN FILE
M115 /Z P-15 F10. ; PROBE
M124 ; WRITE MACHINE POSITION

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

M122

M124 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCBuilt in M code relay 4 with M-Fin
Doosan (Fanuc)Lower z2-axis torque control reset
DMG Mori MAPPS (Fanuc)External output
Heidenhain TNC (ISO)Contour filter
Swiss (Citizen Star)Back spindle torque limit off (Citizen)

Every M-code for Centroid CNC12 Acorn 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 M124 in the app All Centroid CNC12 Acorn M-codes

App Store Google Play