CNC Machinist Calculator Ultra

Home › M-codes › Centroid CNC12 Acorn › M122

M122 Write local position to data file

Centroid CNC12 Acorn M-code · Mill and lathe

Writes the current part position of all axes, or the named axes, to the open data file, plus any comment on the line.

Format

M122 [/axis] [L1] [Q1]

Addresses

AddressWhat it does
axisAxes to write
L1No new line after it
Q1Write the DSP probe position

How it works

One shot.

Example program

M120 "POINTS.TXT" ; OPEN FILE
M115 /Z P-15 F10. ; PROBE DOWN
M122 ; WRITE X Y Z

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

M120 · M124

M122 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCBuilt in M code relay 2 with M-Fin
DMG Mori MAPPS (Fanuc)External output

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 M122 in the app All Centroid CNC12 Acorn M-codes

App Store Google Play