I am trying to get a custom G-code set up for my Prusa Mi3 MK3S. I have an MMU2 on it. Mostly use it for single material prints in an educational setting. The start code with the profile in cura works great, but doesnt allow you to select which filament you use. You can add the "Tx;" command to it, but then you have to wait for heating. I did some digging and found where you can make the Cura SteamEngine not put the heating codes at the beginning buy putting them in your code. This works great for my Ender 3 so I can get the nozzle and bed heating at the same time as my homing to make that a shorter process. Here is the start G-Code I am using for my Prusa.
M140 S{material_bed_temperature_layer_0} ;Start heating bed
M104 S{material_print_temperature_layer_0} ;Start heating extruder
Tx ; Choose filament
M190 S{material_bed_temperature_layer_0} ;Wait for bed to reach temp before proceeding
M109 S{material_print_temperature_layer_0} ;Wait for extruder to reach temp before proceeding
G90 ; use absolute coordinates
M83 ; extruder relative mode
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
The issue is it is not picking up the variable for the temperatures from the settings.... My post processed G-code looks like this.....
;FLAVOR:Marlin
;TIME:10841
;Filament used: 14.9701m
;Layer height: 0.2
;MINX:96
;MINY:76
;MINZ:0.2
;MAXX:154
;MAXY:134
;MAXZ:50.8
;POSTPROCESSED
;Generated with Cura_SteamEngine 4.11.0
M82 ;absolute extrusion mode --------------------------------------------------------------This is not in my custom start code.... added by steamengine for some reason
M140 S{material_bed_temperature_layer_0} ;Start heating bed
M104 S{material_print_temperature_layer_0} ;Start heating extruder
;Tx ; Choose filament
M190 S{material_bed_temperature_layer_0} ;Wait for bed to reach temp before proceeding
M109 S{material_print_temperature_layer_0} ;Wait for extruder to reach temp before proceeding
G90 ; use absolute coordinates
M83 ; extruder relative mode
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
The exact same start code works with my ender and it plugs in the temperatures, but does not work with the Prusa.... What am I doing wrong???
The Cura SteamEngine is also adding an M82 to the code which is not in my custom start code.... not sure why????