John,
Many thanks.  I will have a go at doing this next step over the next few
nights, family and decorating willing :)
Regards
Andy

-----Original Message-----
From: John Thornton [mailto:bjt...@gmail.com] 
Sent: 27 September 2009 15:06
To: Enhanced Machine Controller EEMC"
Subject: Re: [Emc-users] Spindle soft start

Andy,

This may help you understand.

http://www.linuxcnc.org/docview/html//examples_spindle.html#r1_5

John

On 27 Sep 2009 at 8:26, Andy I wrote:

> Jeff,
> Thanks for you help.  After a bit of fiddly and reading (I'm not
> familiar with the HAL at all) I managed to link
> motion.spindle-speed-out
> to pwmgen.0.value via limi2.0.  I also needed to addf limit2 and
> link it
> to the servo thread rather than the base thread?  Anyway it all
> seemed
> to work according to my oscilloscope, the pulse density ramps up
> and
> down smoothly.  All I've got to figure out now is how to setup the
> spindle at speed logic and set the scale for pwmgen in PDM to give
> 10V @
> 2kHz for 3600rpm.
> Once again many thanks for you help.
> Regards
> Andy
> 
> -----Original Message-----
> From: Jeff Epler [mailto:jep...@unpythonic.net] 
> Sent: 26 September 2009 13:20
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Spindle soft start
> 
> On Sat, Sep 26, 2009 at 08:36:13AM +0100, Andy I wrote:
> > Hi Everyone,
> > Is this mail getting through??
> 
> Yes.
> 
> > 
> > I have an X2 mill with a spindle controller which converts pulses
> to
> > voltage output.  I'm planning to use pwmgen in PDM mode to
> generate
> the
> > pulses.  Is there a way to ramp up the pulse density (frequency)
> to
> > allow a soft spindle start?
> 
> One way is to use a 'limit2' block between motion.spindle-speed-cmd
> and
> whatever is making the pulses.  limit2.#.maxv limits the rate at
> which
> the output signal changes to track the input.  For example, if you
> set
> it to 60, and the input is revolutions per second, then it will take
> 1
> second to ramp up from 0RPM to 60RPM or down from 60RPM to 0RPM.
> 
> At the same time, you'll probably want to start using the
> spindle-at-speed input so that emc waits for the spindle to reach
> the
> commanded speed before cutting.  This involves a 'near2' block with
> its
> output going to motion.spindle-at-speed, one input coming from the
> motion.spindle-speed-cmd, and the other coming from the current
> spindle
> speed.  If you have spindle feedback, then you'd use that. 
> Otherwise,
> you'd use the limit2 output as a proxy for current spindle speed
> (since
> it's changing slow enough that the spindle can track it
> accurately)
> 
> Jeff
> 
> --------------------------------------------------------------------
> ----
> ------
> 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
> Emc-users@lists.sourceforge.net
> 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
> Emc-users@lists.sourceforge.net
> 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
Emc-users@lists.sourceforge.net
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to