Tool offset problem with Qt

More
24 Feb 2025 14:05 - 26 Feb 2025 08:24 #322486 by Hastrh2o
Tool offset problem with Qt was created by Hastrh2o
Hi,

I'm trying to change tool offsets on the fly, in order to use a grinding wheel with two workplaces, one at the front to machine my part, and one at the back to refresh the grinding wheel with the diamond wheel. For other reasons (I have 4 axis, X, Z, U, W and two grinding wheels attached, one on X,Z and the other on U,W), I can't work with the tool diameter (since I have two different diameters).

So, I want to change from +X offset to -X offset when I work at the front or at the rear of the grinding wheel. And that's where I try to switch with G10 L1 P1 X[#5401] but it doesn't work. As it may come from my setup, I gone back to simulation sample configuration. It works in Axis simulation sample, but not in QtAxis simulation, neither in QtDragon. So it seems to be related to Qt.

This is working in Axis but isn't in QtAxis or QtDragon :
G0 G54 X0
M6T1
G43
G10 L1 P1 X10
G43 (here G54(X) is 10)
(debug,#5401) (show -10)
G10 L1 P1 X[#5401]
G43 (here G54(X) is -10)
(debug,#5401) (show 10)

This is working in QtAxis or QtDragon (double call to G10 ) :
G0 G54 X0
M6T1
G43
...
G10 L1 P1 X10
G43 (here G54(X) is still -10)
(debug,#5401) (show 10)
G10 L1 P1 X10
G43 (here G54(X) is 10)
(debug,#5401) (show -10)
G10 L1 P1 X[#5401]
G43 (here G54(X) is still 10)
(debug,#5401) (show -10)
G10 L1 P1 X[#5401]
G43 (here G54(X) is -10)
(debug,#5401) (show 10)

I don't understand why I need to call G10 twice in order it works. Since I want to inverse the value, I'm not really confident in calling twice the function...

Any idea on what's is going on ?

Regards,

Ronan
Last edit: 26 Feb 2025 08:24 by Hastrh2o.

Please Log in or Create an account to join the conversation.

More
25 Feb 2025 07:59 - 25 Feb 2025 13:23 #322563 by Hastrh2o
Replied by Hastrh2o on topic Tool offset problem with Qt
I can store #5401 value in #myvalue variable and call twice G10 L1 P1 X[#myvalue], I will try this today.
If anybody has a way to understand what happened, I would prefer.
Last edit: 25 Feb 2025 13:23 by Hastrh2o.

Please Log in or Create an account to join the conversation.

More
26 Feb 2025 06:35 #322656 by cmorley
Replied by cmorley on topic Tool offset problem with Qt
try opening Linuxcnc Status (settings tab right hand side 'status')
Look under G5x offset.
I bet that linuxcnc is using the right offset but qtdragon is reporting wrong on the offset page.
I assume you are referencing the offset page entries?

Please Log in or Create an account to join the conversation.

More
26 Feb 2025 08:23 #322669 by Hastrh2o
Replied by Hastrh2o on topic Tool offset problem with Qt
Hi,

I will check this afternoon. But since it's working after the second call at the same line, I doubt. I edit my first post to be more clear on the test I did.

Please Log in or Create an account to join the conversation.

More
26 Feb 2025 21:11 - 26 Feb 2025 21:17 #322751 by Hastrh2o
Replied by Hastrh2o on topic Tool offset problem with Qt
I ran a linuxcnc 2.9.2 instance with axis in a virtualbox. I look at linuxcnc status.

One call to G10 L1 P1 X10 and G43 works fine. g5x_offset don't move, tool_offset is changing to X10.
The same test with qtaxis needs two call to G10 and G43 in order it works.

I managed to do my offset change on the fly with a numbered variable and two calls to G10, so it's not a problem anymore for me, but I think there's a bug to look at here.
Last edit: 26 Feb 2025 21:17 by Hastrh2o.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.084 seconds
Powered by Kunena Forum