gcode
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gcode [2025/09/17 23:20] – dshoop | gcode [2025/10/07 13:00] (current) – dshoop | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== gcode ====== | ====== gcode ====== | ||
| - | {{tag> | + | {{tag> |
| + | |||
| + | {{: | ||
| ...work in progress... | ...work in progress... | ||
| - | {{ :shopping.png? | + | See https://www.klipper3d.org/ |
| + | |||
| + | Your slicer takes a CAD model and " | ||
| + | |||
| + | Gcode that is produced by the slicer might look something like this: | ||
| + | < | ||
| + | G28 | ||
| + | G1 F1500 | ||
| + | G1 X2.0 Y2.0 F3000 | ||
| + | G1 X3.0 Y3.0 | ||
| + | </ | ||
| + | |||
| + | |||
| + | Klipper' | ||
| + | |||
| + | Klipper supports the following standard G-Code commands: | ||
| + | |||
| + | * Move (G0 or G1): G1 [X< | ||
| + | * Dwell: G4 P< | ||
| + | * Move to origin: G28 [X] [Y] [Z] | ||
| + | * Turn off motors: M18 or M84 | ||
| + | * Wait for current moves to finish: M400 | ||
| + | * Use absolute/ | ||
| + | * Use absolute/ | ||
| + | * Set position: G92 [X< | ||
| + | * Set speed factor override percentage: M220 S< | ||
| + | * Set extrude factor override percentage: M221 S< | ||
| + | * Set acceleration: | ||
| + | * Note: If S is not specified and both P and T are specified, then the acceleration is set to the minimum of P and T. If only one of P or T is specified, the command has no effect. | ||
| + | * Get extruder temperature: | ||
| + | * Set extruder temperature: | ||
| + | * Set extruder temperature and wait: M109 [T< | ||
| + | * Note: M109 always waits for temperature to settle at requested value | ||
| + | * Set bed temperature: | ||
| + | * Set bed temperature and wait: M190 S< | ||
| + | * Note: M190 always waits for temperature to settle at requested value | ||
| + | * Set fan speed: M106 S< | ||
| + | * Turn fan off: M107 | ||
| + | * Emergency stop: M112 | ||
| + | * Get current position: M114 | ||
| + | * Get firmware version: M115 | ||
| + | |||
| + | Klipper then further implements a set of " | ||
| + | |||
| + | Common Klipper extended gcode commands include: | ||
| + | * RESTART | ||
| + | * FIRMWARE_RESTART | ||
| + | * GET_POSITION | ||
| + | * SET_GCODE_OFFSET | ||
| + | * SET_HEATER_TEMPERATURE | ||
| + | * TEMPERATURE_WAIT | ||
| + | * PAUSE | ||
| + | * RESUME | ||
| + | * PROBE | ||
| + | * SCREWS_TILT_CALCULATE | ||
| + | * SDCARD_PRINT_FILE | ||
| + | * ... and many more | ||
| + | They take meaningfully named parameters which can appear in any order, as opposed to Marlin gcodes that follow strict parameter order and are referenced with preface letters like P, S, T for parameters, second, or tool specifiers which are less human-readable. | ||
| + | |||
| + | Gcode itself is case insensitive, | ||
| + | < | ||
| + | G28 ; HOME the nozzle | ||
| + | SET_HEATER_TEMPERATURE HEATER=extruder TARGET=160 ; set the extruder temperature to 160C | ||
| + | </ | ||
/app/data/attic/gcode.1758165620.txt.gz · Last modified: by dshoop
