Machine G-code and notower¶
OpenCreator builds its print-start command from the sliced file, so the recommended start G-code only sets print statistics, temperatures, fans and positioning modes. See How a print starts for the full startup sequence.
File header G-code¶
Clear File header G-code and leave it empty. The FlashForge profile puts a FlashForge-style time estimate there, and Orca also copies that setting into the end of the file, where Moonraker reads it instead of the real estimate. With it in place, Fluidd and Mainsail show no slicer time estimate.
Files sliced before the change
OpenCreator's Moonraker component works around this for files uploaded from now on. Files already on the printer show no estimate until you upload them again.
Start G-code¶
Set your start G-code to this:
;start_gcode
SET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]
M140 S[bed_temperature_initial_layer_single]
M191 S[overall_chamber_temperature]
M106
M106 P2 S0 ; Center_Fresh_Air_Input_Fan_for_PLA30%_(80_0-255)
M106 S0 ; Model_Fan_(Heat_Break_Cooler_80-255)100%=255
M106 P3 S0 ; Filter_Unit_Fan_0-255(ABS=255)
G90
M83
;start_gcode end
What each line does on OpenCreator:
| Line | Effect |
|---|---|
SET_PRINT_STATS_INFO TOTAL_LAYER=… |
Gives Fluidd and Mainsail the layer count |
M140 S… |
Bed target. Print start has already heated the bed to the first M140 it found in the file |
M191 S… |
Chamber target on a Pro; with chamber_wait on, it also waits for it. A Creator 5 without chamber heater ignores it (No chamber heater on a Creator 5; M191 ignored) |
M106 / M106 S0 |
Part cooling fan, full then off. Without P, M106 drives the part fan; no S means full speed |
M106 P2 S0, M106 P3 S0 |
Pro only: chamber circulation and cooling fans (P2) and the filter fan (P3). Ignored on a Creator 5 |
G90, M83 |
Absolute moves, relative extrusion |
There's no C5_PRINT_START in it on purpose. To change print start for one
profile, for example to skip the purge line, add a C5_PRINT_START line with
the settings you want; see
For one print only. A
C5_PRINT_START line replaces the one the printer would build, so it then
needs TOOL, HOTEND and BED itself.
End and layer-change G-code¶
Remove or comment out this line in Print End on newer versions of the profile:
The printer runs C5_PRINT_STOP by itself at the end of the file (heaters off,
tool docked); see
Ending, cancelling and pausing.
The end G-code doesn't need to park or turn anything off.
For Layer change G-code:
- Add
SET_PRINT_STATS_INFO CURRENT_LAYER={layer_num + 1}on its own line, so the current layer is updated every layer and Fluidd shows it. - Optionally add
TIMELAPSE_TAKE_FRAMEon its own line, so Timelapse takes a frame at every layer.
Notower¶
To purge into the bucket instead of printing a prime tower, add this line to the start G-code, with the grams to purge per tool change:
It only takes effect on prints that use more than one tool. Turn the prime tower off in the print profile. See Notower for how OpenCreator handles those tool changes.