G Code command

595 views
Skip to first unread message

Rendermandan

unread,
Oct 6, 2012, 10:48:38 PM10/6/12
to mend...@googlegroups.com
Is there a G code command I can enter into Slicer end Gcode section to raise the Z axis up a bit,  Say 2-3mm?
I only have an endstop at the lower portion of the Z axis.


Ross Shannon

unread,
Oct 6, 2012, 10:57:09 PM10/6/12
to mend...@googlegroups.com

http://reprap.org/wiki/G-code.       G1  Z3 F200

On Oct 6, 2012 8:48 PM, "Rendermandan" <renderm...@gmail.com> wrote:
Is there a G code command I can enter into Slicer end Gcode section to raise the Z axis up a bit,  Say 2-3mm?
I only have an endstop at the lower portion of the Z axis.


--
 
 

Gert van den Berg (MoHaG)

unread,
Oct 7, 2012, 9:55:39 AM10/7/12
to mend...@googlegroups.com


On Sunday, October 7, 2012 4:57:09 AM UTC+2, Ross Shannon Fort Collins CO wrote:

http://reprap.org/wiki/G-code.       G1  Z3 F200



That would crash the head into the part if it is higher than 3mm....

I think what he wants is a relative 3mm lift...

Adding a G91 beforehand and a G90 afterwards might work, not sure if it will still keep track of the position or if Z would need to be homed manually afterwards again...

I usae 50mm mostly and for higher pieces, I only move X and Y (assuming that somewhere off-centre would not touch the part)

Gert

Larry Knopp

unread,
Oct 7, 2012, 10:16:29 AM10/7/12
to mend...@googlegroups.com
Inserted as an end code in Slicer, this will do exactly that...  a 3mm vert lift.  The printer is already in relative...  and since it is an end code, the hotend tip is already located at the highest z-point of the print, so no way it could crash in to it...

--
 
 

Gert van den Berg (MoHaG)

unread,
Oct 7, 2012, 10:54:48 AM10/7/12
to mend...@googlegroups.com


On Sunday, October 7, 2012 4:16:29 PM UTC+2, Larry Knopp, aka - [NM] Buzzard wrote:
Inserted as an end code in Slicer, this will do exactly that...  a 3mm vert lift.  The printer is already in relative...  and since it is an end code, the hotend tip is already located at the highest z-point of the print, so no way it could crash in to it...

When would it get put in relative mode? Mine seems to be in absolute mode all the time.

This is what I currently use to move mine to Z=50 in the end code: (It allows met to Z height next time with "G92 Z50")
M114
G1 Z50
M104 S0 ; turn off temperature
M140 S0; turn off heated bed
M84; disable motors

Larry Knopp

unread,
Oct 7, 2012, 11:09:39 AM10/7/12
to mend...@googlegroups.com
Oh crap....
I must not of gotten enough sleep.
Gert is exactly right...


--
 
 

Ross Shannon

unread,
Oct 7, 2012, 11:18:27 AM10/7/12
to mend...@googlegroups.com

I haven't actually tried it but if I'm understanding all this the z will move down to 3mm above homing not just move up 3 from the current position - does m114 do more than just report? And then you move up 50? - a G92 then G1 Z3 would get you above the current position?????

--
 
 

Gert van den Berg (MoHaG)

unread,
Oct 7, 2012, 12:17:06 PM10/7/12
to mend...@googlegroups.com


On Sunday, October 7, 2012 5:18:28 PM UTC+2, Ross Shannon Fort Collins CO wrote:

I haven't actually tried it but if I'm understanding all this the z will move down to 3mm above homing not just move up 3 from the current position - does m114 do more than just report? And then you move up 50? - a G92 then G1 Z3 would get you above the current position?????


The M114 is from my version that does not change height. It allows met to scroll back up to run the right G92 for Z if I loose connectivity between prints... (I do not have endstops installed currently)

For low parts (< 50) I end it at Z50 so that it is in a known psoition when I switch it off...

G92 Z0
G1 Z3
will lift it 3mm... It will also make it quite hard to figure out the exact height if you do not have endstops...

Gert

rendermandan

unread,
Oct 12, 2012, 12:38:57 PM10/12/12
to mend...@googlegroups.com
Thanks for the suggestions everyone,
 
Looks like I will need to install an upper Z endstop...
 
If I do this I know what the G code is to home, but what is the G Code to home the other side?
 
Thanks.

Misha

unread,
Oct 12, 2012, 1:29:49 PM10/12/12
to mend...@googlegroups.com
To home to the other side you need to change the setting in Marlin.

Mark Finn

unread,
Oct 12, 2012, 4:37:58 PM10/12/12
to mend...@googlegroups.com
I move mine up a little at the end of the print by switching to relative mode, moving, then switching back to absolute:

G91; Use Relative Coordinates
G1 Z3 ; raise Z a little
G90; Use Absolute Coordinates

(This is with Marlin)

Larry Knopp

unread,
Oct 12, 2012, 7:15:32 PM10/12/12
to mend...@googlegroups.com
Yes
That

--
 
 

Reply all
Reply to author
Forward
0 new messages