Frank Tkalcevic wrote:
> I've just configured my first emc project, a 9x20 lathe conversion.  I'm
> using a large servo for the spindle - I'm hoping to be able to use it as a
> 4th axis for some light engraving down the track.
>
> My problem - I've set up the servo for the spindle, but like a servo, it
> responds imediately to change requests.  I haven't put a chuck on it yet,
> but it I'm sure it will break the belt when it tries to stop from 1000rpm to
> 0, instantly.
>
> Any ideas on how I can soft start and stop it?
>
> At the moment, my configuration is to take the motion.spindle-speed-out,
> into pid.command, and let it work itself out.  I'm thinking if I reduce the
> Pgain that might do it, but then it would make it mushy under load.
>
>   
What you need to do is put motion.spindle-speed-out through a filter to 
round off the sharp edges before feeding it to whatever is trying to 
follow it.  Since spindle-speed-out is already velocity, I send it 
directly to the servo drive without PID.  That won't work for a 
positioning axis, but is OK for a velocity-only axis, ie. a spindle.  
The constant .0009018 is the speed calibration factor.  This is using my 
Universal PWM Controller and PWM servo amps to drive the axes as well as 
the spindle in this system.  Here's the relevant code :

# set up 4th PWM generator as a spindle speed control
newsig spindle-speed float
newsig spindle-pwm-cmd float
newsig spindle-pwm-filt float
linkps motion.spindle-speed-out => spindle-speed
linksp spindle-speed => mult2.1.in0
setp   mult2.1.in1 0.0009018
linkps mult2.1.out => spindle-pwm-cmd
linksp spindle-pwm-cmd => lowpass.0.in
linkps lowpass.0.out => spindle-pwm-filt
linksp spindle-pwm-filt => ppmc.0.pwm.03.value
setp lowpass.0.gain 0.01


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to