Welcome! Log In Create A New Profile

Advanced

Wipe extruder tip in a box - GCode ?

Posted by bigfefi 
Wipe extruder tip in a box - GCode ?
November 12, 2014 04:30AM
Hallo!
This is my first post.
What I like to do is "Wipe in a box". I mean I'd like to attach a "box" in a corner of the heated bed that has a certain height alon Z.
The box will have a sort of wires strip on the edges
Using tool-change GCode I'd like to go over the box, extrude an amount of filament, retract my standard retraction value (1 mm), return to the correct Z height and the continue the printing.

Suppose the center of the box is at X200 Y200, and the wiping edge is at Z50.

What I mean (I'm not en expert in GCode!)...

*** tool-change GCode start here***
G92 E0; reset extruder position
G1 E-15 F1000; retract filament of the actual extruder to prevent ooze
G1 Z50 F300; raise z to the correct height for wipe against the wiping wires but not crash the waste filament's box
G1 X200 Y200 F6000; go over the center of the box
T[next extruder]; select the extruder that will print after the "macro" execution
G92 E0;
G1 E20 F1000; extrude more filament than the amount retracted on the previous tool-change
G1 E-1; small retract, as default for layer change
G90;
*** tool-change GCode stop here***


The problem: when I try something like this code, I loose the z layer position.
It seem that G1 Z50 F300 override the z position defined by Slic3r ( I use 1.1.6), so if I come from the second layer height (suppose Z0.4) the print restart at Z50 and not at Z0.4

I hope the question is clear... tongue sticking out smiley

Thanks for any suggestion!


- OrdBot Hadron
- Megatronics V3
- 2 x BullDog Extruder XL
- 2 x E3D V5 direct drive for ø1.75 wire, nozzle ø0.4
- Marlin Firmware, Slic3r 1.1.6 and 1.2.0, Repetier Host
Re: Wipe extruder tip in a box - GCode ?
November 12, 2014 10:11AM
Not an expert neither but the best way to solve your problem is to do a G28 first then a G90 and then run your script, eliminate the last G90 on your script.

I usually use M500 after the G90, to save the location, but again I don't know if what I do is the right thing to do, but it works for me.
Re: Wipe extruder tip in a box - GCode ?
November 12, 2014 11:55AM
there is a small issue in your script. You're assuming that you are at or below 50mm in height. If you are in fact above that level, your third line will cause the head to crash into the printed object. You need to move in x and y before you move to the Z wipe height, but that means you also need a safe zone where x and y are safe at ANY height.

Regarding getting the Z location, M114 will give you the current coordinates, but you need to worry about buffering. I think M114 will be executed immediately, before any commands that happen to be in the buffer. This means that you will be getting the position a few instructions BEFORE where you want. You can see if M400 will solve this issue - it is supposed to wait for all moves to finish - but I don't know if it's universally implemented.

Edited 1 time(s). Last edit at 11/12/2014 11:56AM by jbernardis.
Re: Wipe extruder tip in a box - GCode ?
November 12, 2014 12:42PM
Ok, understrand the dubt about crash.
Not so clear, for me I mean, the usage of M114.
How can I use the answer given by M114 in a G1 XYZ command?


- OrdBot Hadron
- Megatronics V3
- 2 x BullDog Extruder XL
- 2 x E3D V5 direct drive for ø1.75 wire, nozzle ø0.4
- Marlin Firmware, Slic3r 1.1.6 and 1.2.0, Repetier Host
Re: Wipe extruder tip in a box - GCode ?
November 13, 2014 03:07AM
Maybe I've solved the trick.
I found that MagoKimbra has implemented new gcode command, G60 and G61.
The first one store the "actual position", while the second correspond to G1 X[stored X position] Y[stored Y position] Z[stored Z position].

BTW, I'd like to understand tu usage of M114 in conjunction with a G1 command confused smiley, as said in the previous post.


- OrdBot Hadron
- Megatronics V3
- 2 x BullDog Extruder XL
- 2 x E3D V5 direct drive for ø1.75 wire, nozzle ø0.4
- Marlin Firmware, Slic3r 1.1.6 and 1.2.0, Repetier Host
Re: Wipe extruder tip in a box - GCode ?
November 13, 2014 11:14AM
You just need to do the wipe out of the plane ...
In addition, you can go to the location in memory plus a value, example as G61 Z5 goes to z in memory +5.
So before moving back to the part you can make G61 Z1, then move on piece G61 XY and back down to the layer current G61 Z.

Your code:
*** tool-change GCode start here***
G60 ; Memory position
G92 E0; reset extruder position
G1 E-15 F1000; retract filament of the actual extruder to prevent ooze
G1 Z50 F300; raise z to the correct height for wipe against the wiping wires but not crash the waste filament's box
G1 X200 Y200 F6000; go over the center of the box
T[next extruder]; select the extruder that will print after the "macro" execution
G92 E0;
G1 E20 F1000; extrude more filament than the amount retracted on the previous tool-change
G1 E-1; small retract, as default for layer change
G90;
G61 Z1 F6000
G61 X Y F6000
G61 Z F6000
*** tool-change GCode stop here***


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: Wipe extruder tip in a box - GCode ?
November 13, 2014 11:21AM
Thanks Mago!
Or better... Grazie Mago! Dato che sono italiano pure io! thumbs up


- OrdBot Hadron
- Megatronics V3
- 2 x BullDog Extruder XL
- 2 x E3D V5 direct drive for ø1.75 wire, nozzle ø0.4
- Marlin Firmware, Slic3r 1.1.6 and 1.2.0, Repetier Host
Re: Wipe extruder tip in a box - GCode ?
November 13, 2014 02:10PM
I hadn't thought it through completely. You can't use M114 to modify static G Code. It would all have to be done under host program control dynamically.
Re: Wipe extruder tip in a box - GCode ?
November 14, 2014 12:31PM
I had the suspect about this fact, and you confirm to me.
Tonight I will try the MagoKimbra's implementation and let you know asap


- OrdBot Hadron
- Megatronics V3
- 2 x BullDog Extruder XL
- 2 x E3D V5 direct drive for ø1.75 wire, nozzle ø0.4
- Marlin Firmware, Slic3r 1.1.6 and 1.2.0, Repetier Host
Re: Wipe extruder tip in a box - GCode ?
November 18, 2014 03:00PM
Similar to the gcode command, G60 and G61 of MagoKimbra
If you want to use Repetier firmware
From the Repetier.ino file
- M401 - Store x, y and z position.
- M402 - Go to stored position. If X, Y or Z is specified, only these coordinates are used.


You only learn when you change your mind.
[www.deltaprinter.co.za]
Sorry, only registered users may post in this forum.

Click here to login