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
gmoccapy/qtdragon: preview not respecting WCS other than G54 on file load/reload #2753
Comments
Not sure what is going on here. Maybe this is dependent on the installed opengl version or something? |
But if you run the program, the spiral is machined around the new origin? |
Yes, the machine moves correctly. It's just the preview that is off. |
for gmoccpy this seems to get called from gremlin.py (if I interpret my print statment right )
|
Maybe @gmoccapy has an idea... |
I've done some pretty weird debugging on this topic that eventually lead me to this log output:
So basically when loading or reloading the interpreter is initialized via Therefore it's drawn in So basically, it's doing what it should - isn't it? |
IMHO not, Loading a file should never been followed by the execution of the default INI code. Norbert |
If I had to guess.. I wonder if there is a race between setting the initcode and loading the file? |
Interesting, thanks for looking into this.
I agree. I would expect 'startup code' to be executed on starting linuxcnc
It certainly looks like a race condition to me but why would we rerun the initcode on a file reload in the first place? |
You're probably right, but when looking at the code for loading a file both in axis and in gmoccapy, it always loading at least the configured default initcode: https://github.com/LinuxCNC/linuxcnc/blame/master/src/emc/usr_intf/gremlin/gremlin.py#L330 Both sources don't seem to have changed lately in the relevant sections. For axis, there are some more gcodes appended based on the current linuxcnc stat: ( This entire part from axis is missing as far as i understand in gremlin. |
This is running 2.9.1 and master.
4: run mdi-command 'g55'
5: run mdi-command 'g10 l20 p0 x100'
6: reload the ngc file.
What I expect it that the preview shows the center of the spiral in the new origin of g55 (ie moved 100mm to the right) however the preview only shows the new origin but does not move the preview:
[edit] same in qtdragon
This used to work in previous versions (2.9pre) and still works in 'axis'.
The text was updated successfully, but these errors were encountered: