On 09/04/2016 03:47 AM, andy pugh wrote: > On 4 September 2016 at 11:05, Gene Heskett <[email protected]> wrote: >> I have wondered about those usages, and it occurs to me that these usages >> of an alpha character should have their "scope" restricted to the life >> of the canned cycle being executed, to disappear with the stack cleanup >> as that particular canned cycle was exiting. The fact that its even >> being discussed tells me it is non-volatile. > > > No, the multi-spindle G76 needs a letter to tell it which spindle to > synchronise to.
Canned cycles tend to have sticky parameters so that one only needs to invoke the G command to repeat the process with only adding the parameters that change. Here is a canned cycle that drills a new hole just by adding an X and Y to a new block. (Drilling) T 3 M6 G43 H 3 S 4000 (RPM) M8 (Coolant ON) M3 (Spindle ON, Forward) F 100.00 (Z Feed, inches/minute) G0 X 0.0000 Y 0.0000 (Hole 1 of 3) G0 Z 0.3000 (Z Clear) G90 G98 (Absolute Distance Mode, Canned return to Z or R) G81 Z -4.0000 R 0.0000 (Canned Drill) X 0.0000 Y 1.0000 (Hole 2) X 0.0000 Y 2.0000 (Hole 3) G80 (Cancel canned cycle) G0 Z 0.3000 M9 (Coolant OFF) M5 (Spindle OFF) G30 Z 0.3 (Go in Z only to preset G30 location) G30 (Go to preset G30 location) M30 (End of Program) ~~~~~ On another issue, as far as I can tell, G76 only works along Z. I thought that calling X, Y, or Z would locate the destination of the line of action,but only Z works. A Y word errors out. An X can add an X motion at the very end of the command. I did not retain this X move in my version, but have the tool return to the starting point along the tool clearance line. ~~~~~ In the wider world, G76 has a completely different function between mills and lathes. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/ ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
