Category: Qtvcp
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