Hi,
thanks for your great job.
I’m trying to test endstop, I double check pin assignment and hw change status on esp32 pin.
I don’t thing that’s an issue, but for me doesn’t work, what I miss…
How can I configure separate enable motor for each axis?
My machine conf file at the end.
Regards
Andrea
#define MACHINENAME “4axisMotoMic”
#ifdef N_AXIS
#undef N_AXIS
#endif
#define N_AXIS 4
#define XSTEPPIN GPIONUM18 //Height
#define XDIRECTIONPIN GPIONUM17 //Height
#define YSTEPPIN GPIONUM26 //Width
#define YDIRECTIONPIN GPIONUM25 //Width
#define ZSTEPPIN GPIONUM12 //Depth
#define ZDIRECTIONPIN GPIONUM14 //Depth
#define ASTEPPIN GPIONUM23 //Rotation
#define ADIRECTIONPIN GPIONUM22 //Rotation
#define STEPPERSDISABLEPIN GPIONUM19 //Test only Height motor
#define SPINDLE_TYPE SpindleType::PWM // only one spindle at a time
#define XLIMITPIN GPIONUM39 //Height
#define YLIMITPIN GPIONUM34 //Width
#define ZLIMITPIN GPIONUM35 //Depth
#define ALIMITPIN GPIONUM36 //Rotation
评论 (3)
#2 – topogigio 于 2020-09-29
Thanks for prompt reply, Pn:X and other axes are showed when I pressed each endstop.
Btw, notting happen when motor spin and I press correspondent endstop.
#3 – bdring 于 2020-09-29
Endstops will only stop motion during homing and when used as hard limits.
#1 – bdring 于 2020-09-29
You can map up to 2 switch input per axis like…
“
C++
“#define XLIMITPIN GPIONUM17
#define X2LIMITPIN GPIONUM2
They are linked together in firmware. You will only see the X axis switch triggered in the status regardless of which switch was triggered. It is the same as wiring 2 switches to the same input assuming you wire them correctly for N.O. and N.C modes.
See this wiki page for more info
https://github.com/bdring/Grbl_Esp32/wiki/Setting-Up-Limit-Homing-Switch#machine-definition