I think the general solution to the specific problem of wanting separate geometry and wear offsets for lathe tools is to allow the gcode to request any number of tool offsets simultaneously.
I've implemented that in a very simple way in the cradek/multi-tlo branch on git.linuxcnc.org, and here is the basic documentation for this feature, as implemented: To use tool 1 with the sum of offsets 1 and 10, program: T1 M6 G43 (or G43 H1: replace any existing offset with T1's) G43.2 H10 (also add in the T10 offset) You can sum an arbitrary number of offsets by calling G43.2 more times. There are no built-in assumptions about which numbers represent geometry and which are wear, or that you should have only one of each. Note that having multiple offsets active interacts with "touch off" in the UIs (aka G10 L10/L11) in a possibly-unexpected way, because those write only to the loaded tool's offset. (This was also previously the case when you are in a situation like T1M6 G43H2, or G43.1 mode) Frankly I don't know how that can be fixed without loss of flexibility. I think if you are using multiple offsets maybe you ought to be editing the tool table directly to keep them straight. I'd welcome any comments about this scheme, except please note that I already know this is not how Fanuc does it. I do not like the restrictions and assumptions built in to their scheme and I believe this implements a superset of it. (But to our remap experts: could you use remap to emulate it?) Chris ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
