G92 Not Loading On Startup in Python Interface
- mjohnston
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 2
24 Nov 2017 15:24 #102291
by mjohnston
G92 Not Loading On Startup in Python Interface was created by mjohnston
Hello all.
I think I've found a bug. Hopefully this is an alright place to talk about it.
I've been working on a custom interface, written in Python. It of course relies on the linuxcnc Python library ( API here ) for most everything to work. The issue I'm seeing is that sometimes this library does not always correctly poll the G92 and G5X (work coordinate system) offset on startup (status.g92_offset[x] returns 0.0 for all axes, same for status.g5x_offset[x]), until either a G92 command is given or the coordinate system is switched. However, the G-Code interpreter is loading the offsets properly and is using them.
The result is that the coordinates displayed in my interface do not always match the interpreter, which can be a big problem.
Has anyone else run across this and know of any solutions?
Thanks!
I think I've found a bug. Hopefully this is an alright place to talk about it.

I've been working on a custom interface, written in Python. It of course relies on the linuxcnc Python library ( API here ) for most everything to work. The issue I'm seeing is that sometimes this library does not always correctly poll the G92 and G5X (work coordinate system) offset on startup (status.g92_offset[x] returns 0.0 for all axes, same for status.g5x_offset[x]), until either a G92 command is given or the coordinate system is switched. However, the G-Code interpreter is loading the offsets properly and is using them.
The result is that the coordinates displayed in my interface do not always match the interpreter, which can be a big problem.

Has anyone else run across this and know of any solutions?
Thanks!
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 4998
- Thank you received: 1459
24 Nov 2017 16:37 #102292
by Todd Zuercher
Replied by Todd Zuercher on topic G92 Not Loading On Startup in Python Interface
You might get a better/faster response if you posted your question to the developers e-mail list.
(In other words, I don't know, but that is a good place to get in touch with the people who would.)
(In other words, I don't know, but that is a good place to get in touch with the people who would.)
Please Log in or Create an account to join the conversation.
Time to create page: 0.370 seconds