On 20 September 2013 07:46, propcoder <marius.alks...@gmail.com> wrote: > I set up spindle gear sensor on a metal milling machine with steppers. > Will one sensor be enough for G33?
It might be. It won't work for G33.1 (rigid tapping) because one sensor can not give direction information, and G33.1 has a reversal in the middle. > I thought I can make synthetic index signal in HAL. I can use my own > additional component or maybe correct encoder component.. Somebody went > this way already? I recently added synthetic index to the Smart Serial encoder driver, you could use the same code in a custom component. http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/drivers/mesa-hostmot2/sserial.c;h=e81d51c7977374851fdecafc2ae1489ed704b5ad;hb=HEAD#l1384 You probably don't need all of the code that extends from an arbitray bit-length to 64 bits. The wierd thing that I don't quite understand is that of the 4 options (through positive index in the positive direction, positive negative, negative positive and negative negative) three end up the same and one is different... > G33 manual says it can sync X, Y, Z axes with spindle. What if I want to > sync A (rotary) axis to spindle? I think that you would have to map the rotary axis position to one of the X Y or Z axis commands. What is the application? I can think of only one reason to synch the spindle to a rotary (gear hobbing) and that is more readily done in other ways. > What K value to use when several axes are in one line with G33? The K value is the distance to travel along the path. This means that you need to modify the K value for tapered threads, for example, but does mean you can move in arbitray directions. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users