Machine moves when you stop program in the middle

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
23 Oct 2024 14:03 #312964 by tommylight
Replied by tommylight on topic Machine moves when you stop program in the middle
It was the "on abort call" causing that, every time you stop execution of a program it calls that routine and does whatever that routine tell it to.

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

More
23 Oct 2024 14:35 - 23 Oct 2024 14:37 #312970 by Aciera
Compress the entire machine config and attach if here. It's really impossible to do more in depth troubleshooting without seeing all the files.

Also try to uncomment one of those lines at a time and see when the bug appears again.
Last edit: 23 Oct 2024 14:37 by Aciera.

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

More
23 Oct 2024 18:31 #312991 by cakeslob
Ive been using the same easy probe as you for the past month or so, and I havent seen this behavior.

github.com/cakeslob/RRW_LAB/blob/main/Li.../remora-xyzRE_ts.ini

We use the same probe stuff, which I havent exactly changed either.

Anyone else wanna chime in, but the thing that stands out the most is 2.7 classic 2.7

github.com/LinuxCNC/linuxcnc/issues/579
The following user(s) said Thank You: Aciera

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
23 Oct 2024 18:58 #312994 by tommylight
Replied by tommylight on topic Machine moves when you stop program in the middle
Just went through those issues on github, so thinking out loud here, if the on_abort is used during probing, it really should not be in the main ini file as that is global for the machine and will cause issues during normal use.
There should be a way to use on_abort only during probing routines, and that is strictly whe it should be active.
Shooting from the hip here, but i really do not like it being in the main ini file.

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

More
23 Oct 2024 19:38 - 23 Oct 2024 20:06 #312996 by cakeslob
The on abort we are both using is rather benign, all it does it clear offsets/distance mode and dwell a little, I dont think the issue was completely solved until a little bit into 2.8

btvpimill try putting nothing in your abort, or even just a g4 dwell command, and see if it does the same thing

edit, tommy, there is actually a separate abort function specifically for probe abort for this easyprobe addon called probe_escape.ngc that does other stuff 
Last edit: 23 Oct 2024 20:06 by cakeslob.
The following user(s) said Thank You: tommylight

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

More
24 Oct 2024 08:47 #313043 by btvpimill
I do not see the issue with small programs. And TBH it sometimes does not happen unless I am a few moves into the program.. Once it does happen it will happen every time from any point - even as it makes its first move. Then if I change to a small program it seems to work fine. Change back to large program (been using the one posted here for testing) and the problem is back.

I will try to get the config zipped and posted here.

I will try and test 1 line at a time to see if I can narrow it down.

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

More
24 Oct 2024 11:25 - 24 Oct 2024 11:30 #313054 by Aciera
As has been pointed out, this issue regarding strange moves after stopping a program seems to have been reported on several occasions on older versions of linuxcnc:

I found the trigger. If I use ON_ABORT_COMMAND to call a subroutine:
ON_ABORT_COMMAND=O <on_abort> call
even an empty sub will make it fail. I got the file down to this and it still failed:

o<on_abort> sub
o<on_abort> endsub
m2

If I comment out ON_ABORT_COMMAND I can't get the fault to happen.

github.com/LinuxCNC/linuxcnc/issues/579

So removing the ON_ABORT_COMMAND from the ini file should fix this for you if you are on some earlier version.

[edit]


I will try to get the config zipped and posted here.


No need for that anymore as the bug has been identified to be in the source code of your version of linuxcnc
Last edit: 24 Oct 2024 11:30 by Aciera.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
24 Oct 2024 11:56 #313063 by tommylight
Replied by tommylight on topic Machine moves when you stop program in the middle


edit, tommy, there is actually a separate abort function specifically for probe abort for this easyprobe addon called probe_escape.ngc that does other stuff 

I am glad! :)

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

More
24 Oct 2024 14:01 #313088 by btvpimill
Awesome thank you!! So If I want to use easy probe I need to upgrade my version of LinuxCNC?

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

More
24 Oct 2024 20:34 #313151 by cakeslob
you should give it a shot if you are able, unrelated to probe

but the on abort stuff doesnt look like it will effect probe stuff, as it is advised to use the probe abort button on the probe panel [x] button

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

Time to create page: 0.081 seconds
Powered by Kunena Forum