>-----Original Message-----
>From: andy pugh [mailto:bodge...@gmail.com]
>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 <mich...@michaelandholly.com>
>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.

Andy,

Thanks for the input. 

I haven't yet taken the Hal Scope to the output (I haven't figured out
exactly how to use it yet, I suppose I probably should) and I don't own a
physical scope.. one of the two should probably should be next on my list. 

I have watched the pin 14 in the HAL monitor, and it is doing "something",
but when I try measure voltages at the G540, I get nothing (where I do get
0-11v when I measure with the POT connected).   I was suspicious of the HAL
until you looked at it, now I'm wondering if either this setup
(http://pminmo.com/g540-vfd) is wrong/backwards/or-something for the KBIC,
or if there might be something wrong with the G540's VFD output.  

On the Arduino front.. I was more looking at it due to seeing this project:


http://ckcnc.wordpress.com/2011/01/23/thinking-inside-the-box/ 

I wasn't thinking of an active/automatic monitor and adjust type of control
but just to show actual RPM vs commanded RPM.  Exact RPM isn't so much of an
issue at the moment,  but having the information could prove useful from
time to time (me being the information junkie that I am). 


Thanks, 

Michael





------------------------------------------------------------------------------
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to