#g-code help for home on other side of the bed

1 messages · Page 1 of 1 (latest)

tired shoal
#

need g-code to set home to other side of the bed on the forward and backwards axis

end g-code:

G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning

G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed

M84 X Y E ;Disable all steppers but Z```
#

wait it kinda look like this line might be it G1 X5 Y5 F3000 ;Wipe out

#

so thats y axis?

worthy apex
#

X is left and right axis, Y is forward and backward axis. Notice how on the first line it changes to Relative with command G91? Every command after that is relative to where the axes currently are, so G1 E-2 Z0.2 moves the extruder (E) back 2mm and the print head up (Z) 0.2mm. Next line G1 X5 Y5 moves the print head to the right (X + 5) and the bed forward (Y + 5). Then it raises the print head 10 more mm and goes back to Absolute positioning with G90

The very next line, G1 X0 Y{machine_depth} is the one you want to change. Currently that moves the print head all the way to the left (X=0) and the bed forward to present the print. If you were to change the X0 to, say, X200 it would put the toolhead 200mm to the right of the absolute left.

#

if your build size / print bed is 220mm * 220mm, G1 X220 Y{machine_depth} would put your print head all the way to the right.

tired shoal
#

okay i changed that vaule but nothign changed with my printer

#

the printer head is still in the same position

#
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X220 Y220 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning

G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed

M84 X Y E ;Disable all steppers but Z``` i hcange both of them and the printer head is still in the same spot? im uing cura slicer
willow yew
worthy apex
#

X0 is moving it to the far left, change that to X220 or something and it will move to the right. You need to know your machine size to know what value to put in X<value>

pliant martenBOT
#
This post has been closed due to inactivity.

This post has been inactive for over 1 hour and so has been closed. To reopen this post simply send another message.

tired shoal
#

"X is left and right axis, Y is forward and backward axis. Notice how on the first line it changes to Relative with command G91? Every command after that is relative to where the axes currently are, so G1 E-2 Z0.2 moves the extruder (E) back 2mm and the print head up (Z) 0.2mm. Next line G1 X5 Y5 moves the print head to the right (X + 5) and the bed forward (Y + 5). Then it raises the print head 10 more mm and goes back to Absolute positioning with G90

The very next line, G1 X0 Y{machine_depth} is the one you want to change. Currently that moves the print head all the way to the left (X=0) and the bed forward to present the print. If you were to change the X0 to, say, X200 it would put the toolhead 200mm to the right of the absolute left."