Home › M-codes › Centroid CNC12 Acorn › M120
M120 Open data file, overwrite
Centroid CNC12 Acorn M-code · Mill and lathe
Opens a data file for writing and erases what was in it. Used to log probe points and measurements with M122 to M127.
Format
M120 "FILE"
Addresses
| Address | What it does |
|---|---|
FILE | File name in quotes, string variables 300 to 399 allowed |
How it works
Stays open until another M120 or M121 or the end of the job.
Example program
M120 "PROBETST.DAT" ; NEW DATA FILE
M115 /X P-15 F20. ; PROBE
M122 ; WRITE THE POSITION
M115 /X P-15 F20. ; PROBE
M122 ; WRITE THE POSITION
Example is in inch. Check offsets and clearances first.
Watch out for
- With no folder the file goes in the same folder as the program.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M120 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| DMG Mori MAPPS (Fanuc) | External output |
| Mazak (EIA) | Measurement data print out |
| Heidenhain TNC (ISO) | Look ahead for radius compensation |
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 M120 in the app All Centroid CNC12 Acorn M-codes