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