qtDragon toolchange and toollength setting
18 Nov 2021 12:58 - 18 Nov 2021 13:06 #226859
by ikkuh
qtDragon toolchange and toollength setting was created by ikkuh
Machine is homed, G54 exists and everything works.
Using latest LinuxCNC from builtbot. Working probe and working toolsetter and even a touchplate.
qt.ini has line
DISPLAY = qtvcp -d qtdragon
Doing a tool change using the M61 Qn button (selecting a tool in the tool tab)
Nothing happens, no tool measurement
Doing a M6Tn in the MDI window
Message dialog appears for a manueal toolchange, click OK
Then LinuxCNC hangs and waits for something I guess... Noithing happens and I have to use the ESCAPE key to get LinuxCNC responding again.
after using ESC key multiple times:
For your information, tool probing in VersaProbe window works as it should.
LinuxCNC version and startup messages (with qtvcp debug on)
LINUXCNC - 2.9.0-pre0-5037-g5c3942cc4
Using latest LinuxCNC from builtbot. Working probe and working toolsetter and even a touchplate.
qt.ini has line
DISPLAY = qtvcp -d qtdragon
Doing a tool change using the M61 Qn button (selecting a tool in the tool tab)
Warning: Spoiler!
2021-11-18 13:43:42,978 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - original value: 2021-11-18 13:43:42,978 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - >>> setData() role = 10 2021-11-18 13:43:42,978 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - >>> setData() column() = 0 2021-11-18 13:43:42,978 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - Text: , Row: 6, Column: 0 2021-11-18 13:43:43,898 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - Text: , Row: 5, Column: 0 2021-11-18 13:43:45,043 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - original value: 2021-11-18 13:43:45,043 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - >>> setData() role = 10 2021-11-18 13:43:45,043 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - >>> setData() column() = 0 2021-11-18 13:43:45,043 - QTvcp.QTVCP.WIDGETS.TOOL_OFFSETVIEW - DEBUG - Text: , Row: 5, Column: 0 2021-11-18 13:43:46,469 - QTvcp.QTVCP.QT_ACTION - DEBUG - CALL_MDI Command: M61 Q3 G43
Nothing happens, no tool measurement
Doing a M6Tn in the MDI window
Message dialog appears for a manueal toolchange, click OK
Warning: Spoiler!
021-11-18 13:45:17,355 - QTvcp.QTVCP.WIDGETS.GCODE_EDITOR - DEBUG - Line changed: 94 2021-11-18 13:45:17,355 - QTvcp.QTVCP.WIDGETS.MDI_LINE - DEBUG - Ext line selected: M6T1, ~/.axis_mdi_history 2021-11-18 13:45:20,432 - QTvcp.QTVCP.QT_ACTION - DEBUG - CALL_MDI Command: M6T1 2021-11-18 13:45:20,459 - QTvcp.QTVCP.WIDGETS.GCODE_EDITOR - DEBUG - Line changed: 98 2021-11-18 13:45:20,459 - QTvcp.QTVCP.WIDGETS.MDI_LINE - DEBUG - Ext line selected: , ~/.axis_mdi_history 2021-11-18 13:45:33,260 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Button pressed is: &OK 2021-11-18 13:45:33,260 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Saving ToolChangeDialog-geometry data from widget to file. 2021-11-18 13:45:33,260 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Button pressed is: &OK 2021-11-18 13:45:33,261 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Saving ToolChangeDialog-geometry data from widget to file.
Then LinuxCNC hangs and waits for something I guess... Noithing happens and I have to use the ESCAPE key to get LinuxCNC responding again.
after using ESC key multiple times:
Warning: Spoiler!
2021-11-18 13:47:20,215 - QTvcp.QTVCP.WIDGETS.GCODE_EDITOR - DEBUG - Line changed: 90 2021-11-18 13:47:20,215 - QTvcp.QTVCP.WIDGETS.MDI_LINE - DEBUG - Ext line selected: m6 t2, ~/.axis_mdi_history 2021-11-18 13:47:26,429 - QTvcp.QTVCP.WIDGETS.GCODE_EDITOR - DEBUG - Line changed: 98 2021-11-18 13:47:26,429 - QTvcp.QTVCP.WIDGETS.MDI_LINE - DEBUG - Ext line selected: , ~/.axis_mdi_history
For your information, tool probing in VersaProbe window works as it should.
LinuxCNC version and startup messages (with qtvcp debug on)
LINUXCNC - 2.9.0-pre0-5037-g5c3942cc4
Last edit: 18 Nov 2021 13:06 by ikkuh. Reason: this stupid forum editor is driving me crazy
Please Log in or Create an account to join the conversation.
18 Nov 2021 13:13 #226861
by cmorley
Replied by cmorley on topic qtDragon toolchange and toollength setting
Can you post your config files?"
Please Log in or Create an account to join the conversation.
18 Nov 2021 13:20 - 18 Nov 2021 13:20 #226862
by ikkuh
Replied by ikkuh on topic qtDragon toolchange and toollength setting
They are generated from pncconf. But sure I will attach them.Can you post your config files?"
Attachments:
Last edit: 18 Nov 2021 13:20 by ikkuh.
Please Log in or Create an account to join the conversation.
18 Nov 2021 19:37 #226910
by Flyer007
Replied by Flyer007 on topic qtDragon toolchange and toollength setting
Hmmmm......there is a few things I see interesting,
qtNew.ini file
1. not using the qtdragon.pref file
2. don't have the macro's folder path
3. Don't list [PROBE] section
4. You pull in the qtdragon_postgui.hal but you also have the tool change commands in the qtNew.hal
I think #4 is most likely the issue, As when you are calling the M6 it can't give you the appropriate tool change popup dialouge box.
I would comment out the qtDragon_postgui.hal load in the qtNew.ini and test.
qtNew.ini file
1. not using the qtdragon.pref file
2. don't have the macro's folder path
3. Don't list [PROBE] section
4. You pull in the qtdragon_postgui.hal but you also have the tool change commands in the qtNew.hal
I think #4 is most likely the issue, As when you are calling the M6 it can't give you the appropriate tool change popup dialouge box.
I would comment out the qtDragon_postgui.hal load in the qtNew.ini and test.
Please Log in or Create an account to join the conversation.
18 Nov 2021 19:59 #226914
by ikkuh
I do get the proper dialog box. If I load the halmanualtoolchange module myself I get a warning and a very simple dialogbox. So it does work. Linuxcnc just stalls after clicking ok in the dialogbox.
I purged and removed LinuxCNC today and installed a totally fresh set of files. And it still doesnot work at all. Could it be that the version I use is too new? Maybe this whole toolchanging just doesn't work with pre2.9 I noticed that lots of files changed location and nowhere is that documented.
Thanks for taking the time (again) to look into this, it is very annoying to spend my time on this, I want to make chips and dust. I am about to go back to gmoccapy, that works good.
Replied by ikkuh on topic qtDragon toolchange and toollength setting
As I mentioned before, it is a pncconf configuration. When I ask everybody is adamant that toolchangelength measurement should work. But nowhere does is say how.Hmmmm......there is a few things I see interesting,
qtNew.ini file
1. not using the qtdragon.pref file
2. don't have the macro's folder path
3. Don't list [PROBE] section
4. You pull in the qtdragon_postgui.hal but you also have the tool change commands in the qtNew.hal
I think #4 is most likely the issue, As when you are calling the M6 it can't give you the appropriate tool change popup dialouge box.
I would comment out the qtDragon_postgui.hal load in the qtNew.ini and test.
I do get the proper dialog box. If I load the halmanualtoolchange module myself I get a warning and a very simple dialogbox. So it does work. Linuxcnc just stalls after clicking ok in the dialogbox.
I purged and removed LinuxCNC today and installed a totally fresh set of files. And it still doesnot work at all. Could it be that the version I use is too new? Maybe this whole toolchanging just doesn't work with pre2.9 I noticed that lots of files changed location and nowhere is that documented.
Thanks for taking the time (again) to look into this, it is very annoying to spend my time on this, I want to make chips and dust. I am about to go back to gmoccapy, that works good.
Please Log in or Create an account to join the conversation.
18 Nov 2021 20:46 #226917
by Flyer007
Replied by Flyer007 on topic qtDragon toolchange and toollength setting
I am finishing a 3 axis mill right now using qtDragon_hd as gui.
Using 2.9pre from buildbot
Used pcconf to build base machine.
Followed documentation to change .ini to qtdragon requirements
Left the axis tool change dialouge over the QTpostgui one since it worked
using the basic probe screen
I can t99 m6 q43 in midi to prompt for a probe load. (M61 btn doesn't do offsets)
Probe in probe screen what I want and auto zero.
Then midi a t# m6 q43 to load whichever tool with offset in tool table I want (since I don't have tool sensor or plate)
So it is working in pre2.9
I will get my files up later as I am away from machine.
Using 2.9pre from buildbot
Used pcconf to build base machine.
Followed documentation to change .ini to qtdragon requirements
Left the axis tool change dialouge over the QTpostgui one since it worked
using the basic probe screen
I can t99 m6 q43 in midi to prompt for a probe load. (M61 btn doesn't do offsets)
Probe in probe screen what I want and auto zero.
Then midi a t# m6 q43 to load whichever tool with offset in tool table I want (since I don't have tool sensor or plate)
So it is working in pre2.9
I will get my files up later as I am away from machine.
Please Log in or Create an account to join the conversation.
18 Nov 2021 21:13 #226920
by ikkuh
Replied by ikkuh on topic qtDragon toolchange and toollength setting
Ok, sounds good. Would love to see your files. Thanks for your troubles.I am finishing a 3 axis mill right now using qtDragon_hd as gui.
Using 2.9pre from buildbot
Used pcconf to build base machine.
Followed documentation to change .ini to qtdragon requirements
Left the axis tool change dialouge over the QTpostgui one since it worked
using the basic probe screen
I can t99 m6 q43 in midi to prompt for a probe load. (M61 btn doesn't do offsets)
Probe in probe screen what I want and auto zero.
Then midi a t# m6 q43 to load whichever tool with offset in tool table I want (since I don't have tool sensor or plate)
So it is working in pre2.9
I will get my files up later as I am away from machine.
Please Log in or Create an account to join the conversation.
18 Nov 2021 22:52 #226929
by Flyer007
Replied by Flyer007 on topic qtDragon toolchange and toollength setting
Ok, so here is the complete folder/s of my current machine, minus the screens to reduce space.
Note: Work in progress troubleshooting a vistacnc PS4 MPG so some default pcconf items have been commented out.
Note: Work in progress troubleshooting a vistacnc PS4 MPG so some default pcconf items have been commented out.
Please Log in or Create an account to join the conversation.
19 Nov 2021 08:03 #226959
by cmorley
Replied by cmorley on topic qtDragon toolchange and toollength setting
So looking at these INI files, neither have remap entries in them.
I think you two have talking of two different types of tool probing.
If you want auto tool probing (automatically move tool to probe and measure it when ever a tool change is requested), you need remap entries in the INI.
For instance in GMoccapy this describes what needed:
linuxcnc.org/docs/devel/html/gui/gmoccap...i_file_modifications
QtDragon would need similar entries
I think you two have talking of two different types of tool probing.
If you want auto tool probing (automatically move tool to probe and measure it when ever a tool change is requested), you need remap entries in the INI.
For instance in GMoccapy this describes what needed:
linuxcnc.org/docs/devel/html/gui/gmoccap...i_file_modifications
QtDragon would need similar entries
The following user(s) said Thank You: Flyer007
Please Log in or Create an account to join the conversation.
19 Nov 2021 12:25 #226973
by ikkuh
Replied by ikkuh on topic qtDragon toolchange and toollength setting
Weird stuff going on. Comparing my machine with the files Flyer sent.Flyer:
SUBROUTINE_PATH = /home/mill/linuxcnc/nc_files/probe/basic_probe/macros/Does not exist, fresh 2.9pre buildbot version (and NO I am not forgetting his home dir name)Me:
SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/examples/probe/basic_probe/macros/
Does exist.
I added the M6 rules[RS274NGC]PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/examples/probe/basic_probe/macros/
I readded in .hal the
# ---manual tool change signals---
loadusr -W hal_manualtoolchange
net tool-change-request iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-change-confirmed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
I even changed the probe line in .ini[PROBE]#USE_PROBE = versaprobeUSE_PROBE = basicprobe
And I get same results. Namely nothing, only that changed is that the 'old' style dialog box for a manual toolchange appears (which is logical since you use the loadusr -W hal_manualtoolchange
I suspect that there is some code in qtDragon that messes things up. When I add the loadusr -W hal_manualtoolchange line in the hal file I get the old dialog. But when I remove the line LinuxCNC does not start up and craps out with the message:
./qt.hal:339: Pin 'hal_manualtoolchange.change' does not exist
SUBROUTINE_PATH = /home/mill/linuxcnc/nc_files/probe/basic_probe/macros/Does not exist, fresh 2.9pre buildbot version (and NO I am not forgetting his home dir name)Me:
SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/examples/probe/basic_probe/macros/
Does exist.
I added the M6 rules[RS274NGC]PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/examples/probe/basic_probe/macros/
I readded in .hal the
# ---manual tool change signals---
loadusr -W hal_manualtoolchange
net tool-change-request iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-change-confirmed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
I even changed the probe line in .ini[PROBE]#USE_PROBE = versaprobeUSE_PROBE = basicprobe
And I get same results. Namely nothing, only that changed is that the 'old' style dialog box for a manual toolchange appears (which is logical since you use the loadusr -W hal_manualtoolchange
I suspect that there is some code in qtDragon that messes things up. When I add the loadusr -W hal_manualtoolchange line in the hal file I get the old dialog. But when I remove the line LinuxCNC does not start up and craps out with the message:
./qt.hal:339: Pin 'hal_manualtoolchange.change' does not exist
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.158 seconds