6-AXIS-USBCNC-GRBL icon indicating copy to clipboard operation
6-AXIS-USBCNC-GRBL copied to clipboard

Set machine positions for homed limit switches

Open NgocLe97 opened this issue 3 years ago • 1 comments

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?

NgocLe97 avatar Aug 25 '21 00:08 NgocLe97

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

pagabee avatar Apr 21 '22 10:04 pagabee