GregValiant 1,410
You still haven't mentioned what printer you are talking about. I see "Klipper" on one of your images so I "guess" it isn't an Ultimaker which would likely configure the M207/M208 internally dependent on the material.
UltiMaker does the heavy lifting on writing Cura so (I'm guessing again) there is no M207/M208 required from their point of view.
How are you "tuning on the fly"? Are you using a print server? Some sort of Klipper Console?
To start - You have to multiply the speeds by 60 to convert to the gcode "mm/minute".
M207 F{retraction_retract_speed * 60}
That might be one of the problems you are having as "G1 F35 Exxx" is a lot different than "G1 F2100 Exxxx"
You have a dual extruder printer. The Z-hops can be different for each extruder. You would need to explain that in your M207 lines.
M207 S{retraction_amount,0} for extruder 1 and M207 S{retraction_amount,1} for extruder 2.
If you turn on Z-hops in Cura then (as you have noted) the "G1 Fsss Zxx.xx" will be hard coded in the gcode. You can't "tune" that on the fly because every time there is a retraction there will be a Z-hop line and the height is fixed.
What you can do is enable Z-hops in Cura, set the hop height for each extruder, and then turn off "Z-hops" in Cura. The numbers would be available in the Extruder Start gcodes. Every time there is a tool change the Hop Height will return to what that line says. Your "tuning" would then revert to the value in the M207 line.
If there are multiple tool changes in a file, every time there is a tool change the Z-hop amount will be set back to whatever {retraction_hop} for the current tool.
If you want to tune the retraction hop height during a print you need to turn off "Z-Hop" in Cura. The G10 and G11 lines will still be in the Gcode and they will be configured the way you told it with the M207 lines.
Recommended Posts
GregValiant 1,410
I apologize because I have to guess here. If you could post a project file ("File | Save Project") it would be helpful.
If your "firmware retraction" of your printer is handling the Z-hops then you should probably turn off "Z-hops" in Cura. You don't want to double-dip on the Z-hops.
Cura does not typically insert M207 or M208 in gcodes. Whatever retraction distance (and z-hop height) is in the printer as defaults are what is used whenever the printer sees a G10 or G11.
An option would be to add M207 (and M208) lines to your StartUp Gcode so you could tune them to the print. Cura can now do some math and logic in the StartUp and Ending Gcodes.
I'm not giving any guarantees here, but something like this in your StartUp MIGHT allow you to use Cura inserted Z-Hops.
M207 S{retraction_amount} F{retraction_retract_speed * 60} Z0
M208 F{retraction_prime_speed * 60}
You can allow the Firmware Retraction to handle the Z-hops, or let Cura handle the Z-hops, but enabling both is not a good idea.
Link to post
Share on other sites
toreae 0
I have these lines in 'Extruder Start Gcode'.
M207 F{retraction_speed} S{retraction_amount} Z{retraction_hop}
M208 F{retraction_prime_speed} S{retraction_extra_prime_amount}
The problem is that Cura leaves 'retraction_speed', 'retraction_amount', 'retraction_prime_speed', and 'retraction_extra_prime_amount' to the printer's firmware so I can tune these while printing.
Cura does not do the same with 'retraction_hop'. This is not logical.
Marlin Firmware can tune retraction_hop while printing.
Link to post
Share on other sites