Closed TheophileLebrun closed 3 years ago
Hi @TheophileLebrun,
Can you post your axis definition (lines 50 to 84 of config.h) and the homing configuration (lines 171 to 199 of the same file config.h) ?
@++;
Gauthier.
Hello Gauthier,
Thanks for your reply, i did not compile the hex from source, i took the hex file from the github repo latest release.
I can try to compile from source to see if it changes the situation.
Cordialement, Theo
On Fri, 2 Oct 2020, 16:00 Gauthier Brière, notifications@github.com wrote:
Hi @TheophileLebrun https://github.com/TheophileLebrun,
Can you post your axis definition (lines 50 to 84 of config.h) and the homing configuration (lines 171 to 199 of the same file config.h) ?
@++; Gauthier.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fra589/grbl-Mega-5X/issues/147#issuecomment-702586341, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHEPT5V6KPISP3OOV4ZJW3SIWCCLANCNFSM4SBFWCJA .
Hello Theo,
I think I understand your problem !
The latest release available on Github was not the really latest one. In fact, I stopped to give generic HEX file because too many different configurations would be necessary and because there is too many problems like yours with it.
So, I have just deleted the HEX files still present on Github repo. I'm sorry, I should have done it a long time ago.
The latest up to date version is only available from the main grbl-Mega-5X github page.
The Wiki documentation to compile it yourself is here : https://github.com/gnea/grbl/wiki/Compiling-Grbl
For your need, you have to define in config.h:
line 53 & 54:
#define N_AXIS 4 // Number of axes
#define N_AXIS_LINEAR 3 // Number of linears axis
line 172 to 175:
#if N_AXIS == 4 // 4 axis : homing
#define HOMING_CYCLE_0 (1<<AXIS_3) // Home Z axis first to clear workspace.
#define HOMING_CYCLE_1 (1<<AXIS_1) // Home X axis
#define HOMING_CYCLE_2 (1<<AXIS_2) // Home Y axis
=> Suppress the line for homing the 4th axis since you don't have limit switch on it. If you leave it, grbl will timeout trying to find your 4th axis limit switch!
@++;
Gauthier.
Hello Gauthier,
I followed your steps and it is now working like a charm :)
Thanks a lot! Cordialement, Theo
Hello,
I flashed the latest released hex file into a mega/ramps1.4, connected stepper drivers for X,Y,Z,A axis and switches for axis X,Y,Z.
I can jog all axis without any issues, I oriented all axis in the positive direction facing the switches, but when i trigger the homing sequence, only the Z axis performs it. It then does nothing until the homing sequence times out.
Very disturbingly, on a couple occasions while trying to perform the homing sequence, i saw the X axis going toward the negative direction and even saw the A axis rotating. I cannot reproduce it systematically,
I replaced the arduino mega, but the behavior stays the same
the $? shows that my switches are well connected and only showup in the report when pressed.
Would anyone know from where the issue could be coming from?
Best regards Theo
Grbl 1.1l ['$' for help]