Hi Stuart Sounds like you are facing many of the issues we encounter with larger retrofits. Certainly your choice of M words to associate with various gears is one such set but I caution that these things are not standardized in any meaningful way among control vendors. In fact a quick check of wikipedia shows them using the following line
G96 S854 M42 M03 M08 and associated description Variable speed cutting, 854 ft/min, High spindle gear, Start spindle CW rotation, Turn the flood coolant on. Notice they use m42 for high gear. As Dave points out we chose to auto change the gears in the Mazak testbed because we lacked a code to specify a change. It is nice however to be able to command the gear range separate from spindle speed. I believe that this will become more of a demand as we move toward retrofitting larger lathes. If the choice were mine, I'd much prefer a single command with the value immediately after but I know of no controller that curently does this. For your immediate gear changes you could write a comp for HAL or use a bit of ladder and a set of input buttons or vnc to accomplish gear change. Rayh --- [EMAIL PROTECTED] wrote: From: Dave Engvall <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" <[email protected]> Subject: Re: [Emc-users] spindle Date: Mon, 14 Apr 2008 11:23:10 -0700 Hi Stuart, Take a look at the spindle speed, gear change for the Mazak conversion done at fest. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?MazakRetro should get you close. the classicladder code is in ..../emc2/configs/mazak_demo/ mazak_demo.clp HTH Dave On Apr 14, 2008, at 11:01 AM, Stuart Stevenson wrote: > Gentlemen, > I need to be able to use the spindle speed from the "S" word in > the NC program or MDI. > I also need M36, M37, M38, M39 for the spindle gear ranges. > I need EMC to use the requested spindle speed to determine the > gear range and then shift to the gear range. > suggestions? comments? > thanks > Stuart > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http:// > java.sun.com/javaone > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
