Homing sequence different in latest RRF Version?
-
This is my first machine built with the latest firmware version and when I home the axes, instead of backing off 5mm as written in the homex.g and homey.g it moves all the way back to the zero position.
Since my homing switches are at the maxima of each axis this makes the homing sequence take quite a while. I tried using the home code from a previous build and nothing changed. What am I missing? I'll post the homex.g and homey.g below.
Thanks!
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool v3.5.1 on Sat Jun 22 2024 12:58:51 GMT-0400 (Eastern Daylight Time); increase Z
G91 ; relative positioning
G1 Z5 ; move Z relative to current position to avoid dragging nozzle over the bed
G90 ; absolute positioning; home X
var maxTravel = move.axes[0].max - move.axes[0].min + 5 ; calculate how far X can travel plus 5mm
G1 H1 X{var.maxTravel} F600 ; coarse home in the +X direction
G1 X-5 F6000 ; move back 5mm
G1 H1 X{var.maxTravel} F300 ; fine home in the +X direction; decrease Z again
G91 ; relative positioning
G1 Z-5 F6000 ; move Z relative to current position
G90 ; absolute positioning
; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v3.5.1 on Sat Jun 22 2024 12:58:51 GMT-0400 (Eastern Daylight Time); increase Z
G91 ; relative positioning
G1 Z5 ; move Z relative to current position to avoid dragging nozzle over the bed
G90 ; absolute positioning; home Y
var maxTravel = move.axes[1].max - move.axes[1].min + 5 ; calculate how far Y can travel plus 5mm
G1 H1 Y{var.maxTravel} F600 ; coarse home in the +Y direction
G1 Y-5 F6000 ; move back 5mm
G1 H1 Y{var.maxTravel} F300 ; fine home in the +Y direction; decrease Z again
G91 ; relative positioning
G1 Z-5 F6000 ; move Z relative to current position
G90 ; absolute positioning -
@gw3d3 said in Homing sequence different in latest RRF Version?:
G1 X-5 F6000 ; move back 5mm
you're telling it to move to position -5 on the x axis.
Change the G1 to G1 H2 -
@jay_s_uk Thanks for the reply.
So I made the change:
; home X
var maxTravel = move.axes[0].max - move.axes[0].min + 5 ; calculate how far X can travel plus 5mm
G1 H1 X{var.maxTravel} F600 ; coarse home in the +X direction
G1 H2 X-5 F6000 ; move back 5mm
G1 X{var.maxTravel} F300 ; fine home in the +X directionI'm still getting the same behavior.
-
@gw3d3 It looks like the config tool isn't putting in the commands in the homex.g and homey.g macros to do the homing in relative mode. This works okay if the endstops are at the low end, but not the high end. It's correct in homeall.g, but not in these two. You need to at G91 before the homing of X (or Y), and G90 after. It should be:
... ; home X var maxTravel = move.axes[0].max - move.axes[0].min + 5 ; calculate how far X can travel plus 5mm G91 G1 H1 X{var.maxTravel} F600 ; coarse home in the +X direction G1 X-5 F6000 ; move back 5mm G1 H1 X{var.maxTravel} F300 ; fine home in the +X direction G90 ...
Same changes in homey.g. I've let @chrishamm know that these needs updating on the config tool. (Edit: already fixed)
Ian
-
@droftarts Thank you all for the replies.
This corrected the issue!