On 21 July 2010 15:27, Mario - Promm <ma...@promm.com.br> wrote: > The other options could be use the WEG 0-10 V input or its electronic > potentiometer (one pin that increase rpm and other that decrease). It > hasn't a PWM input.
PWM to voltage is fairly easy (a resistor and a capacitor). Alternatively, you could drive the electronic potentiometer with a stepgen function in HAL. There is a stepgen (type 1) that outputs the correct pulse type. There is no rule saying that stepgen has to take position input and drive a stepper motor, the code doesn't care and would happily take a spindle speed input and output digipot pulses. http://www.linuxcnc.org/docview/html//man/man9/stepgen.9.html PWM is possibly better, as when the PWM stops the spindle stops. That might not be the case with the digipot. -- atp ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users