Request : continue after probe error

More
11 Aug 2012 08:45 #23056 by tomate
Hello,
First, I would like to thank all the developpers and contributors of Linuxcnc : You are doing a fantastic job !
I have a request :
I have a touch probe like this one, that I use on a 3-axis Mill : wildhorse-innovations.com/index.php?_a=viewProd&productId=80
Sometimes, after a touch, the probe fails to come back to the "closed circuit" position, and Linuxcnc gives me an error that says something like this "bad probe position before G38.2 move" and the program stops.
Would it be possible to add the ability for the user to fix the probe ( usually, simply by touching the probe tip with the finger ) and continue the program.
Something like a small window that would say " Bad probe position before G38.2 move, please fix the probe contact and Continue, or Stop " with two buttons "Continue" / "Stop"
Sorry if my message is not very clear : English is not my native language.
All the best,
Tomate

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

More
11 Aug 2012 09:32 - 11 Aug 2012 10:02 #23057 by Rick G
Hello,

What program are you running for the probe?
You might want to experiment with the other probe options....

linuxcnc.org/docs/html/gcode/gcode.html#sec:G38-probe

G38.3 and G38.5 do not signal an error.

Perhaps in your program you can use G38.5 to retract and if error pause to give time to fix probe.

Rick G
Last edit: 11 Aug 2012 10:02 by Rick G.

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

More
11 Aug 2012 15:28 #23066 by tomate
Hi Rick,
Thank you for your answer.
I use a modified version of the probe Gcode included with Linuxcnc, this is why I used G38.2.
I will give a try at G38.3, this seems to be what I was looking for.
Thanks a lot.
Tomate

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

More
12 Aug 2012 11:33 #23074 by Rick G
You might find some clues for what you want to do here...
www.linuxcnc.org/index.php/english/compo...ew&catid=40&id=17821
This uses a g38 move for both the probe and the retract, if the probe is unsuccessful the results of #5070 are different and can be used with an IF to in your case perhaps pause the program.

Rick G

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

More
13 Aug 2012 15:01 #23089 by tomate
Hi Rick,
Thanks for your help.
My problem is solved with the following piece of code inserted in the grid loop:


G0 Z#30 ; #30 is the safe height
G38.3 Z#8 ; #8 is the target Z height
O105 IF [#5063 eq #30] ; Contact at the very beginning of the probe move : the probe was ON before the probe move
(MSG, Probe error. Please fix it.)
M0 ; Pause
G38.3 Z#8 ; Let's probe again
O105 ENDIF


Best regards,

Tomate

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

Time to create page: 0.111 seconds
Powered by Kunena Forum