Home › M-codes › Centroid CNC12 Acorn › M130
M130 Run a system command
Centroid CNC12 Acorn M-code · Mill and lathe
Runs a Windows command or batch file from the program. It runs in the background unless L1 is given.
Format
M130 "COMMAND" [L1]
Addresses
| Address | What it does |
|---|---|
COMMAND | Command or batch file in quotes |
L1 | Wait for the command to finish |
How it works
One shot.
Example program
M5 M9 ; SPINDLE AND COOLANT OFF
M130 "BACKUP.BAT" L1 ; RUN AND WAIT
M30 ; END
M130 "BACKUP.BAT" L1 ; RUN AND WAIT
M30 ; END
Example is in inch. Check offsets and clearances first.
Watch out for
- Without L1 the program does not wait for the command to finish.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M130 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Display media |
| Heidenhain TNC (ISO) | Untilted coordinates in tilted plane |
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 M130 in the app All Centroid CNC12 Acorn M-codes