makerbase-mks / MKS-DLC32-FIRMWARE

The source code of MKS DLC32
GNU General Public License v3.0
69 stars 50 forks source link

Missing Config.h Statements/ Irregular homing need #26

Open bdizzle01 opened 1 year ago

bdizzle01 commented 1 year ago

I've noticed there are statements in the general GRBL config.h file examples that aren't present in the MKS branch of GRBL for the DLC32. I assume it would be possible to just copy and past those statements over into the MKS config file and then make sure it will compile properly. Specifically the code section I am wanting to add is in regards to the homing cycles, as I need my laser to Just home the x axis and then I want the Y axis to just be set to zero (rotary, so no real home) and no Z axis.

define HOMING_CYCLE_0 (1<<X_AXIS) // REQUIRED: First move X home

//#define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS)) // OPTIONAL: Then move X,Y at the same time. // #define HOMING_CYCLE_2 // OPTIONAL: Uncomment and add axes mask to enable

Assuming Y axis is active but not homed, would it just set it to zero then since it has not home switch? Plan was to also put in (I believe its no_pin) for the y home switch as well. Or would it be easier to just setup an optical interrupt switch just for homing the Y even though its position is irrelevant.