Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SET_ORIGIN_AT_HOME_POS and Soft Limits #541

Closed
Paciente8159 opened this issue Oct 19, 2023 Discussed in #540 · 1 comment
Closed

SET_ORIGIN_AT_HOME_POS and Soft Limits #541

Paciente8159 opened this issue Oct 19, 2023 Discussed in #540 · 1 comment
Labels
bug Something isn't working core: HAL core: HAL, pinouts, boards, tools

Comments

@Paciente8159
Copy link
Owner

Discussed in #540

Originally posted by mvackel October 19, 2023
After compiling with the option "SET_ORIGIN_AT_HOME_POS" (in "cnc_config.h" the jog controls are not working.
I set this option to zero the machine coordinates after homing (because of inverted limit switches, $23). This way, all machine coordinates will be negative (as suggested in many places). This is working ok, as after homing UGS displays correctly all coordinates as zero (... shouldn't be the negative homing pull-off ($27), as in GRBL?).

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?
If this option is disable (as the default, with #define commented), the machine homing sets the axis max travel limits specified ($13x) and soft limits and jogs work normally.

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....

@Paciente8159 Paciente8159 added bug Something isn't working core: HAL core: HAL, pinouts, boards, tools labels Oct 19, 2023
Paciente8159 added a commit that referenced this issue Oct 20, 2023
@Paciente8159
Copy link
Owner Author

Fixed with #542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core: HAL core: HAL, pinouts, boards, tools
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant