Change Homing Order
-
Hello,
I have a little problem with the homing of the X and Y axes.
I have to drive first Y and then X to the end stop.
At the moment it drives both axles at the same time and so it doesn't work with my setup.Thanks
-
When does it do this?
The G code file homeall.g gives the instructions to the printer in order to home all of the axes, X, Y and Z.
homex.g homes the X axis only. homey.g homes the Y axis only. homez.g homes the Z axis only.
At the end of print jobs, you will often see something like
G28 X Y
G28 is the home command, and the X and Y are the flags to tell it to only home those axes. By convention we tend to list them in alphabetical order (X, then Y, then Z) when we do that. It will then call the appropriate gcode file to home those axes.
It sounds though like you're using homeall.g, since you mention that it does X and Y at the same time.
My homeall.g file looks like this:
; homeall.g ; called to home all axes ; ; generated by RepRapFirmware Configuration Tool on Thu Aug 30 2018 14:11:29 GMT-0600 (Mountain Daylight Time) G91 ; relative positioning G1 Z5 F6000 S2 ; lift Z relative to current position G1 S1 X245 Y280 F3000 ; move quickly to X and Y axis endstops and stop there (first pass) G1 X-5 Y-5 F6000 ; go back a few mm G1 S1 X225 Y280 F300 ; move slowly to X and Y axis endstops once more (second pass) G90 ; absolute positioning
In order to change it so that it homes Y first, then homes X afterwards:
; homeall.g ; called to home all axes ; G91 ; relative positioning G1 Z5 F6000 S2 ; lift Z relative to current position G1 S1 Y280 F3000 ; move quickly to Y axis endstop and stop there (first pass) G1 Y-5 F6000 ; go back a few mm G1 S1 Y280 F300 ; move slowly to Y axis endstop once more (second pass) G1 S1 X245 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 X-5 F6000 ; go back a few mm G1 S1 X225 F300 ; move slowly to X axis endstop once more (second pass) G90 ; absolute positioning
-
Hi,
thanks i will give it a try.