Home › M-codes › Centroid CNC12 Acorn › M128
M128 Move axis by encoder counts
Centroid CNC12 Acorn M-code · Mill and lathe
Moves the named axis by L encoder counts. Follows G90 or G91.
Format
M128 /axis L
Addresses
| Address | What it does |
|---|---|
axis | Axis letter after a slash |
L | Encoder counts |
How it works
One shot.
Example program
G91 ; INCREMENTAL
M128 /X L-5000 ; MOVE X 5000 COUNTS MINUS
G90 ; ABSOLUTE
M128 /X L-5000 ; MOVE X 5000 COUNTS MINUS
G90 ; ABSOLUTE
Example is in inch. Check offsets and clearances first.
Watch out for
- Mostly for service work. Counts depend on the motor and screw.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M128 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| DMG Mori MAPPS (Fanuc) | External output |
| Heidenhain TNC (ISO) | Keep tool tip position TCPM |
| Hurco WinMax (NC) | Tool center point management on |
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 M128 in the app All Centroid CNC12 Acorn M-codes