NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum General General LinuxCNC Questions Request : continue after probe error

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Request : continue after probe error

Request : continue after probe error 11 Aug 2012 01:45 #23056

  • tomate
  • tomate's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
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 : http://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
The administrator has disabled public write access.

Re:Request : continue after probe error 11 Aug 2012 02:32 #23057

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1087
  • Thank you received: 17
  • Karma: 80
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 03:02 by Rick G.
The administrator has disabled public write access.

Re:Request : continue after probe error 11 Aug 2012 08:28 #23066

  • tomate
  • tomate's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
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
The administrator has disabled public write access.

Re:Request : continue after probe error 12 Aug 2012 04:33 #23074

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1087
  • Thank you received: 17
  • Karma: 80
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
The administrator has disabled public write access.

Re:Request : continue after probe error 13 Aug 2012 08:01 #23089

  • tomate
  • tomate's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
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
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.705 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.