G-Code Sprint Back to site
Category

▦ Code reference

What each G-code and M-code means, in plain language for beginners.

Code reference

Coduri G și M pentru strung CNC: lista esențială

Codurile G comandă mișcarea, codurile M comandă funcțiile mașinii. Iată codurile esențiale pentru strungul CNC și particularitatea diametrului pe axa X.

Lawrence Arya··10 min
Code reference

Alapvető CNC G-kódok listája kezdőknek

A legfontosabb CNC G-kódok egy rövid, fix lista, amit papírról és aktív felidézéssel is megtanulhatsz. Itt vannak a kezdő kódok és a mögöttük lévő logika.

Lawrence Arya··10 min
Code reference

Common M-codes for the XYZ ProtoTRAK Control

The ProtoTRAK is mainly conversational, but it uses standard M-codes for the spindle, tool change, coolant, and program stops. Here are the common ones and what they do.

Lawrence Arya··10 min
Code reference

Printable G-code Poster for the Shop Wall

A wall poster of the common G and M codes is a great quick reference. Here is what to put on it, how to format it to read from a few feet, and its one real limit.

Lawrence Arya··10 min
Code reference

G76 Threading Cycle on Fanuc, Explained Simply

G76 is two lines that delegate a whole threading job: the first line sets the campaign rules, the second describes the thread. Each word, plainly explained.

Lawrence Arya··4 min
Code reference

HAL vs G-Code Pins in LinuxCNC: Two Layers, Not One

HAL wires the machine's hardware; G-code commands its motion. They meet at named signals, and confusing the two layers is the classic LinuxCNC beginner trap.

Lawrence Arya··4 min
Code reference

How to Set Work Zero on a CNC vs a 3D Printer

Printers find their zero by homing to switches; CNC machines are told theirs by touch-off into offsets. Why the philosophies differ, and what transfers.

Lawrence Arya··4 min
Code reference

Lista de códigos M para fresadora Haas, en español

Los códigos M que usarás a diario en una fresadora Haas, explicados en español: husillo, refrigerante, cambio de herramienta y paros, con sus avisos de seguridad.

Lawrence Arya··5 min
Code reference

Разница между G02 и G03 в ЧПУ: дуги без путаницы

G02 ведет дугу по часовой стрелке, G03 против часовой, если смотреть против положительной оси активной плоскости. Правило, пример и способ запомнить навсегда.

Lawrence Arya··4 min
Code reference

CNC Wood Router M-Codes List (GRBL and Beyond)

A wood router's working M-codes are a short list: M3/M5 spindle, M0 pause, M2/M30 end, and the coolant pair M8/M9, usually rewired to dust collection or air.

Lawrence Arya··4 min
Code reference

I, J, K vs R in G02: Arc Center Words Explained

I, J, and K give the arc center as an offset from the start point, while R gives the radius. Here is when each works, and why full circles need I and J.

Lawrence Arya··5 min
Code reference

G-Code Variables: #100 vs #500 Series Differences

Macro variables differ by lifespan: #100-series commons clear at power-off, #500-series survive it, and locals #1-#33 live only inside a call. Here is the map.

Lawrence Arya··4 min
Code reference

G-Code vs M-Code: What Is the Difference?

G-codes control how the machine moves and M-codes control machine actions like the spindle and coolant. Here is the real difference and how they work together.

Lawrence Arya··4 min
Code reference

G20 vs G21: Inch vs Metric in G-Code, Explained

G20 tells the control to read the program in inches and G21 in millimeters. Here is the difference, why the wrong one is dangerous, and how to keep them straight.

Lawrence Arya··4 min
Code reference

G28 Return to Home Position in G-Code, Explained

G28 sends the machine back to its reference (home) position, through an intermediate point you specify. Here is how it works and how to use it safely.

Lawrence Arya··4 min
Code reference

G41 vs G42: Cutter Compensation Left vs Right

G41 offsets the cutter to the left of the path and G42 to the right. Here is how cutter compensation works, the D register, and how to engage it without a crash.

Lawrence Arya··4 min
Code reference

G43 Tool Length Offset in G-Code, Explained

G43 applies a tool's stored length so its tip reaches the programmed Z, no matter how long the tool is. Here is how G43, the H register, and G49 work.

Lawrence Arya··5 min
Code reference

