Skip to main content
User avatar

Script command for printer in canvas

I need a script command to tell the extruder to stop and retract filament at the end of print as mine keeps oozing a certain amount of filament when print is finished while the extruder is lifting to go to park position.

Answer this question I have this problem too

Is this a good question?

Score 0
Add a comment

2 Answers

Most Helpful Answer
User avatar

I modify my end g-code so my extruder retract the left over filament. My loading offset is around 90mm, I command it to retract 100mm.

here is the example:

G91 ; relative mode

G1 Z10 ; lift 10mm

G1 E-100 F200

M104 S0 ; turn off extruder

M140 S0 ; turn off bed

G90 ; absolute mode

G28 X0 ; home X axis

M84 ; disable motors

Was this answer helpful?

Score 2
Add a comment
User avatar

Hi Mounir,

Please could you share your end sequence with us? That way we can compare it to ours and look for any errors.

Thanks,

Guy

Was this answer helpful?

Score 1

Comments:

END OF PRINT

1 M106 SO; turn off cooling fan

2 M104 SO; turn off extruder

3 M140 SO; turn off bed

4 G1 Z100 ; lift extruder - added by me***

5 G1 XO Y200 ; part removal

6 M84; disable motors

7 M900 KO; reset linear advance to off by default

by

Hi Mounir, it looks like in several places you have the letter O, rather than the number 0:

1 M106 S'O'

2 M104 S'O'

3 M140 S'O'

5 G1 X'O' Y200

7 M900 K'O'

Please correct these and change them to 0s!

To retract your extruder, please insert the following two lines at the beginning of your end sequence:

M83 ; set extruder to relative mode

G1 E-<DESTRING> ; retract using project settings

(If you're using PrinterScript, the second line will instead be: "G1 E-{{retractDistance}} F{{retractSpeed * 60}} ; retract using project settings" )

Let me know if you have any problems or questions.

by

Add a comment

Add your answer

Author avatar Mounir Younes will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 0

All Time: 74

Contact Mosaic Support Team

© 2023 Mosaic Manufacturing Ltd.