On Mon, 2010-08-02 at 19:44 +0100, Andy Pugh wrote: ... snip > I think that the comp file was the right approach. One useful and easy > modification to that would have been a pin that could be linked to the > X-axis homing state, so that it would do a full rotation while > watching a micoswitch linked to a knob on the toolholder, so that it > could determine which tool was loaded. (of course three switches/optos > if you could spare the input pins would mean that it could always know > the loaded tool)
My HNC lathe is like that, but with eight Hall sensors and a CMOS priority encoder: http://www.wallacecompany.com/cnc_lathe/HNC/00025-1a.jpg http://www.youtube.com/watch?v=vwhz3Ho_Gx0 The Hall sensors allow the absolute encoder to work well in oily and/or dirty environments. The CMOS chip(s) allow(s) up to 12 Volts, or more, for the signals. This should be fairly easy to adapt to the EMCO type changer. The HNC turret.comp currently scans for the matching tool position, then engages the stop pawl. The comp could be modified to scan for a tool position match, with stepgen is in velocity mode, then scan for a zero (between positions) then back up against the EMCO's stop finger for the Park state, then double check for the proper tool position. With this there is no initialization to worry about and with only eight positions the encoder is easy to make. My 24 position carousel is a different story. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users