Skip to content

Fix soft limit calculation when using G43.1#1783

Merged
c-morley merged 1 commit intoLinuxCNC:masterfrom
d2inventory:patch-1
Jul 2, 2022
Merged

Fix soft limit calculation when using G43.1#1783
c-morley merged 1 commit intoLinuxCNC:masterfrom
d2inventory:patch-1

Conversation

@d2inventory
Copy link
Copy Markdown
Contributor

As discussed in this forum thread:
https://forum.linuxcnc.org/20-g-code/44244-g43-1-dynamic-tool-length-measurement-program-exceeds-machine-maximum-on-axis?start=10#227198

When using G43.1 Tool Length Offset, Axis will wrongly display a warning about exceeding the soft limits.
This PR adds the tool offset to the limits calculation so this warning wont be displayed anymore if not needed (It still will if it actually exceeds the limit).

As discussed in this forum thread:
https://forum.linuxcnc.org/20-g-code/44244-g43-1-dynamic-tool-length-measurement-program-exceeds-machine-maximum-on-axis?start=10#227198

When using G43.1 Tool Length Offset, Axis will wrongly display a warning about exceeding the soft limits.
This PR adds the tool offset to the limits calculation so this warning wont be displayed anymore if not needed (It still will if it actually exceeds the limit).
@c-morley c-morley merged commit e51ff6e into LinuxCNC:master Jul 2, 2022
@c-morley
Copy link
Copy Markdown
Collaborator

c-morley commented Jul 2, 2022

Thank you

@andypugh
Copy link
Copy Markdown
Collaborator

andypugh commented Jul 3, 2022

Should this be carried back to 2.8?

andypugh pushed a commit that referenced this pull request Oct 2, 2023
This reverts #1783 and attempts to fix
#2646

gcodemodule.cc accurately computes the joint limits, including tool offsets.
There is no need to add the last tool loaded on after the fact before testing
However, it only computes the extents at G-code load time
And the limits check is done when the Axis run button is pressed
If the tool lengths have changed (MDI, tool length probe...) then at the
point that the run button is pressed the g-code extents are out-of-date
This patch adds a new "re-check" button to the error dialog which reloads
the G-code than checks the limits again.
See issue 2646 for more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants