Consider setting this up so that "sensed edge of material" counts as a probe trigger for G38.2 probing moves.
Then, your program could * place the machine in mdi mode * do several mdi commands involving G38.2 "probe" movements * use the status buffer to determine the machine's position when the probe movements complete e.g., G0 X0 Y0 Z0 G38.2 X### F10 (probe result is edge of material in X; record value) G0 X(probe result - small amount) G38.2 Y### F10 (probe result is edge of material in Y; record value) Jeff ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users