If you want it really automated - you can set the g10 offsets from the 
probed hole location coordinates.

I have done this for probing tool length (different from what the sample is 
in cvs that sets tool length).  The preview in axis gets a little goofy ;) 
because your cutting path is different than your preview path but it works.

so I don't know if your registering close enough that you could position in 
the hole automatically but either way

-move into hole - either manually or automatically if it is positioned close 
enough
-have the program probe the hole
-calculate center
-set g10 coordinate from calculated center
-run rest of program.

So -




----- Original Message ----- 
From: "Chris Radek" <[EMAIL PROTECTED]>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
Sent: Friday, August 31, 2007 2:41 PM
Subject: Re: [Emc-users] probing


> On Fri, Aug 31, 2007 at 01:14:37PM -0500, Stuart Stevenson wrote:
>> Gentlemen,
>>     I have a request. I would like someone to program a probe cycle to
>> do this. I would like it in python. I want to have the probing cycle
>> for my machine but even more I would like a simple program to compare
>> with this to help me learn python.
>
> Stuart,
>
> Probing to find the center of a hole can be done strictly inside gcode
> without any external program's help.  The procedure could be:
>
>    The operator installs the probe and jogs it into the hole
>
>    The operator runs holeprobe.ngc which alternately seeks the X
>    extents, moves X to the average of them, seeks the Y extents,
>    moves Y to the average of them, etc.  This will converge very
>    quickly to the center of the hole and the probe tip size is
>    irrelevant in the calculation.  (I think this is the algorithm you
>    proposed or very similar to it.)
>
>    With the probe still at the center (but maybe raised),
>    holeprobe.ngc exits.
>
>    Now the operator uses "Touch Off" to set any coordinate system
>    however he chooses.
>
> This seems like a natural and straightforward way to do it.
>
> That being said, if your intent is to learn python instead, that's
> cool.  But, there are some gotchas that come to mind.  Reading and
> rewriting the var file by an external program while EMC is running is
> likely to cause troubles.  Making a gui for an external python program
> to collect values from the user is a lot of work, and most of what
> you want is already done in AXIS's touch off interface.
>
> Chris
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to