Actually making a hex head on the lathe would best be done using a microcontroller. FPGAs can compute trig functions but I think the method used is to first implement a "soft CPU" and then run code written in C that uses math.h That is a silly-expensive why to replace a $5 STM32 chip.
But really, the Lathe spindle does not run so fast and you can write this code as a HAL component that runs in the Servo loop. I wanted out how I would do this last night and was stumped on the math until I remembered the law of cosines and "SAS" triangle problems from some class I took in the 10th grade. Look those up on Wikipedia and then it is not hard to computer the cross slide position as a function of spindle angle. The hard part is getting such a good cross slide setup with no play of backlash On Mon, Jul 13, 2020 at 9:35 AM Gene Heskett <ghesk...@shentel.net> wrote: > On Monday 13 July 2020 12:00:19 Peter C. Wallace wrote: > > > ROTFLMAO, Peter see's right thru us. ;-) But seriously, the FPGA does > seem like the ideal place for such a module. On chip com with the chosen > stepgenerator removes that particular bandwidth limit. I could also see > it doubleing the size of the FPGA needed so its not going to be free. I > think, not knowing the first thing about writing FPGA code. :-( > > [.. -- Chris Albertson Redondo Beach, California _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users