Introduction
When controlling a 3D printer, you need clear instructions to tell it how to move and operate. These instructions come as simple codes that the printer understands to perform tasks like moving the print head or heating the nozzle.
Imagine you are painting a wall. G0 is like moving your brush quickly to a new spot without painting. G1 is moving the brush slowly while applying paint. G28 is stepping back to the corner of the room to start fresh. M104 is turning on the heater to warm the paint so it spreads well. M106 is turning on a fan to help the paint dry faster.
┌───────────────┐
│ Start Print │
└──────┬────────┘
│
▼
┌───────────────┐ ┌───────────────┐
│ G28 │──────▶│ G0 Move │
│ Auto Home │ │ Rapid Position │
└──────┬────────┘ └──────┬────────┘
│ │
▼ ▼
┌───────────────┐ ┌───────────────┐
│ M104 │ │ G1 Move │
│ Set Nozzle │ │ Controlled │
│ Temperature │ │ Movement + │
└──────┬────────┘ │ Extrusion │
│ └──────┬────────┘
▼ │
┌───────────────┐ ▼
│ M106 │ ┌───────────────┐
│ Fan On │ │ Printing │
│ (Cooling) │ │ Process │
└───────────────┘ └───────────────┘