Home › M-codes › Centroid CNC12 Acorn › M121
M121 Open data file, append
Centroid CNC12 Acorn M-code · Mill and lathe
Opens a data file and adds to the end. Creates it if missing.
Format
M121 "FILE"
Addresses
| Address | What it does |
|---|---|
FILE | File name in quotes |
How it works
Stays open until another M120 or M121 or the end of the job.
Example program
M121 "PARTLOG.TXT" ; ADD TO THE LOG
M127 ; DATE AND TIME
M123 P#100 ; WRITE THE BORE SIZE
M127 ; DATE AND TIME
M123 P#100 ; WRITE THE BORE SIZE
Example is in inch. Check offsets and clearances first.
Watch out for
- Use M121 to keep one log for many parts.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M121 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Built in M code relay 1 with M-Fin |
| Doosan (Fanuc) | Lower z2-axis torque control on |
| 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 M121 in the app All Centroid CNC12 Acorn M-codes