Tool touch-off in QTDragon

More
24 Dec 2020 14:42 #193117 by JohnnyCNC
I just switched to TTS tool holders and added a probe. Now I am in the process of changing my process and use the tool table and a tool setter to measure the tools and place the length in the table. IIRC in Axis it placed the tool length in the tool table when you used the tool-touch-off button and did not when you used the touch-off button. In QTDragon I tried the Touch-Plate button on the tool screen and I hit OK on the dialog box that comes up and it probes the plate but the value does not go into the tool-table. Should it? It might be that I just don't know how to use this.

Also, the dialog that comes up when you press the Touch-Plate button displays in white on off-white and can barely be read.

Any help would be appreciated. I will keep digging.
Thank You
John

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

More
24 Dec 2020 15:45 #193126 by JohnnyCNC
I noticed something else. I have my machine units set to inch and at the end of the probe action using the Touch-Plate button on the Tool screen it switches to Metric.

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

More
24 Dec 2020 16:22 #193134 by persei8
Replied by persei8 on topic Tool touch-off in QTDragon
QtDragon was never intended to be used with an ATC but I could certainly look into it. It would only affect the tool table when using a tool setter, not a touchplate.
As for the dialog, add the following to your stylesheet.
QDialog {
    background-color: gray;
}

QDialog QPushButton {
    width: 100px;
    height: 40px;
}
Adjust the color or any other parameters you like to suit whatever stylesheet you're using.

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

More
24 Dec 2020 22:30 #193148 by cmorley
Replied by cmorley on topic Tool touch-off in QTDragon

I noticed something else. I have my machine units set to inch and at the end of the probe action using the Touch-Plate button on the Tool screen it switches to Metric.



In 2.8 the macros for probing are in nc_files/probe/basicprobe/macros
[RS274NGC]
SUBROUTINE_PATH = ../../../../nc_files/probe/basic_probe/macros

looking at the macro for touch_plate.ngc:
o<touch_plate> sub

#<max_probe> = #<_ini[TOOLSENSOR]maxprobe>
#<search_vel> = #<_ini[TOOLSENSOR]search_vel>
#<probe_vel> = #<_ini[TOOLSENSOR]probe_vel>
#<touch_height> = #<_ini[TOOLSENSOR]touch>

