[Sticky] Using Slic3r with the Retractable Purge Mechanism  

  RSS

BigBrain3D
(@bigbrain3d)
Member Admin
Joined: 5 months ago
Posts: 76
12/11/2019 1:57 pm  

Let's discuss how to use Slic3r (PE) with the Retractable Purge Mechanism


Quote
BigBrain3D
(@bigbrain3d)
Member Admin
Joined: 5 months ago
Posts: 76
12/11/2019 1:58 pm  

Don't use this code as it's modified for a bondtech extruder but you can see the change and purge.

Instead take the code from the default settings ini example file in the google drive.

this code -> T{next_extruder} .  signifies the extruder tool change. Everything before is before switch. Everything after, is after.

 

Gcode goes in Toolchange GCODE in Printer settings

  “

G92 E0.0

;G1 E-50 F2100 ;retract

 

G91;Change to relative position

G91

{if layer_z < 15.0}

G1 Z15

{endif}

G1 Z5

M106 S0

G90

 

G1 E-15.0000 F7800

G1 E-24.5000 F1200

G1 E-7.0000 F600

G1 E-3.5000 F360

G1 E20.0000 F437

G1 E-20.0000 F417

G1 E20.0000 F396

G1 E-20.0000 F375

G1 E20.0000 F354

G1 E-20.0000 F333

G1 E20.0000 F312

G1 E-20.0000 F292

; SKINNYDIP START

G1 E32.0000 F1980

G4 P0

G1 E-32.0000 F4200

G4 P0

; SKINNYDIP END

G4 S0

 

T{next_extruder}

 

M900 K0.05

M221 S100

G28 X

G1 X200 F12000 ;move head into position

G4 S0 ;clear movement buffer

G1 X250 F12000 ;move head to purge zone

G1 X254.2 F1000 ;extend purge arm

M107 ;turn off fan

G92 E0 ;reset extrusion position

G1 E0.8 F2100 ;issue after retract

G92 E0 ;reset extrusion position

G1 E40 F200 ;1st purge extrude onto thumb tack

M106 S255 ;turn on fan

G4 S12 ;blob cooling

G92 E0 ;reset extrusion position

G1 E-0.8 F2100 ;retract extruder to prevent oozing

G1 X240 F12000 ;whack blob off tack 1

G1 X254.2 F1000 ;reset for another blob whack

G1 X240 F12000 ;whack blob off tack 2

 

G1 X200 F12000

G4 S0

G1 X250 F12000

G1 X254.2 F1000

M107

G92 E0

G1 E0.8 F2100 ;issue

G92 E0

G1 E40 F200 ;2nd purge

M106 S255 ;blob cooling

G4 S12 ;blob cooling

G92 E0

G1 E-0.8 F2100

G1 X240 F12000

G1 X254.2 F1000 F3000

G1 X240 F12000

 

G1 X200 F12000

G4 S0

G1 X250 F12000

G1 X254.2 F1000

M107

G92 E0

G1 E0.8 F2100 ;issue

G92 E0

G1 E40 F200 ;3rd purge

M106 S255 ;blob cooling

G4 S12 ;blob cooling

G92 E0

G1 E-0.8 F2100

G1 X240 F12000

G1 X254.2 F1000

G1 X240 F12000

 

G1 X200 F12000

G4 S0

G1 X250 F12000

G1 X254.2 F1000

M107

G92 E0

G1 E0.8 F2100 ;issue

G92 E0

G1 E40 F200 ;4th purge

M106 S255 ;blob cooling

G4 S12 ;blob cooling

G92 E0

G4 S0

G1 E-2 F2100 ;retract

G1 X240 F12000

G1 X254.2 F1000

G1 X240 F12000


ReplyQuote
keithywhites
(@mpkottawa)
Active Member Customer
Joined: 4 months ago
Posts: 7
27/11/2019 2:45 am  

@bigbrain3d

could you make an easy step by step guide for setting up a mk3s with this? shouldn't it be a simple copy paste thing, just changing the purge location in the gcode?

i did the purge location test, and got perfect blobs at 252.5.  with a stock mk3s, as that seems to be what this system has been tested on, from what i can tell, is this what i put into tool change gcode:

;Begin m.gcode
M907 X850 ;set current of X motor. May need to set Y as well if your printers head moves on x & y

M106 S0 ;turn off fan
G92 E0 ;reset extrusion distance
G1 E-0.8 F2100 ;retract
G1 Y100 F12000 ;Break string before Z lift
G1 X200 F12000 ;move head into position

G91;Change to relative position
{if layer_z < 15.0}

G1 Z15

{endif}
;UNCOMMENT G1 Z15 F15000 ;Purge Z lift
G90;Change to absolute position