G54 Work Offsets Explained for CNC Beginners

G54 tells the machine where your part zero is. Here is what a work offset stores, how G54 to G59 differ, and how to set one without cutting in the wrong place.

Lawrence Arya··4 min
Code reference

G81 vs G83: Drilling Canned Cycles Explained

G81 is a simple drill cycle and G83 is a peck drill cycle for deep holes. Here is how canned cycles work, their R, Z, and Q words, and when to use each.

Lawrence Arya··5 min
Code reference

How to Remember Lathe M-Codes vs Mill M-Codes

The core M-codes are identical on lathes and mills, so learn them once. The real difference to remember is the tool change: M06 on a mill, the T word on a lathe.

Lawrence Arya··5 min
Code reference

G71 vs G72: Lathe Roughing Cycles Explained

G71 roughs with passes along Z for shafts and long profiles, G72 roughs with passes along X for faces. Here is how each cycle works and which to pick.

Lawrence Arya··5 min
Code reference

Lathe vs Mill G-Code Differences: A Cheat Sheet

The motion core is identical; six differences do the damage: default plane, diameter programming, feed modes, CSS, cycle families, and comp mechanics.

Lawrence Arya··4 min
Code reference

Left-Hand Threading M-Code: M04 vs M03 Explained

A left-hand tap runs on M04, the reverse spindle code, with the G74 cycle on mills. For single-point threading, the spindle and feed direction together set the hand.

Lawrence Arya··5 min
Code reference

LightBurn G-Code Console Commands, Explained Simply

LightBurn's console is a direct line to your GRBL controller: $$ lists settings, $H homes, $X unlocks, $G shows active modes. Here is the working command set.

Lawrence Arya··4 min
Code reference

M3 vs M4 on a CNC Laser Cutter: Which Mode to Use

In GRBL laser mode, M3 holds constant power while M4 scales power with speed, killing corner burn. Here is when each wins and why laser mode must be on.

Lawrence Arya··4 min
Code reference

Mazatrol vs G-Code: The Differences That Matter

Mazatrol is Mazak's menu-guided programming language; G-code is the universal word-address standard. Here is how they differ and when each one wins.

Lawrence Arya··4 min
Code reference

Siemens ShopMill vs ISO G-Code: Which to Use When

ShopMill programs Sinumerik machines through graphical work steps; ISO G-code programs them through classic blocks. Here is how they differ and when each wins.

Lawrence Arya··4 min
Code reference

What Is G54 in 3D Printing? Work Offsets Explained

G54 selects a stored work origin, a CNC concept most 3D printers never use. Here is what it does, which firmware supports it, and what printers use instead.

Lawrence Arya··5 min
Code reference

Why Is G02 Cutting a Straight Line? Common Causes

G02 cuts a straight line when the arc is not actually defined: missing I and J words, a firmware without arc support, the wrong plane, or a huge radius.

Lawrence Arya··5 min
Code reference

Basic G-Code and M-Code List for a TESDA CNC Exam

The core G-code and M-code a TESDA CNC exam expects you to know: motion, units, positioning, spindle, coolant, and program control. A focused study list.

Lawrence Arya··5 min
Code reference

Thread Milling vs Tapping: The G-Code Difference

Tapping uses a canned cycle like G84; thread milling uses helical interpolation with G02 or G03 plus Z. Here is how the two approaches differ in code.

Lawrence Arya··5 min
Code reference

How to Program a Helix in G-Code (G02/G03 With Z)

A helix is just a circular arc with a simultaneous Z move. Add a Z value to a G02 or G03 and the tool spirals instead of staying flat. Here is how it works.

Lawrence Arya··5 min
Code reference

Common G-Codes Every CNC Beginner Should Know

A short reference list of the G-codes that show up in almost every CNC program, with a one-line meaning for each, built for beginners.

Lawrence Arya··5 min
Code reference

M03 vs M04 vs M05: Spindle Codes Made Simple

M03 starts the spindle clockwise, M04 starts it counterclockwise, and M05 stops it. Here is what each does and how to remember the set.

Lawrence Arya··5 min
Code reference

Common M-Codes Every CNC Beginner Should Know

A short reference of the M-codes you will meet first: spindle, coolant, tool change, and program control, each with a plain-language meaning.

Lawrence Arya··5 min