6-AXIS-USBCNC-GRBL
6-AXIS-USBCNC-GRBL copied to clipboard
Set machine positions for homed limit switches
Hi, When I'm homed max direction, then position is negative. i see https://github.com/robomechs/6-AXIS-USBCNC-GRBL/blob/338a3c6d5440570c0a9bc282620271bef9eeb5f2/src/limits.c#L425 and change it to: if ( !bit_istrue(settings.homing_dir_mask,bit(idx)) ) { set_axis_position = lroundf(-(settings.max_travel[idx]+settings.homing_pulloff)settings.steps_per_mm[idx]); } else { set_axis_position = lroundf(settings.homing_pulloffsettings.steps_per_mm[idx]); } and solved that problem. I don't know if it makes perfect sense?
Grbl traditionally creates a negative machine space.
You can read the details and the explanations here: https://github.com/bdring/Grbl_Esp32/wiki/Machine-Space-and-Homing