(print, max_probe is #<max_probe>)
(print, search vel is #<search_vel>)
(print, probe vel is #<probe_vel>)
(print, touch height is #<touch_height>)

G21 (use metric units)
G49 (cancel tool offset)
G10 L20 P0 Z0 (clear current offsets)
G91 (switch to incremental mode)

; this section commented out for sim
;G38.2 Z[-#<max_probe>] F#<search_vel>  (probe down)
;G1 Z1.0  (go up 1 mm)
;G4 P0.5 (pause 0.5 sec.)
;G38.2 Z-2 F#<probe_vel> (probe down slower)

; this section used for sim, comment out otherwise
G1 Z-10 F#<search_vel>

G10 L20 P0 Z#<touch_height>  (store offset in offset table)
G90 (absolute distance mode)
G53 G0 Z0 (move Z up to 0)
o<touch_plate> endsub
M2

It sets metric for it's process.
I'm sure there is away to record the current units before and restore them after.

Chris

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

More
24 Dec 2020 22:41 #193149 by JohnnyCNC

QtDragon was never intended to be used with an ATC but I could certainly look into it. It would only affect the tool table when using a tool setter, not a touchplate.
As for the dialog, add the following to your stylesheet.
QDialog {
    background-color: gray;
}

QDialog QPushButton {
    width: 100px;
    height: 40px;
}
Adjust the color or any other parameters you like to suit whatever stylesheet you're using.


I will still be the "MTC" but I did want to try preset tools. The dialog looks a lot like I remember a couple of the other dialogs looking until Chris made a change. I knew the colors were controlled by style sheets but have never messed with them. I'll give it a try.

Thanks

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

More
24 Dec 2020 22:44 #193150 by JohnnyCNC

I noticed something else. I have my machine units set to inch and at the end of the probe action using the Touch-Plate button on the Tool screen it switches to Metric.



In 2.8 the macros for probing are in nc_files/probe/basicprobe/macros
[RS274NGC]
SUBROUTINE_PATH = ../../../../nc_files/probe/basic_probe/macros

looking at the macro for touch_plate.ngc:
o<touch_plate> sub

#<max_probe> = #<_ini[TOOLSENSOR]maxprobe>
#<search_vel> = #<_ini[TOOLSENSOR]search_vel>
#<probe_vel> = #<_ini[TOOLSENSOR]probe_vel>
#<touch_height> = #<_ini[TOOLSENSOR]touch>

(print, max_probe is #<max_probe>)
(print, search vel is #<search_vel>)
(print, probe vel is #<probe_vel>)
(print, touch height is #<touch_height>)

G21 (use metric units)
G49 (cancel tool offset)
G10 L20 P0 Z0 (clear current offsets)
G91 (switch to incremental mode)

; this section commented out for sim
;G38.2 Z[-#<max_probe>] F#<search_vel>  (probe down)
;G1 Z1.0  (go up 1 mm)
;G4 P0.5 (pause 0.5 sec.)
;G38.2 Z-2 F#<probe_vel> (probe down slower)

; this section used for sim, comment out otherwise
G1 Z-10 F#<search_vel>

G10 L20 P0 Z#<touch_height>  (store offset in offset table)
G90 (absolute distance mode)
G53 G0 Z0 (move Z up to 0)
o<touch_plate> endsub
M2

It sets metric for it's process.
I'm sure there is away to record the current units before and restore them after.

Chris


I did get probing working quite well with my 3D probe. I did see the macros you pointed me to. I'll have a look at this and tweak for my purposes. Just as much a learning experience as getting it to do what I want.
Thanks

And Merry Christmas to all.

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

More
25 Dec 2020 22:25 #193196 by JohnnyCNC
The dialogs displays are fixed with the addition of the code for QDialog and QDialog QPushButton. I have been looking at the macros and trying to get a handle on how this all works. I noticed that the Sensor location specified on the Offsets screen is in MM even though the machine is set to use inches as are some other values that are marked with MM. I would really like to get competent enough with making changes to help with this project. I normally program in C# using Visual Studio so I am sure I will get there at some point. It would be nice for Dragon to be as easy to setup and use as Axis.

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

More
27 Dec 2020 02:17 #193260 by JohnnyCNC

"In 2.8 the macros for probing are in nc_files/probe/basicprobe/macros"

I did some digging and found that QTDragon doesn't use the macros for the probing that happens on the Offsets and Tool screens. It is done in the Python code in qtdragon_handler.py file. I'm going to attempt to make a change so that any values that are shown, entered on the screen or in the .ini file are treated at units in the specified by LINEAR_UNITS in the .ini file. Having some values in MM and others in Inches is confusing. If successful I'll have to learn how to contribute changes.

The macros are used for the probing done on the Probe screen. This is a great learning exercise.

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

More
27 Dec 2020 05:14 #193269 by cmorley
Replied by cmorley on topic Tool touch-off in QTDragon
Sorry I miss understood. I'm not up on the probing code.
I have recently been working on versa probing code a bit.
I don't think I included the tool probe stuff as it requires remap code.

keep us posted!

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

More
27 Dec 2020 10:12 #193279 by seebaer1976

"In 2.8 the macros for probing are in nc_files/probe/basicprobe/macros"

I did some digging and found that QTDragon doesn't use the macros for the probing that happens on the Offsets and Tool screens. It is done in the Python code in qtdragon_handler.py file. I'm going to attempt to make a change so that any values that are shown, entered on the screen or in the .ini file are treated at units in the specified by LINEAR_UNITS in the .ini file. Having some values in MM and others in Inches is confusing. If successful I'll have to learn how to contribute changes.

The macros are used for the probing done on the Probe screen. This is a great learning exercise.


Hi,

have the same problem that I don't get my manual tool change macro to work properly.
the marco calculates and the qtdragon_handler.py calculates again and this gives me a value that is twice as large.


Unfortunately I can't get any further because I can't program python.

qtdragon - new tool length after a manual tool change

best regards

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

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