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

Fix reset from arc #1011

Merged
merged 1 commit into from
Sep 2, 2023
Merged

Fix reset from arc #1011

merged 1 commit into from
Sep 2, 2023

Conversation

MitchBradley
Copy link
Collaborator

If an arc is in progress when a feedhold followed by a ctrl-x reset comes in, the next move after the reset is wrong. For example:

G0 X0 Y0
G3 X0 Y0 I-100 J0 F500
!
CTRL-X
$J=G91 Z0.1 F100

Instead of the jog going only in the Z direction, there will be motion in X and Y too. The problem is caused by incorrect synchronization of the GCode position after the aborted arc. The code incorrectly sets the GCode position to the target of the arc, as if the arc had completed, instead of setting it to the actual position that existed at the time of the hold+reset. (It is possible that the same problem might occur without the feedhold, only the reset. In any case, this patch works in both scenarios.)

If an arc is in progress when a feedhold followed by
a ctrl-x reset comes in, the next move after the reset
is wrong.  For example:

G0 X0 Y0
G3 X0 Y0 I-100 J0 F500
!
CTRL-X
$J=G91 Z0.1 F100

Instead of the jog going only in the Z direction, there
will be motion in X and Y too.  The problem is caused
by incorrect synchronization of the GCode position after
the aborted arc.  The code incorrectly sets the GCode position
to the target of the arc, as if the arc had completed,
instead of setting it to the actual position that existed
at the time of the hold+reset.  (It is possible that the
same problem might occur without the feedhold, only the
reset.  In any case, this patch works in both scenarios.)
@MitchBradley MitchBradley merged commit 4faae26 into Devt Sep 2, 2023
24 checks passed
@MitchBradley MitchBradley deleted the ResetFromArc branch September 2, 2023 20:17
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.

1 participant