Page 1 of 1
V5.1.2 generation of unwanted g-code commands
Posted: Sun Jan 12, 2025 12:11 pm
by dadoblu_2000
I have a problem with a command line related to the g-code created by simplify3d, I have done various tests in the configuration but the gcode is always produced in the same way, I have a modified ultimaker2 printer with a double extruder, I am noticing that after the nozzle spitting phase a command line is created related to the retraction (highlighted in blue on the attached image) here I would like to eliminate that retraction, before the brim starts printing, even if in the following lines an extrusion loading is performed at 7.35mm. Thanks for any ideas
Re: V5.1.2 generation of unwanted g-code commands
Posted: Mon Jan 13, 2025 9:00 am
by S3D-Taylor
To do what you want, paste this into the Pre Retraction Script:
{IF "[current_layer_number]==1"} ; dont retract E[retract_distance]
This has the minor side effect of disabling retraction on the first layer, but that might be sufficient in your case.
Re: V5.1.2 generation of unwanted g-code commands
Posted: Mon Jan 13, 2025 5:04 pm
by dadoblu_2000
ok thanks I'll try it!
Re: V5.1.2 generation of unwanted g-code commands
Posted: Thu Jan 16, 2025 7:27 am
by dadoblu_2000
S3D-Taylor wrote: ↑Mon Jan 13, 2025 9:00 am
To do what you want, paste this into the Pre Retraction Script:
{IF "[current_layer_number]==1"} ; dont retract E[retract_distance]
I tried but it doesn't work properly, it would also be necessary to have a function that triggers the retraction, because otherwise there will be an excess of material, I explain: with the indicated function the retraction does not occur but the de-retraction function remains, therefore assuming a retraction of 5 mm by setting that function the extruder does not retract by 5 mm but de-retracts by 5 mm and this generates an excess of material that accumulates from time to time creating differences in the flow, it would be useful to have a function that inhibits the triggering and de-activation
Re: V5.1.2 generation of unwanted g-code commands
Posted: Thu Jan 16, 2025 11:27 am
by S3D-Taylor
Thanks for elaborating, in that case, this should work:
{IF "[current_layer_number]==1"} ; dont retract [retract_distance] [prime_distance]