Leslie Newell wrote: >I am retrofitting a lathe that has a 3-speed electrically controlled >gearbox. The gear change sequencing will be controlled by ClassicLadder. >Basically ClassicLadder has 3 HAL pins set up, one to select each gear. > Is there any easy way that an appropriate gear can be selected by G-code? > > You can use the digital outputs to select a gear, with M6xx (?).
You can also make a HAL setup that can select gears based on selected spindle speed. You'd have to pick an appropriate algorithm of course. I had grandiose plans for an automatic gear changer component before, one which could set some outputs based on the input speed, had good hysteresis so it wouldn't do unnecessary changes, etc. What I ended up doing is in gearchange.comp, which will only change spindle speed scales and limits for a couple of different gear ranges. - Steve ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users