dadoblu_2000
Posts: 6
Joined: Sat Apr 28, 2018 10:28 am

V5.1.2 generation of unwanted g-code commands

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
Attachments
IMG_0901.jpeg
S3D-Taylor
Posts: 69
Joined: Tue Jun 20, 2023 10:55 am

Re: V5.1.2 generation of unwanted g-code commands

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.
dadoblu_2000
Posts: 6
Joined: Sat Apr 28, 2018 10:28 am

Re: V5.1.2 generation of unwanted g-code commands

ok thanks I'll try it!
dadoblu_2000
Posts: 6
Joined: Sat Apr 28, 2018 10:28 am

Re: V5.1.2 generation of unwanted g-code commands

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
S3D-Taylor
Posts: 69
Joined: Tue Jun 20, 2023 10:55 am

Re: V5.1.2 generation of unwanted g-code commands

Thanks for elaborating, in that case, this should work:
{IF "[current_layer_number]==1"} ; dont retract [retract_distance] [prime_distance]

Return to “Troubleshooting and Bug Reports”