-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
'Run from here' not working as expected in Axis on 2.9.1 #2771
Comments
Are you selecting the line before 'right clicking'? If not - I think it
starts the program from the beginning..
sam
…On Wed, Dec 6, 2023 at 12:21 PM Collin McRann ***@***.***> wrote:
Here are the steps I follow to reproduce the issue:
1. Open a gcode file in Axis
2. Get XYZ homed
3. Scroll through the gcode in the code window to find an arbitrary
point, right click and select 'Run from here'
This is what I expected to happen:
The machine re-positions the spindle and runs from the selected line of
gcode
This is what happened instead:
The code runs from the beginning of the gcode file
It worked properly before this:
I noticed the behavior start when I switched from LinuxCNC 2.8.4 to 2.9.1
The same behavior is seen in 2.9.1 Axis_mm in sim running inside a virtual
machine
Information about my hardware and software:
- I am using this user interface AXIS
- I am using this interface hardware MESA 7i76 with a 7i92 interface
card.
- The issue is also present in sim Axis_mm
—
Reply to this email directly, view it on GitHub
<#2771>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHRGQX74GXFSIRX4WYUUHTYICZRJAVCNFSM6AAAAABAJZ4RWKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDSMJTG42TANQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I see the same behavior if I select the line and right click 'Run from here' or if I just right click and hit 'Run from here' on the line. it goes back to the beginning. |
It appears to be caused by the file being reloaded and having the program_start_line reset from commit bc9a79d |
Yes, if iI recall correctly, the idea there was for the code to be reloaded when the user clicks on the new 'Re-Check' button on the limit violations popup and not force a reload when running the file.
|
Ah, no. I just retested the issue. |
Maybe we could check the value of 'program_start_line':
|
That change should only reload the file if the "Re-check" buttton is pressed. Is there something wrong with my logic? |
TBH I did not notice a recheck button. I ran the axis_mm sim and just did a run from line and the file reloaded. |
The change referenced ( bc9a79d ) should only be activated in cases where the limit check fails, and then the re-check button is pressed. Is it possible for someone to run a git bisect to see when the behaviour changed? (or just choose a point in the timeline prior to my change, to make sure it's my fault) |
run_warn return 0 by default (i.e. the non-warning case) and that triggers a reload. Also there is #2490 |
I can have a look tomorrow morning if no one else has by then. |
add "if res == 0: break" or replace "if res == 2: break" with "if res in [0, 2]: break" or something like that. |
And this, kids, is why I shouldn't be allowed anywhere near software. Bother! It's an easy fix but I think it means a 2.9.2 release, and that's rather more work than the fix. |
added "if res == 0: break", and it seems to fix the issue on my end. |
Confirming that this issue first appears in bc9a79d. |
OK, suggested fix tested and implemented. |
Here are the steps I follow to reproduce the issue:
This is what I expected to happen:
The machine re-positions the spindle and runs from the selected line of gcode
This is what happened instead:
The code runs from the beginning of the gcode file
It worked properly before this:
I noticed the behavior start when I switched from LinuxCNC 2.8.4 to 2.9.1
The same behavior is seen in 2.9.1 Axis_mm in sim running inside a virtual machine
Information about my hardware and software:
The text was updated successfully, but these errors were encountered: