Welcome! Log In Create A New Profile

Advanced

Filament change script help please

Posted by Dunston-UK 
Filament change script help please
November 16, 2018 09:40PM
HI
I need to change filament at a given layer.

I have tried putt the following in the post-processing segment of simpltfy3d

{REPLACE "\n; layer 7," "\n;***PAUSE***\nM83\nG1 E-1.0 F6000\nG91\nG1 Z5.0\nG90\nG1 X10 Y10 F6000\nM84 E0\nM0\nM82\nG92 E0\n;layer 7,"}

which should stop it at layer 7 move head to the front side and wait till resume is given, however it stops at that layer but the heater then goes off and then there is no way to restart the print

I am using a Duet board which runs reprap
Re: Filament change script help please
November 17, 2018 02:54AM
Change that script to insert just a single M226 command, then it will run the standard pause script, allowing you to change the filament.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Filament change script help please
November 17, 2018 11:05AM
So it would look like ?

{REPLACE "\n; layer 7," "\n;***PAUSE***\nM266,}


I not sure what the remaining line would look like. I will try it out. Thank you DC42.
Re: Filament change script help please
November 17, 2018 06:15PM
Quote
Dunston-UK
So it would look like ?

{REPLACE "\n; layer 7," "\n;***PAUSE***\nM266,}


I not sure what the remaining line would look like. I will try it out. Thank you DC42.

Yes, except it's M226 not M266. The forthcoming 2.02RC4 firmware release allows you to use M600 instead, which works in exactly the same way except that you can choose to run a different pause macro, for example one that unloads the filament and prompts you to load new filament.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Filament change script help please
November 17, 2018 06:57PM
Quote
dc42
Quote
Dunston-UK
So it would look like ?

{REPLACE "\n; layer 7," "\n;***PAUSE***\nM266,}


I not sure what the remaining line would look like. I will try it out. Thank you DC42.

Yes, except it's M226 not M266. The forthcoming 2.02RC4 firmware release allows you to use M600 instead, which works in exactly the same way except that you can choose to run a different pause macro, for example one that unloads the filament and prompts you to load new filament.

Now that exactly what I’m looking for. That will make it a whole lot easier to use I hope. When is 2.02rc4 due?

Edited 1 time(s). Last edit at 11/17/2018 06:58PM by Dunston-UK.
Re: Filament change script help please
November 18, 2018 06:42PM
Quote
Dunston-UK
Quote
dc42
Quote
Dunston-UK
So it would look like ?

{REPLACE "\n; layer 7," "\n;***PAUSE***\nM266,}


I not sure what the remaining line would look like. I will try it out. Thank you DC42.

Yes, except it's M226 not M266. The forthcoming 2.02RC4 firmware release allows you to use M600 instead, which works in exactly the same way except that you can choose to run a different pause macro, for example, one that unloads the filament and prompts you to load new filament.

Now that exactly what I’m looking for. That will make it a whole lot easier to use I hope. When is 2.02rc4 due?

Thank DC42 Got the 2.02RC4 now, just have to wait for the 18-hour print to finish to try out the M600 and see what I need to put into it to make it work. Or is it just {REPLACE "\n; layer 7," "\n;***PAUSE***\nM600,}
Re: Filament change script help please
November 19, 2018 02:51AM
Yes that's correct, also set up the /sys/filament-change.g file on the SD card to do whatever you want, otherwise it will run the usual pause.g file.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Filament change script help please
November 19, 2018 03:23AM
Quote
dc42
Yes that's correct, also set up the /sys/filament-change.g file on the SD card to do whatever you want, otherwise it will run the usual pause.g file.

Ok cool so the file is not on my sys I expect I have to create it. As to the pause do I have to include that command in line in the script

As in
Script start
Pause command (do i need to use the command call here )
Retract 5mm
Move head to home XY
Eject filament
Script end

After I load filament yawing the paneldue Interface macros to load filament and purged old filament all I have to do is the press resume?

(I have not entered Gcodes as I am not at my computer and I do not know off hand the Gcodes)
Re: Filament change script help please
November 19, 2018 03:51AM
You don't need to include a pause in that file, just do the same sorts of things that you do in the pause.g file, followed by any additional commands you want such as unloading the old filament.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Filament change script help please
November 21, 2018 08:45AM
Quote
dc42
You don't need to include a pause in that file, just do the same sorts of things that you do in the pause.g file, followed by any additional commands you want such as unloading the old filament.

Well, somethings not working right.

I use

{REPLACE "\n; layer 7," "\n;***PAUSE***\nM600,} in the S3D post processing segment.

And in the /sys/filament-change.g

M83 ; relative extruder moves
G91 ; relative positioning
G1 Z5 F360 ; lift Z by 5mm
G90 ; absolute positioning
G1 X0 Y0 F6000 ; go to X=0 Y=0
G1 E-150 F3600 ; Unload filament

It does not pause it just carries on. I am sure it is not the sys/filament section, I believe it is the post-processing in that ohhh so overpriced Simplyfy3D, and getting an answer from their mods team is like drawing blood from a long-dead corpse.
Re: Filament change script help please
November 21, 2018 01:50PM
Got it working.

{REPLACE "; layer 4" "M600\n; layer 4"} in the post processing

in the /sys/filament-change.g

M83 ; relative extruder moves
G91 ; relative positioning
G1 Z5 F360 ; lift Z by 5mm
G90 ; absolute positioning
G1 X0 Y0 F6000 ; go to X=0 Y=0
G1 E-150 F3600 ; Unload filament

Thank you for your help
Re: Filament change script help please
November 21, 2018 02:01PM
Damm I spoke too soon

its now placing an M600 where ever it finds the chosen layer number



M600
; layer 4, Z = 0.800
; inner perimeter
G1 X50.020 Y45.957 F4800
G1 Z0.800 F1000
G1 E1.1000 F1800
G1 X50.186 Y45.999 E0.0058 F6400


M600
; layer 40, Z = 8.000
; inner perimeter
G1 X49.758 Y64.673 F4800
G1 Z8.000 F1000
Re: Filament change script help please
November 21, 2018 02:28PM
Try replacing "layer 4," instead of "layer 4".



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Filament change script help please
November 22, 2018 05:17AM
Quote
dc42
Try replacing "layer 4," instead of "layer 4".

Thank you that works.

Now to figure out how to get it to pause at another level as well, I have tried duplicating the line but it then ignores the whole thing. Ahh the joys of doing something that really should be easy to do. LOL
Sorry, only registered users may post in this forum.

Click here to login