I am working on a machine header file that will allow for a XZA CNC. Only 3 axes, but one of them rotating. It loads to the ESP32, but only shows 2 axes X and Z.
If I define a 4 axes CNC XYZA, then it works as expected. What am I missing?
This is the XZA.h file
#define MACHINE_NAME “XZA”
#define N_AXIS 3
#define XSTEPPIN GPIONUM12
#define XDIRECTIONPIN GPIONUM14
#define ASTEPPIN GPIONUM26
#define ADIRECTIONPIN GPIONUM15
#define ZSTEPPIN GPIONUM27
#define ZDIRECTIONPIN GPIONUM33
#define XLIMITPIN GPIONUM17
#define ALIMITPIN GPIONUM4
#define ZLIMITPIN GPIONUM34
评论 (2)
#2 – rlwoodjr 于 2021-01-19
Thanks. I will give that a try.
#1 – bdring 于 2021-01-19
You cannot skip an axis. If you want XZ and A you must have
#define N_AXIS 4You do not have to define anything for the Y axis. It will create a virtual axis for that. You can pretend it does not exist.