Home › M-codes › Centroid CNC12 Acorn › M127
M127 Write date and time to data file
Centroid CNC12 Acorn M-code · Mill and lathe
Writes the day, date, time and year to the open data file.
Format
M127
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
One shot.
Example program
M121 "TESTDATA.DAT" ; OPEN FILE
M127 ; DATE AND TIME
M122 ; POSITION
M127 ; DATE AND TIME
M122 ; POSITION
Example is in inch. Check offsets and clearances first.
Watch out for
- It does not add a semicolon. Put M123 with a semicolon comment before it if needed.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M127 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| DMG Mori MAPPS (Fanuc) | External output |
| Heidenhain TNC (ISO) | Reset M126 |
| Hurco WinMax (NC) | Shortest rotary path off |
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 M127 in the app All Centroid CNC12 Acorn M-codes