On 25 March 2010 07:07, Rudy du Preez <[email protected]> wrote: > Whereas the stepgen component has velocity-command output, the > hostmot2.stepgen component seems to lack this kind of output (it seems to > have position-command only). Is it possible to generate a variable frequency > pulse stream through hostmot2 to control the speed of the servo spindle > motor?
I don't know if the Hostmot2 stepgen supports velocity mode, it is possible that if it does then the position-cmd pin is dual function. It is also possible that the documentation is incomplete and it is probably worth looking through the pins and parameters in the HAL config browser to be sure. However, a somewhat clunky solution might be to run a software velocity-mode stepgen in the HAL base thread and wire its stepgen.N.position-fb pin as an input to the Hostmot2 stepgen. You can probably just not bother running the make-pulses function so there is no need for a fast thread. It would probably also be possible to perform a simple calculation in HAL: stepgen.position-command = stepgen,position-feedback + timedelta.0.out * spindle-velocity-cmd -- atp ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
