Notifications
Clear all

Extruder return to where after print finished?  

  RSS
Pelle
(@pelle)
New Member
Extruder return to where after print finished?

Hello,

I'm a bit curious if it's possible to set the placement of the extruder after a print is finished?

 

I would like it to go to Z 180 (or similar) and as far left as possible after a print is done.

Sorry if it's a dumb question, coming from 20+ years as a cnc programmer/operator I miss this function. (or I haven't just found it yet)

 

Can anyone share some light on this?

 

Thanks a lot.

 

Opublikowany : 27/12/2022 9:52 pm
RandyM9
(@randym9)
Honorable Member
RE: Extruder return to where after print finished?

Not at my computer now but yes, you can do that easily.

In PrusaSlicer, go to the printers tab and click on ‘custom gcode’ in the tree menu on the left. You probably need to be in expert mode to see everything.

Look for the ‘end gcode’ section and read through what it says. It will shut down the heaters and the motors but it also moves the hotend up about 10mm. You can change that value to anything you want or you can change the command to simply raise the Z value to 180 or whatever value you choose. Just be aware that using a relative value should keep your extruder from crashing into your print if you have an object taller than 180mm.

I hope that points you in the right direction. If you need more help, come back here and one of the other forum members will give you more clarity. If not, I’ll check in tomorrow when I’m at my printer.

Cheers

Opublikowany : 28/12/2022 12:43 am
Costello102 polubić
RandyM9
(@randym9)
Honorable Member
RE: Extruder return to where after print finished?

I did take a look at the ’end gcode’ today and there is a line that raises the Z axis up 30mm after the print finishes. The line is commented so should be easy enough to find. Anything after the semi colon is a comment.

Let us know if you have any other questions.

Cheers

Opublikowany : 29/12/2022 5:21 am
Pelle
(@pelle)
New Member
Topic starter answered:
RE: Extruder return to where after print finished?

Thanks for your help.

 

It looks like this>

 

{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+1, max_print_height)} F720 ; Move print head up{endif}G1 X0 Y200 F3600 ; park

{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+49, max_print_height)} F720 ; Move print head further up{endif}G4 ; wait

M221 S100 ; reset flow

M900 K0 ; reset LA

{if print_settings_id=~/.*(DETAIL @MK3|QUALITY @MK3|@0.25 nozzle MK3).*/}M907 E538 ; reset extruder motor current{endif}

M104 S0 ; turn off temperature

M140 S0 ; turn off heatbed

M107 ; turn off fan

M84 ; disable motors

 

 

I dont see the 30mm you mentioned. Not sure if Im missing something or if Im just to dumb to find it.

Is it that 49mm mentioned in the code 

 

 

Thanks

Opublikowany : 29/12/2022 5:54 pm
RandyM9
(@randym9)
Honorable Member
RE: Extruder return to where after print finished?

It’s possible I’m running a different version of PrusaSlicer so what I see may not be exactly the same as what you’re seeing.

Regardless, you are correct about the 49 value in the text you provided above. Here’s what to look at:

{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+1, max_print_height)} F720 ; Move print head up{endif} - this line moves the extruder up 1mm at the end of the print. I’m not quite sure why this was added to the end gcode unless it’s to check how close the Z axis is to the top end stops. It doesn’t make sense to me but I’m not an expert at gcode either.

G1 X0 Y200 F3600 ; park - this is a separate command that parks the extruder fully left and moves the print bed forward.

{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+49, max_print_height)} F720 ; Move print head further up{endif} - this line moves the extruder up another 49mm after the previous ’raise’ and ‘park’ moves. Change the value 49 to whatever you need it to be. The ‘F720’ value in both commands is the speed of the move. Keep an eye on your printer as it finishes a print to insure it does what you want it to do.

G4 ; wait - this is a separate command that tells the printer to wait before executing another move.

I hope this makes sense. Let us know how you make out.

Cheers

Opublikowany : 29/12/2022 6:39 pm
Share: