Axis and tool length sensor troubles
- seuchato
- Offline
- Platinum Member
-
Less
More
- Posts: 367
- Thank you received: 121
14 Jul 2025 14:23 #331815
by seuchato
Axis and tool length sensor troubles was created by seuchato
Hi all
After a couple of years, I am finally back and ready to making chips. I have a router, use steppers on parport. Linuxcnc is 2.9.4, debian:
Linux cnc0 6.1.0-35-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.137-1 (2025-05-07) x86_64 GNU/Linux
The router works, I can cut stuff etc. not the problem. The job that I want to do soon requires quite a few tool changes. So far I did it using the dowel method, but that is very time consuming. Sure an automatic tool changer would be perfect, but that's up for in a later stage. For now I have a tool length sensor, that I would like to use with my collet spindle to get tool length set after a manual tool change.
When I run tcdemo.ngc:
- goes to change position
- when I hit "Tool change complete", goes to zmax, tool sensor x and y, starts going towards the sensor.
- As soon as the sensor is touched, I get "Probe tripped during non-probe move" and program is stopped
How can I get over this?
I attach the relevant files in zipped folder "toollength_problem.zip"
Greez
chris
After a couple of years, I am finally back and ready to making chips. I have a router, use steppers on parport. Linuxcnc is 2.9.4, debian:
Linux cnc0 6.1.0-35-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.137-1 (2025-05-07) x86_64 GNU/Linux
The router works, I can cut stuff etc. not the problem. The job that I want to do soon requires quite a few tool changes. So far I did it using the dowel method, but that is very time consuming. Sure an automatic tool changer would be perfect, but that's up for in a later stage. For now I have a tool length sensor, that I would like to use with my collet spindle to get tool length set after a manual tool change.
When I run tcdemo.ngc:
- goes to change position
- when I hit "Tool change complete", goes to zmax, tool sensor x and y, starts going towards the sensor.
- As soon as the sensor is touched, I get "Probe tripped during non-probe move" and program is stopped
How can I get over this?
I attach the relevant files in zipped folder "toollength_problem.zip"
Greez
chris
Please Log in or Create an account to join the conversation.
- seuchato
- Offline
- Platinum Member
-
Less
More
- Posts: 367
- Thank you received: 121
14 Jul 2025 15:47 - 14 Jul 2025 15:48 #331821
by seuchato
Replied by seuchato on topic Axis and tool length sensor troubles
Forgot to also include the nc_subroutines.
In manual_change.ngc (see attached zip file) there are the lines:
; probe tool length
M64 P #<_ini[pins]probing> ; turn on probing led
cat gladevcp.hal:
net tool-change motion.digital-out-00 gladevcp.change-led
net tool-changed gladevcp.changed motion.digital-in-00
net toolno motion.analog-out-00 gladevcp.number
net probing motion.digital-out-01 gladevcp.probing-led
net enable motion.digital-out-02 gladevcp.enable
# net probe-contact gladevcp.probe-contact motion.probe-input
# net probe-contact gladevcp.probe-contact motion.probe-input
net reftool gladevcp.reftool motion.digital-in-01
net reflen motion.analog-out-01 gladevcp.reflen
net currlen motion.analog-out-02 gladevcp.currlen
I think the signals and pins for the lines with "net probing " and "net enable" are incorrect.
What to set here?
greez
chris
In manual_change.ngc (see attached zip file) there are the lines:
; probe tool length
M64 P #<_ini[pins]probing> ; turn on probing led
cat gladevcp.hal:
net tool-change motion.digital-out-00 gladevcp.change-led
net tool-changed gladevcp.changed motion.digital-in-00
net toolno motion.analog-out-00 gladevcp.number
net probing motion.digital-out-01 gladevcp.probing-led
net enable motion.digital-out-02 gladevcp.enable
# net probe-contact gladevcp.probe-contact motion.probe-input
# net probe-contact gladevcp.probe-contact motion.probe-input
net reftool gladevcp.reftool motion.digital-in-01
net reflen motion.analog-out-01 gladevcp.reflen
net currlen motion.analog-out-02 gladevcp.currlen
I think the signals and pins for the lines with "net probing " and "net enable" are incorrect.
What to set here?
greez
chris
Last edit: 14 Jul 2025 15:48 by seuchato.
Please Log in or Create an account to join the conversation.
- Billiiles
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 1
23 Jul 2025 09:13 - 25 Jul 2025 09:19 #332217
by Billiiles
Replied by Billiiles on topic Axis and tool length sensor troubles
Hi all
After a couple of years, I am finally back and ready to making chips. I have a router, use steppers on parport. Linuxcnc is 2.9.4, debian doodle jump :
Linux cnc0 6.1.0-35-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.137-1 (2025-05-07) x86_64 GNU/Linux
The router works, I can cut stuff etc. not the problem. The job that I want to do soon requires quite a few tool changes. So far I did it using the dowel method, but that is very time consuming. Sure an automatic tool changer would be perfect, but that's up for in a later stage. For now I have a tool length sensor, that I would like to use with my collet spindle to get tool length set after a manual tool change.
When I run tcdemo.ngc:
- goes to change position
- when I hit "Tool change complete", goes to zmax, tool sensor x and y, starts going towards the sensor.
- As soon as the sensor is touched, I get "Probe tripped during non-probe move" and program is stopped
How can I get over this?
I attach the relevant files in zipped folder "toollength_problem.zip"
Greez
chris
You might want to double-check that theG38.x command is active before motion toward the sensor begins. Also, review your HAL and INI files to confirm the probe input isn't being tripped by noise or an early signal. Did you try adding a small delay before the probe move to stabilize the signal?
Last edit: 25 Jul 2025 09:19 by Billiiles.
The following user(s) said Thank You: seuchato
Please Log in or Create an account to join the conversation.
- jjdege
-
- Offline
- Premium Member
-
Less
More
- Posts: 117
- Thank you received: 34
23 Jul 2025 14:18 #332224
by jjdege
Replied by jjdege on topic Axis and tool length sensor troubles
Hi,
Check the Z travel to reach the probe in the .ini file.
Check the Z travel to reach the probe in the .ini file.
[TOOLSENSOR]
MAXPROBE = XXX
The following user(s) said Thank You: seuchato
Please Log in or Create an account to join the conversation.
- seuchato
- Offline
- Platinum Member
-
Less
More
- Posts: 367
- Thank you received: 121
02 Aug 2025 13:01 #332667
by seuchato
Replied by seuchato on topic Axis and tool length sensor troubles
Thanks a ton to all of you: jjdege, Billiiles !!!
Off course your hints were pointing into the right direction. I just had to go further than I thought I had to.
In short:
- added debounce
- increased debounce.0.delay
That was it!
I have manual tool change, prompting me for the tool required, hit OK, after change and then it measures tool length automatically. So happy!
Along the welcomed outcome, I stumbled across several problems. I'll wrap up my notes and write a comprehensive howto in due time.
Greez
a so happy chris
Off course your hints were pointing into the right direction. I just had to go further than I thought I had to.
In short:
- added debounce
- increased debounce.0.delay
That was it!

I have manual tool change, prompting me for the tool required, hit OK, after change and then it measures tool length automatically. So happy!
Along the welcomed outcome, I stumbled across several problems. I'll wrap up my notes and write a comprehensive howto in due time.
Greez
a so happy chris
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds