Every G-Code and M-Code command explained with examples โ plus in-depth guides for CNC machining, 3D printing, Klipper, Marlin firmware, STL slicing, CAM software, and bioprinting. All in one place.
Control machine movement โ rapid travel, feed moves, arcs, and homing.
G-CodesMove at maximum speed โ travel moves only, never cutting
Straight-line move at controlled feed rate F โ primary cutting command
Circular arc interpolation โ clockwise direction in active plane
Circular arc โ CCW, used for climb-milling finishing passes
Set work origins, switch positioning modes, home axes.
CoordinatesMove to reference / home position โ always run before printing
Probe bed surface and build compensation mesh โ 3D printers
G90 = from zero, G91 = from current position
Redefine current position without moving โ reset E axis
Control hotend and heated bed temperatures for 3D printing.
M-Codes โ TemperatureNon-blocking โ sets target and continues immediately
Blocking โ printer pauses until target temperature reached
Non-blocking heated bed โ start heating while doing other setup
Fan control, EEPROM, spindle, coolant, and program flow.
M-Codes โ MachineControl fan speed 0โ255 โ critical for bridges and overhangs
Persist all calibration settings across power cycles
Complete deep-dive resources โ slicing, firmware, CAM software, and specialized workflows.
Pillar GuidesHow to convert any 3D model to printable G-Code โ slicer software, settings, CNC CAM workflow, and verification.
All Klipper commands, pressure advance, input shaper, SAVE_CONFIG, macros, and Klipper vs Marlin differences.
Fusion 360, Mastercam, FreeCAD โ how CAM converts 3D models to CNC G-Code, toolpath strategies, post-processors.
Steps/mm calibration, PID tuning, EEPROM management, auto bed leveling, microstepping, syringe pump setup.
Scaffold fabrication, hydrogel extrusion, flow-rate sync, bioink rheology, and living tissue printing step-by-step.
What is G-Code, how machines read it, command anatomy, coordinate systems, and how to read a real G-Code file.
Technical deep-dives on G-Code, CNC machining, 3D printing, optimization, and troubleshooting.
Machine types, axes, CADโCAMโG-Code workflow, cutting tools, speeds and feeds.
CNCChip load, trochoidal milling, entry moves, finishing passes โ faster, better, longer tool life.
ManufacturingSide-by-side comparison of additive vs subtractive โ cost, materials, precision, speed.
G-CodeAll essential codes with real-world examples โ CNC and 3D printer focused.
TroubleshootingCoordinate errors, thermal runaway, arc mistakes, layer shifts โ step-by-step fixes.
SimulationWhat simulation catches, cost of crashes, and how GCodex prevents machine damage.