Gcode to move extruder to the back of the bed
 
Notifications
Clear all

Gcode to move extruder to the back of the bed  

  RSS
jphalip
(@jphalip)
Eminent Member
Gcode to move extruder to the back of the bed

Hi,

I'm looking for the GCode to move the extruder all the way to the back of the bed so I can easily access the prints on the bed.

I've tried "G1 X0 Y0" but that moves the extruder to the front of the bed, so it gets a bit in the way.

I have the Mk3s+, but wondering if there's a generic value to move it to the max Y value.

Thanks,

Julien

Posted : 19/10/2021 11:10 pm
bobstro
(@bobstro)
Illustrious Member
End gcode example

I've got a documented end gcode example here.

Lines 12 and 14 can be adjusted to do what you want. 

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 20/10/2021 1:41 am
jphalip
(@jphalip)
Eminent Member
Topic starter answered:
Y position

Thanks for your reply. So here I assume one must set a specific position (in this case Y210) to move the extruder to the back? Out of curiosity, is there a way to send it to the maximum allowed position?

Posted : 20/10/2021 3:57 am
bobstro
(@bobstro)
Illustrious Member
210 is the maximum Y position
Posted by: @jphalip

[...] So here I assume one must set a specific position (in this case Y210) to move the extruder to the back?

It moves the bed fully forward. Line 12 sets the printer to use absolute coordinates for positioning. Any G1 move commands will move the nozzle to the specified position. This is opposed to using relative coordinates which will cause G1 move commands to move to position relative to the current position.

Line 14 is a G1 move command that simply moves to absolute coordinates X=0, Y=210.

G0 X0 Y210 F10200; present bed

Nothing magical about the Y value, 210 is simply the maximum. F is the speed.

Out of curiosity, is there a way to send it to the maximum allowed position?

There is a bed_shape placeholder, but it's a multidimensional array that is not easily parsed. It's easiest to just plug in the value (e.g., 250) for your specific printer, IME.

 

 

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 20/10/2021 2:38 pm
towlerg
(@towlerg)
Noble Member
Relative or absolute

With and move command you need to be sure whether you are in absolute or relative mode. In relative mode G0 Y10 will move the Y axis 10 mm toward the back but in absolute mode to will move the Y axis to a position 10mm from the front edge.

Posted : 20/10/2021 2:42 pm
VIKEN
(@viken)
Member
RE: Gcode to move extruder to the back of the bed

I too have this question. Although I have bigger printer bed (300x300) but physically Y axis can move further than 300 but I cant seem to move it further by software. How to move to Y315?

Posted : 10/08/2023 6:35 pm
Share: