Skip to content

Changed Compiler options

Huub Buis edited this page Oct 3, 2021 · 9 revisions

Summary of the changed compiler options in the config.h file.


Enabled options:

Allowing to home X, Y and Z axis separately.
#define HOMING_SINGLE_AXIS_COMMANDS // Default disabled. Uncomment to enable.


The homing sequence on a lathe (first X than Z) differs from a milling machine (first Z, than X,Y). The homing sequence is set to
#define HOMING_CYCLE_0 (1<<X_AXIS) // Lathe: First home X
#define HOMING_CYCLE_1 (1<<Z_AXIS) // Lathe: Then home Z


Electrical interference caused by powering the lathe on and off (starting the spindle motor), can trigger the limit switches. By enabling GRBL software debounce, false triggers can be prevented.
#define ENABLE_SOFTWARE_DEBOUNCE // Default disabled. Uncomment to enable.


Added options:

Lichuan A4 servo's, in step/dir mode, require a delay of at least 100 ms between the motor enable signal and the first step pulse. After stopping, they require time to completely stop the motor. The delay (ms) is linked to grbl setting $1 that is already in use for compiler option #define STEP_PULSE_DELAY #define STEP_ENABLE_DELAY // Step enable and disable delay in milliseconds. Used for running servo's in step-dir mode (Lichuan) // default enabled


Disabled options:

None