>-----Original Message----- >From: andy pugh [mailto:[email protected]] >Sent: Saturday, March 26, 2011 4:25 AM >To: Enhanced Machine Controller (EMC) >Subject: Re: [Emc-users] RPM with PWM/VFD/G540 to KBIC type controller. >Not working? Help? > >On 26 March 2011 01:02, Michael Jones <[email protected]> >wrote: > >> loadrt pwmgen output_type=0 >> addf pwmgen.make-pulses base-thread >> addf pwmgen.update servo-thread >> net spindle-on <= motion.spindle-on >> net spindle-speed-cmd motion.spindle-speed-out => pwmgen.0.value >> net spindle-on motion.spindle-on => pwmgen.0.enable >> net spindle-pwm pwmgen.0.pwm => parport.0.pin-14-out >> setp pwmgen.0.pwm-freq 50.0 >> setp pwmgen.0.scale 3500 >> setp pwmgen.0.offset 0.114285714286 >> setp pwmgen.0.dither-pwm true >> net spindle-on => parport.0.pin-17-out > >All looks OK. Can you look at pin-14-out in Halscope? (or with a real >scope) I suspect you may find that you do have a PWM, but that >something is not happening at the G540 end. > >If you can't get it to work I have a little circuit that definitely >does work with a KBIC that I can show you (and another which might >work better, but I haven't tried) > >You mention using an Arduino to give tacho feedback, I assume that is >to measure DC voltage and convert to pulses? I am not sure that that >will achieve all that much as the KBIC runs closed-loop on input >voltage so any difference between PWM command and feedback speed will >be constant terms related to the conversions rather than useful load >compensation feedback. Setting up a spindle encoder is possibly more >useful. >
I solved it today.. I went in and took a closer look a the setup. Apparently the directions online are reversed (or I accidentally reversed them.. that's never happened before ;-) ) Thanks all for the input! ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
