Problems getting Auto tool measurement (qt_auto_probe) to work
- kas1kas
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
10 Feb 2023 14:36 #264225
by kas1kas
Problems getting Auto tool measurement (qt_auto_probe) to work was created 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!
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.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2055
11 Feb 2023 07:21 - 11 Feb 2023 07:33 #264274
by cmorley
Replied by cmorley on topic Problems getting Auto tool measurement (qt_auto_probe) to work
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.
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.
- kas1kas
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
11 Feb 2023 10:54 #264286
by kas1kas
Replied by kas1kas on topic Problems getting Auto tool measurement (qt_auto_probe) to work
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
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.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2055
12 Feb 2023 03:14 #264336
by cmorley
Replied by cmorley on topic Problems getting Auto tool measurement (qt_auto_probe) to work
Could you post the error message?
Please Log in or Create an account to join the conversation.
- kas1kas
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
13 Feb 2023 18:10 #264441
by kas1kas
Replied by kas1kas on topic Problems getting Auto tool measurement (qt_auto_probe) to work
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
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
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2055
14 Feb 2023 06:23 #264485
by cmorley
Replied by cmorley on topic Problems getting Auto tool measurement (qt_auto_probe) to work
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.084 seconds