CNC Machinist Calculator Ultra

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

AddressWhat it does
axisAxis letter after a slash
LEncoder counts

How it works

One shot.

Example program

G91 ; INCREMENTAL
M128 /X L-5000 ; MOVE X 5000 COUNTS MINUS
G90 ; ABSOLUTE

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

M26

M128 on other controls

The same number can mean something different on another control.

ControlMeaning
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

App Store Google Play