4 hours ago, GregValiant said:In @ahoeben's list of the Cura keywords "extruder_nr" is defined as "The extruder train used for printing.". I'm not sure if that would mean the active extruder?
That list (http://files.fieldofview.com/cura/Replacement_Patterns.html) just shows the descriptions defined in fdmprinter.def.json and fdmextruder.def.json, which are the same descriptions as shown in the tooltips inside Cura. Only the "Application defined pattern" descriptions are my texts. Not all descriptions are great explainations of what each setting does.
The {extruder_nr} replacement pattern only makes sense in the "Extruder Start G-code" and "Extruder End G-code". Here {extruder_nr} will point to the extruder that is starting resp. ending (ie the extruder mentioned in the tab for the extruder start/end gcode you are editing in the Machine Settings). In the "Start G-code" and "End G-code", {extruder_nr} is undefined (or at best it might return 0).
Recommended Posts
GregValiant 1,411
If the gcode is being produced as you want it with your switch-over retractions correct, prime tower is good, and all that dual extruder stuff then I think you want to put it in your ending gcode.
M83
G1 F2700 E-86 T{extruder_nr}
M82
In @ahoeben's list of the Cura keywords "extruder_nr" is defined as "The extruder train used for printing.". I'm not sure if that would mean the active extruder? Maybe AHoeben could clarify that.
You might want that before the M104 S0 line.
Because Cura doesn't do math in the StartUp or Ending gcodes - if you change your retraction distance you might need to change the E value in that line.
Most (if not all) gcode prints end with a retraction. In my case that would be 5.5mm and then there are two 2.0 retractions in the Ending Gcode (prior to the nozzle moving away from the print) so if I put the line in after those retractions I would want the number to be E-80.5.
Link to post
Share on other sites