Out of the blue --> Home X doesn't work
-
Hi there,
As the title suggests, my Duet 6HC suddenly gives me this error message when i try to home x - or home all.
The X axis runs fine otherwise, i can move the print head and print just fine.
When I run the 'Home X' it jogs 2 small moves to the in X+ direction, but nothing else.
Here is the error i get from the console:
G28 X Error: Bad command: homex.g Error: Bad command: called to home the X axis Error: Bad command: generated by RepRapFir Error: Bad command: mware Confi Error: Bad command: guration Tool v3.3.16 on Sat Jul 01 2023 14:29:49 Error: Bad command: G Error: Bad command: MT+0200 (CEST)
Any fixes for this?
Would also love to know what happened.Best,
Søren -
undefined sbNielsen marked this topic as a question
-
@sbNielsen Check the homex.g file in your sys directory. It sounds like the comment character ";" has somehow been removed from some of the lines in that file. Post the contents of the file here for folks to check.
-
@gloomyandy '
Nothing changed on the homex.g file.
Looks like this:homex.g called to home the X axis generated by RepRapFirmware Configuration Tool v3.3.16 on Sat Jul 01 2023 14:29:49 GMT+0200 (CEST) G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position G1 H1 X-2015 F4500 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X5 F6000 ; go back a few mm G1 H1 X-1015 F360 ; move slowly to X axis endstop once more (second pass) G1 H2 X5 F6000 ; go back a few mm G1 H2 Z-5 F6000 ; lower Z again G90 ; absolute positioning
-
@sbNielsen You're missing semicolons in front of some of the comment lines it should look like this...
;homex.g ;called to home the X axis ;generated by RepRapFirmware Configuration Tool v3.3.16 on Sat Jul 01 2023 14:29:49 GMT+0200 (CEST) G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position G1 H1 X-2015 F4500 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X5 F6000 ; go back a few mm G1 H1 X-1015 F360 ; move slowly to X axis endstop once more (second pass) G1 H2 X5 F6000 ; go back a few mm G1 H2 Z-5 F6000 ; lower Z again G90 ; absolute positioning
Note the ";" in front of some of the lines.
If your homey.g and homez.g files are not generating errors, compare them against your homex.g file and check those comment lines.