Probe tripped during non-probe move deadlock

  • djdelorie
  • Away
  • Junior Member
  • Junior Member
More
30 Jul 2025 15:51 #332563 by djdelorie
Replied by djdelorie on topic Probe tripped during non-probe move deadlock
I had similar problems with my toolsetter, and initially used an AND gate - until the time I forgot to enable it (I used a manual signal, not motion.*) and crashed my toolsetter.  Then I tried smoothing, which worked OK.  It turns out the toolsetter is a good seismic monitor, and trips when I have issues with toolchanging ;-)

However, my comment here is... have you considered using a dummy probe move to retract the probe?
 

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

More
01 Aug 2025 02:56 #332616 by DauntlessA
Replied by DauntlessA on topic Probe tripped during non-probe move deadlock
Hi Andy,
I believe that the issue I'm describing is exactly the one here:
github.com/LinuxCNC/linuxcnc/issues/2926

The last comment from that issue was you asking about the motion.motion-type following motion.probe-input going high.
I've looked in the halscope and it does seem that motion.motion-type remains at a value of 5 (Probing) until deceleration is completed, at which point the motion-type goes directly to 0 (Idle). So the issue isn't that the motion type resets immediately when the probe input triggers.
I was probing using just the X axis/joint 0 when I tested this.


I'll try and find out a bit more if I can.
Attachments:

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

More
03 Aug 2025 19:09 #332746 by andypugh
Replied by andypugh on topic Probe tripped during non-probe move deadlock
The logic looks fairly simple, and is here:
github.com/LinuxCNC/linuxcnc/blob/2.9/sr...otion/control.c#L716

That only fails if "if (emcmotStatus->probing) {" (line 691) is false.

The confusion here is that I don't see any change in state in your motion.probe-in channel, it doesn't actually appear to be bouncing (or maybe only not in the plotted example?)

I don't know for sure that "SET_MOTION_ERROR_FLAG(1);" (line 726)drives motion.coord-error but it might be worth plotting that too.

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

More
04 Aug 2025 17:22 #332829 by DauntlessA
Replied by DauntlessA on topic Probe tripped during non-probe move deadlock
Sorry, I forget to mention I'd started working on this, only saw you'd self-assigned the issue once I'd nearly finished!
But I see you've seen my pull request now, just linking it here for anyone else since I'll carry on discussion there.
github.com/LinuxCNC/linuxcnc/pull/3534

The test above doesn't show the probe bouncing, it just shows that motion.motion-type remains 5 (Probing), which is what I initially wanted to test.

In hindsight I should've just looked at control.c first, because the logic in there fully explains why the probe bouncing during probe move deceleration causes the issue.

Currently, after the probe is first triggered from a probe move, it doesn't matter what the motion type is, because it's either the first and only valid trigger during a probing move, or a trigger during a non-probe coordinated move.

So the simplest fix to just give an accurate error message which checks the motion type to determine the error message (which is where having confirmed that the motion.motion-type remains as probing for the entire probe move is ideal).

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

More
05 Nov 2025 18:59 #337900 by abs32
Colleague, please publish the entire part of the hal file for controlling the probe shutdown? Including the commands addf + loadrt + something like this net probepin parport.0.pin-13-in-not => and2.3.in0

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

More
14 Nov 2025 22:04 #338406 by andypugh
Replied by andypugh on topic Probe tripped during non-probe move deadlock
There should be no need for any HAL trickery now, the issue is fixed in the latest LinuxCNC release. (2.9.7)

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

More
15 Nov 2025 08:16 - 15 Nov 2025 08:20 #338452 by abs32
need for v2.8.4
I created a program file and embedded debug messages into it. It was established that the error was triggered directly during execution of the g38.5 command

===========
            (LOG,стр 65 )
        #5070=1
        (LOG,X#5061 Y#5062 Z#5063)
        #5070=1
             (LOG,стр 68)
        #5070=1
        G38.5 F[#<_скорость_отскока>]  Z[#<_z> + #<_отскок>] 
             (LOG,стр 70)
===========
there is an entry in the log "стр 68", the machine was stopped by mistake and the state of the sensor - it drove away and in the "no contact" state #5070=0
Last edit: 15 Nov 2025 08:20 by abs32.

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

More
17 Nov 2025 21:30 #338579 by andypugh
Replied by andypugh on topic Probe tripped during non-probe move deadlock
Why do you need 2.8.4?
Are you stuck on Buster (or even Stretch / Jessie?

You could, in principle, patch 2.8.4 with the updates made in 2.9 and recompile.

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

More
17 Nov 2025 22:12 #338585 by abs32
Buster.
If you teach how exactly, poke your nose into the "download, enter" type of instructions, then I can. Alas, in this area (patches, sources) I am weaker than in other areas.
While I’m trying to put v2.9.4 on the free partition and even with this there are problems - in the instructions
linuxcnc.org/docs/2.9/html/getting-start...#cha:Installing-RTAI
the required repository is specified with an error, the kernel itself is installed with errors, and For several years now they have forgotten to indicate in the instructions what to do first -

apt-get purge linuxcnc-uspace
apt-get purge linuxcnc-doc*

and then more
apt-get install linuxcnc

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

More
18 Nov 2025 13:46 #338613 by andypugh
Replied by andypugh on topic Probe tripped during non-probe move deadlock

Buster.


Buster is a long way out of support now (end of life was June 2024).
It sounds like you are running with RTAI, which does work on Bookworm (I run it much of the time)

While I’m trying to put v2.9.4 on the free partition and even with this there are problems - in the instructions
linuxcnc.org/docs/2.9/html/getting-start...#cha:Installing-RTAI
the required repository is specified with an error, the kernel itself is installed with errors, and For several years now they have forgotten to indicate in the instructions what to do first -

apt-get purge linuxcnc-uspace
apt-get purge linuxcnc-doc*

and then more
apt-get install linuxcnc


Well the "they" above is to a large extent me.
You _probably_ don't need to purge the docs packages.
I have updated the instructions, but it will take a while for the updates to find their way to the web server.

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

Time to create page: 0.101 seconds
Powered by Kunena Forum