CNC Machinist Calculator Ultra

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

AddressWhat it does
COMMANDCommand or batch file in quotes
L1Wait 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

Example is in inch. Check offsets and clearances first.

Watch out for

Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.

Related codes

M120

M130 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCDisplay 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

App Store Google Play