Problems getting Auto tool measurement (qt_auto_probe) to work

More
10 Feb 2023 14:36 #264225 by kas1kas
I had some trouble getting the auto probing to work in QTDragon_HD

file nc_files/examples/remap-subroutines/qt_auto_probe_tool.ngc

changed
line 5 #<tool> = #<selected_tool>
line 6 #<pocket> = #<selected_pocket>
to
line 5 #<tool> = #<_selected_tool>
line 6 #<pocket> = #<_selected_pocket>

the underscore was missing, giving an unclear error.


also the ini file needs this section

[VERSA_TOOLSETTER]
X = 600         (use your own location)
Y = 10           (use your own location)
Z = -3            (use your own location)

setting the path correctly is also pretty difficult. wrong path in the [RS274NGC] section makes the startup very slow and eventually gives an error 'file not open'
I know the path depends on the install and is difficult to describe exactly. Is there a better way for beginners?

PS: I tried in 2.9 and 2.10.


thanks!

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

More
11 Feb 2023 07:21 - 11 Feb 2023 07:33 #264274 by cmorley
Thanks for the post.
What remap file are you using?
github.com/LinuxCNC/linuxcnc/blob/2.9/nc...glue/stdglue.py#L537
shows no underscores with #<selected_tool> in remaps change_prolog and change_epilog

I'll fix the docs on VERSA_TOOLSETTER entry.

The remap process is pretty painful, there is nothing easy to do to make it better.
You could add an issue on linuxcnc's github to remind people to look at it.
Last edit: 11 Feb 2023 07:33 by cmorley.

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

More
11 Feb 2023 10:54 #264286 by kas1kas
I am using what the LinuxCNC configuration selector created:
It makes a few links in the nc_files folder and the remap file is then from this location:
~/linuxcnc/nc_files/examples/remap_lib
it points to
/usr/share/linuxcnc/ncfiles/remap_lib

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

More
12 Feb 2023 03:14 #264336 by cmorley
Could you post the error message?

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

More
13 Feb 2023 18:10 #264441 by kas1kas
This is the error using the original qt_auto_probe_tool.ngc file, see file 1.
Mon13 18:43: Loaded program file : /home/linuxcnc/linuxcnc/nc_files/01 ToolChangeTest-1.ngc
Mon13 18:43: Loaded file /home/linuxcnc/linuxcnc/nc_files/01 ToolChangeTest-1.ngc
Mon13 18:43: G-Code error in 01 ToolChangeTest-1.ngc
Near line 1 of
/home/linuxcnc/linuxcnc/nc_files/01 ToolChangeTest-1.ngc
Named parameter #<selected_tool> not defined

And this is the normal response after adding the underscores (like all other variables also have in this file). see file 2.
Mon13 18:51: Loaded program file : /home/linuxcnc/linuxcnc/nc_files/01 ToolChangeTest-1.ngc
Mon13 18:51: Loaded file /home/linuxcnc/linuxcnc/nc_files/01 ToolChangeTest-1.ngc
Mon13 18:51: Started program from line 1
Mon13 18:51: Tool 2: Face 15mm
Mon13 18:51: Run timer stopped at 00:00:07

Also added first part of my tool change test file.

Kas
 
Attachments:

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

More
14 Feb 2023 06:23 #264485 by cmorley
Thank you for the details. I'm starting to get the picture - I'm really just puzzled why it works in the sample config - more testing to do...

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

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