Greetings all; On re-reading the wiki for G38, I may be off base with the approach I promulgated last night.
Specifically, g38 does have modes of move to off contact where manual jogging cannot. These apparently do update the 5061-5070 variables, where manual jogging does not, it just error stops when contact is made, and freezes the machine in that position unless what I sent is in place and functional. Or I move the gage out of contact. So I will wire up a direct ground between the electronics and the frame of the lathe to constrain the noise, and redo it with only the debounce and see what I can code up in ngc, using the g38's to do this. Question: The man page doesn't say, but are the 5061-5070 variables updated for status only for g38.2-3, or are they updated by g38.4-5 also? 2nd Question. probably requires more thought: If g91 in in effect when the g38.x is encountered, are the 5061-5070 values still recorded in absolute values? What I would like to do is manually jog the tool to within 50 thou or so of touching the gage, and rather than having to do a 2nd preliminary homing to that position, clicking ok on all the @&$ nuisance prompts that generates, and call the script which runs from wherever in G91 mode to do the final co-ordinate settings for /that/ tool in absolute co-ordinates. The end result hopefully being my ability to stick a piece of stock in the chuck, center it up at whatever stickout is sufficient to make the part, set the gage on the ways, slide it left to contact the end of the stock, manually run the tool to a suitable position for executing a few g38's, do it, and wind back up in G90 mode with the lathe zeroed to run the next bit of code to carve the workpiece, hopefully to an accuracy of a thousandth. That is the target at any rate. The z length of the gage can be easily known, and the x offsets applied will of course need to be fine tuned in the routines so that 0.0000 x really is the center of the workpiece. Routines is plural because this will also be used for boring operations with the reverse directions for x. Thanks. Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) My web page: <http://coyoteden.dyndns-free.com:85/gene> is up! My views <http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml> One family builds a wall, two families enjoy it. I was taught to respect my elders, but its getting harder and harder to find any... ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers