Home › M-codes › Centroid CNC12 Acorn › M223
M223 Write formatted text to data file
Centroid CNC12 Acorn M-code · Mill and lathe
Writes a formatted string with variables to the file opened by M120 or M121.
Format
M223 "TEXT" [#var]
Addresses
| Address | What it does |
|---|---|
TEXT | Text with percent codes |
#var | Variables for each percent code |
How it works
One shot.
Example program
M121 "BORES.TXT" ; OPEN FILE
#100 = 1.0012 ; MEASURED BORE
M223 "POCKET MEASURED" ; WRITE A TEXT LINE
#100 = 1.0012 ; MEASURED BORE
M223 "POCKET MEASURED" ; WRITE A TEXT LINE
Example is in inch. Check offsets and clearances first.
Watch out for
- Open the file first or the job stops.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
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 M223 in the app All Centroid CNC12 Acorn M-codes