G4 S0 ;clear movement buffer
G1 X250 F12000 ;move head to purge zone
G1 X252.5 F1000 ;extend purge arm
;End m.gcode
***************End pre-tool change gcode**********************

***************Begin after tool change purge gcode**********************
G1 X200 F12000 ;move head into position
G4 S0 ;clear movement buffer
G1 X250 F12000 ;move head to purge zone
G1 X252.5 F1000 ;extend purge arm
M107 ;turn off fan
G92 E0 ;reset extrusion position
G1 E0.8 F2100 ;issue after retract
G92 E0 ;reset extrusion position
G1 E40 F200 ;1st purge extrude onto thumb tack
M106 S255 ;turn on fan
G4 S12 ;blob cooling
G92 E0 ;reset extrusion position
G1 E-0.8 F2100 ;retract extruder to prevent oozing
G1 X240 F12000 ;whack blob off tack 1
G1 X252.5 F3000 ;reset for another blob whack
G1 X240 F12000 ;whack blob off tack 2

G1 X200 F15000
G4 S0
G1 X250 F12000
G1 X252.5 F1000
M107
G92 E0
G1 E0.8 F2100 ;issue
G92 E0
G1 E40 F200 ;2nd purge
M106 S255 ;blob cooling
G4 S12 ;blob cooling
G92 E0
G1 E-0.8 F2100
G1 X240 F12000
G1 X252.5 F3000
G1 X240 F12000

G1 X200 F15000
G4 S0
G1 X250 F12000
G1 X252.5 F1000
M107
G92 E0
G1 E0.8 F2100 ;issue
G92 E0
G1 E40 F200 ;3rd purge
M106 S255 ;blob cooling
G4 S12 ;blob cooling
G92 E0
G1 E-0.8 F2100
G1 X240 F12000
G1 X252.5 F3000
G1 X240 F12000

G1 X200 F15000
G4 S0
G1 X250 F12000
G1 X252.5 F1000
M107
G92 E0
G1 E0.8 F2100 ;issue
G92 E0
G1 E40 F200 ;4th purge
M106 S255 ;blob cooling
G4 S12 ;blob cooling
G92 E0
G1 E-0.8 F2100
G1 X240 F12000
G1 X252.5 F3000
G1 X240 F12000

M907 X650 ;set the current back to normal


ReplyQuote
BigBrain3D
(@bigbrain3d)
Member Admin
Joined: 5 months ago
Posts: 76
27/11/2019 2:30 pm  

@mpkottawa

Do you mean a guide for setting up Slic3r PE? That's a good idea.

Your code does look correct. Best to try on a small simple print first, like a couple cubes.


ReplyQuote
allen.r.marion
(@allen-r-marion)
Active Member Customer
Joined: 1 month ago
Posts: 7
03/12/2019 11:01 pm  

Question for you guys.  When I use the custom tool change g-code and print through Octoprint.  I get a problem at the end of the print where it seems that when the filament is unloaded, Octoprint thinks the filament has run out and initiates a filament change.  I have ran the same g-code through the sd card and it finishes the print and unloads the filament as normal.  If I run a single color print through octoprint it also works normal.  Issue is only present with octoprint+tool change g-code.  Tool change g-code is being put in Prusaslicer, not octoprint.


ReplyQuote
BigBrain3D
(@bigbrain3d)
Member Admin
Joined: 5 months ago
Posts: 76
04/12/2019 2:58 pm  

@allen-r-marion

It does sound like an octoprint issue but we can try and confirm it.

Are you using the latest Slic3r PE version? I think it's 2.2.8

Will you please attach your gcode file?


ReplyQuote
allen.r.marion
(@allen-r-marion)
Active Member Customer
Joined: 1 month ago
Posts: 7
05/12/2019 12:27 am  

Sure, here is a small 2 color print out of PLA.  If you look at the G-code, when my printer gets to around line 6083 or so the printer ejects the filament and asks you to remove it and reload.  This ending G-code is not different from a single color print so I can't figure out why Octoprint is treating it different when I put the custom tool G-code in Prusaslicr.  Thanks for taking a look.

This post was modified 7 days ago by allen.r.marion

ReplyQuote
BigBrain3D
(@bigbrain3d)
Member Admin
Joined: 5 months ago
Posts: 76
05/12/2019 6:08 pm  

@allen-r-marion

hmmm....nothing was attached. Will you please try again? Or email directly to info@bigbrain3d.com


ReplyQuote
allen.r.marion
(@allen-r-marion)
Active Member Customer
Joined: 1 month ago
Posts: 7
08/12/2019 5:29 pm  

@bigbrain3d

Sent a couple files in email, let me know if you find anything. 

Thanks


ReplyQuote
Share:

Please Login or Register