SET_ORIGIN_AT_HOME_POS and Soft Limits #540
-
After compiling with the option "SET_ORIGIN_AT_HOME_POS" (in "cnc_config.h" the jog controls are not working. The problem is that the jog commands do not work if the soft limits ($20) are enabled. If set $20 to zero, disabling soft limits, jog commands work normally. It seems that uCNC doens't allow negative machine coordinates. Shouldn't this be compatible with GRBL, allowing negative machine coordinates? The comment in file "cnc_config.h" related to this #define seems to be compatible to GRBL but the soft limits are not working as expected. Maybe I'm missing something.... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This was just by looking at the code (I did not had a chance to test it yet), but I believe this is a bug caused by the logic in boundries check with option SET_ORIGIN_AT_HOME_POS. Try this please. Open src/hal/kinematic/kinematic_cartesian.c and go to line 164 . Please let me know if it fixes the issue. |
Beta Was this translation helpful? Give feedback.
This was just by looking at the code (I did not had a chance to test it yet), but I believe this is a bug caused by the logic in boundries check with option SET_ORIGIN_AT_HOME_POS. Try this please.
Open src/hal/kinematic/kinematic_cartesian.c and go to line 164 .
Replace this:
float value = !(g_settings.homing_dir_invert_mask & (1 << i)) ? -axis[i] : axis[i];
By this
float value = !(g_settings.homing_dir_invert_mask & (1 << i)) ? axis[i] : -axis[i];
Please let me know if it fixes the issue.
Once again thank you for reporting this.