preflight_gcode
Validate a local G-code file against Duet/RepRapFirmware limits before upload, checking print area, temps, tools, homing, heating order, and nozzle width. Optionally write a patched copy.
Instructions
Check a local G-code file against this machine BEFORE uploading it: print area vs axis limits, temperatures vs limits, tool selection (T0), G28 in the start block, heating before extrusion, heaters off at the end, config/firmware commands, estimated line width vs nozzle. Read-only. With fixes (select-tool, strip-g28) it writes a patched copy next to the original (.duet.gcode); the original is never modified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Local path to a .gcode / .gco / .g file | |
| fixes | No | ||
| nozzle | No | Nozzle diameter in mm, to judge the line width | |
| filamentDiameter | No |