Error: in file macro line 22: M280: insufficient axes homed
-
Hi,
I'm getting this error when i call home allWhen I call speartly, x, y, and z work fine, but when I call all, I get this error. If you have any ideas, I would be happy to try them.
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v3.5.4 on Mon Aug 05 2024 02:40:56 GMT+0400 (Georgia Standard Time); increase Z
G91 ; relative positioning
G1 H2 Z5 F6000 ; move Z relative to current position to avoid dragging nozzle over the bed
G90 ; absolute positioning; home XY
var xTravel = move.axes[0].max - move.axes[0].min + 5 ; calculate how far X can travel plus 5mm
var yTravel = move.axes[1].max - move.axes[1].min + 5 ; calculate how far Y can travel plus 5mm
G91 ; relative positioning
G1 H1 X{var.xTravel} Y{-var.yTravel} F1200
G90 ; absolute positioning; home Z
; NOTE: The following XY coordinates use values from the probe grid defined in the next section
var xCenter = move.compensation.probeGrid.mins[0] + (move.compensation.probeGrid.maxs[0] - move.compensation.probeGrid.mins[0]) / 2 - sensors.probes[0].offsets[0]
var yCenter = move.compensation.probeGrid.mins[1] + (move.compensation.probeGrid.maxs[1] - move.compensation.probeGrid.mins[1]) / 2 - sensors.probes[0].offsets[1]
G1 X{var.xCenter} Y{var.yCenter} F6000 ; go to bed centre
G30 ; probe the bed -
@zorbega what kinematics does the machine use, and which line of homeall.g is line 22?
-
@dc42 I am using core xy. when i using home all , after home z shows this error
-
@zorbega this is my home all
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v3.5.4 on Mon Aug 05 2024 02:40:56 GMT+0400 (Georgia Standard Time); increase Z
G91 ; relative positioning
G1 H2 Z5 F6000 ; move Z relative to current position to avoid dragging nozzle over the bed
G90 ; absolute positioning; home XY
var xTravel = move.axes[0].max - move.axes[0].min + 5 ; calculate how far X can travel plus 5mm
var yTravel = move.axes[1].max - move.axes[1].min + 5 ; calculate how far Y can travel plus 5mm
G91 ; relative positioning
G1 H1 X{var.xTravel} Y{-var.yTravel} F1200
G90 ; absolute positioning; home Z
; NOTE: The following XY coordinates use values from the probe grid defined in the next section
var xCenter = move.compensation.probeGrid.mins[0] + (move.compensation.probeGrid.maxs[0] - move.compensation.probeGrid.mins[0]) / 2 - sensors.probes[0].offsets[0]
var yCenter = move.compensation.probeGrid.mins[1] + (move.compensation.probeGrid.maxs[1] - move.compensation.probeGrid.mins[1]) / 2 - sensors.probes[0].offsets[1]
(LINE22) G1 X{var.xCenter} Y{var.yCenter} F6000 ; go to bed centre
G30 ; probe the bed -
@zorbega said in Error: in file macro line 22: M280: insufficient axes homed:
G1 H1 X{var.xTravel} Y{-var.yTravel} F1200
On a CoreXY machine this line will home only one of X and Y. See https://docs.duet3d.com/en/User_manual/Machine_configuration/Configuration_coreXY#homeallg-file.
-
@dc42 This error showed up after correcting the x-homing position. printer subject printed in mirror and i fixed this but when i am trying to print, shows this error
-
@zorbega please follow the link I posted in my previous reply and correct your homeall.g fie.
-
@dc42 Thanks I fixed
-
-
-
Not a solution to this issue, but a recommendation. If you home X and Y are the same code copied from the homex.g and homey.g, I think a better solution is to use an M98 and call homeX .g and home.g directly. If you do this, then some time in the future decide to make a change to homeX or homey, you'll only need to change the code in one place. I learned this one the hard way.
Mike
-
@mikeabuilder Thanks