On 1 August 2014 18:17, Rick Lair <[email protected]> wrote: > Here is a copy of what we did to the file > > Toolchange.ngc > > O<toolchange> sub > (debug, Tool requested = #<tool>) > #<wear> = [[#<tool> MOD 100] + 10000] > #<tool> = [FIX[ #<tool> / 100]] > M6 T#<tool> > G43 H#<wear> > > #<pocket> = #<tool> > (debug, tool = #<tool> wear = #<wear>) > O<toolchange> endsub [0]
Is there a separate tool offset and wear offset? If there is then I think you want M6 T#<tool> G43 H#<tool> G43.2 H#<wear> > Could you please tell what the process of events is in lines 3 and 4 that > made it work, I think it was pure luck that we figured it out, but maybe > not!!! The MOD[] operator returns the remainder of a division. 6 mod 3 = 0 (6 / 3 = 3 remainder 0) 8 mod 3 = 2 (8 / 3 = 2 remainder 2) So, 2030 mod 100 = 30. 30 + 10000 = 10030 The FIX[] Operator rounds down to the nearest whole number. [2030 / 100] = 20.30 FIX [ 20.30] = 20 -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
