Steve, What devices do you have between the PWM output pin of your PC and the actual VFD drive.
Are you using a PWM to 0-10vdc converter? If not then what VFD drive are you using? Dave Steve Blackmore wrote: > On Sat, 26 Sep 2009 15:41:11 -0400, you wrote: > > > >> Anyway, take a look at things with halmeter and/or halcmd. Something >> like "halcmd show pin pwmgen" will show all pins associated with the pwm >> generator, and "halcmd show param pwmgen" will show the parameters. >> >> Post your results (especially halcmd show output) if you need more help. >> > > Here you go, interesting , it would appear that pressing the spindle > button with no speed selected float out jumps to 5.555556e-05 ?? > > Not sure about the actual difference in CW/CCW motor speeds, may just be > the motor prefers running in one direction and I think I can tune that > in the VFD itself. > > At idle without spindle enabled > > r...@steve-desktop:/home/steve# halcmd show param pwmgen > Parameters: > Owner Type Dir Value Name > 13 s32 RO 110 pwmgen.make-pulses.time > 13 s32 RW 17866 pwmgen.make-pulses.tmax > 13 s32 RO 565 pwmgen.update.time > 13 s32 RW 18629 pwmgen.update.tmax > > r...@steve-desktop:/home/steve# halcmd show pin pwmgen > Component Pins: > Owner Type Dir Value Name > 13 float OUT 0 pwmgen.0.curr-dc > 13 bit I/O TRUE pwmgen.0.dither-pwm > 13 bit IN FALSE pwmgen.0.enable <== spindle-enable > 13 float I/O 1 pwmgen.0.max-dc > 13 float I/O 0 pwmgen.0.min-dc > 13 float I/O 0 pwmgen.0.offset > 13 bit OUT FALSE pwmgen.0.pwm ==> spindle-pwm > 13 float I/O 0 pwmgen.0.pwm-freq > 13 float I/O 18000 pwmgen.0.scale > 13 float IN 0 pwmgen.0.value <== spindle-abs-cmd > > Pressed Spindle CW (F9) - No speed set, but spinlde turns at 500 rpm or > so. > > r...@steve-desktop:/home/steve# halcmd show pin pwmgen > Component Pins: > Owner Type Dir Value Name > 13 float OUT 5.555556e-05 pwmgen.0.curr-dc > 13 bit I/O TRUE pwmgen.0.dither-pwm > 13 bit IN TRUE pwmgen.0.enable <== spindle-enable > 13 float I/O 1 pwmgen.0.max-dc > 13 float I/O 0 pwmgen.0.min-dc > 13 float I/O 0 pwmgen.0.offset > 13 bit OUT FALSE pwmgen.0.pwm ==> spindle-pwm > 13 float I/O 0 pwmgen.0.pwm-freq > 13 float I/O 18000 pwmgen.0.scale > 13 float IN 1 pwmgen.0.value <== spindle-abs-cmd > > Pressed CCW (F10) - No speed set spindle turns at 500rpm or so. > Pressing spindle slower (F11) has no effect. > > r...@steve-desktop:/home/steve# halcmd show pin pwmgen > Component Pins: > Owner Type Dir Value Name > 13 float OUT 5.555556e-05 pwmgen.0.curr-dc > 13 bit I/O TRUE pwmgen.0.dither-pwm > 13 bit IN TRUE pwmgen.0.enable <== spindle-enable > 13 float I/O 1 pwmgen.0.max-dc > 13 float I/O 0 pwmgen.0.min-dc > 13 float I/O 0 pwmgen.0.offset > 13 bit OUT FALSE pwmgen.0.pwm ==> spindle-pwm > 13 float I/O 0 pwmgen.0.pwm-freq > 13 float I/O 18000 pwmgen.0.scale > 13 float IN 1 pwmgen.0.value <== spindle-abs-cmd > > Then pressed spindle faster (F12) - spindle slows to 50rpm or so. > > r...@steve-desktop:/home/steve# halcmd show pin pwmgen > Component Pins: > Owner Type Dir Value Name > 13 float OUT 0.005611111 pwmgen.0.curr-dc > 13 bit I/O TRUE pwmgen.0.dither-pwm > 13 bit IN TRUE pwmgen.0.enable <== spindle-enable > 13 float I/O 1 pwmgen.0.max-dc > 13 float I/O 0 pwmgen.0.min-dc > 13 float I/O 0 pwmgen.0.offset > 13 bit OUT FALSE pwmgen.0.pwm ==> spindle-pwm > 13 float I/O 0 pwmgen.0.pwm-freq > 13 float I/O 18000 pwmgen.0.scale > 13 float IN 101 pwmgen.0.value <== spindle-abs-cmd > > Steve Blackmore > -- > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
