The keywords aren’t being replaced in cura during code generation. When I look at the g code in notepad the keywords are still there when the prusa machine is selected in cura. When I select the ender they replace just fine. I have removed the Tx as that is a prusa code that has you select the filament on the screen.
cura is not picking up the keyword when post processing and replacing it with the temp setting. Opening the g code with notepad the keyword is still there but not when using my ender profile with the identical start g code
Recommended Posts
GregValiant 1,342
I think this is a question for a Prusa support site but I'll give it a try.
When I plug your code into Cura in a StartUp G-Code it works and the keywords are properly replaced by Cura during the Gcode generation.
You cannot add keywords with a post-processor because the Gcode generation is completed prior to any post-processing and I believe it's during the Gcode generation that the keyword replacements are made.
;StartUp Gcode
M140 S{material_bed_temperature_layer_0} ;Start heating bed
M104 S{material_print_temperature_layer_0} T0 ;Start heating extruder #1
M104 S{material_print_temperature_layer_0} T1 ;Start heating extruder #2
;Tx ; take this out and see how it works. (This may be Prusa specific and might require your input on the LCD?)
M190 S{material_bed_temperature_layer_0} ;Wait for bed to reach temp before proceeding
M109 S{material_print_temperature_layer_0} T0 ;Wait for extruder #1
M109 S{material_print_temperature_layer_0} T1 ;Wait for extruder #2
;Blah, Blah, Blah, more code
;End of Start Gcode
By explicitly stating the Extruder numbers both would start heating. I don't know what effect that will have when you have an extruder disabled - it may heat anyway because of the above commands. You would need to check that. Also - the above code heats the bed and both extruders at the same time. That requires a fairly robust power supply and you might find it necessary to reorder the commands.
I'm not sure why Cura always adds the M82. If you are using relative extrusion then an M83 will be added after the start gcode. A lot of printers have purge lines in their start gcode and they are pretty much exclusively Absolute extrusions. Maybe that has something to do with it.
Edited by GregValiantLink to post
Share on other sites