Thanks Peter,

Wasn't sure if there was an easier way.  I cut and pasted the example from the 
doc page but it's in the wrong place and LinuxCNC does start.  For now it's all 
commented out.  

So I have to figure out what I need to 'fix' in the hal file so it uses the 
limit component properly. 

I imagine once I switch over to using step/dir for the spindle I'm guessing I 
won't need the limit component.  But there are so many other things still to do 
that probably won't be until the fall.  

John


> -----Original Message-----
> From: Peter C. Wallace [mailto:[email protected]]
> Sent: July-09-20 10:13 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Spindle acceleration/decelleration
> 
> On Thu, 9 Jul 2020, John Dammeyer wrote:
> 
> > Date: Thu, 9 Jul 2020 22:02:31 -0700
> > From: John Dammeyer <[email protected]>
> > Reply-To: "Enhanced Machine Controller (EMC)"
> >     <[email protected]>
> > To: "'Enhanced Machine Controller (EMC)'" <[email protected]>
> > Subject: [Emc-users] Spindle acceleration/decelleration
> >
> > My ini file these parameters.
> >
> > MAX_VELOCITY = 50.0
> > MAX_ACCELERATION = 300.0
> >
> > Setting MAX_ACCEL to 30 doesn't change the rate of change from 3000 RPM to 
> > 0.  Still goes from 10V to 0V in 80 mS.
> >
> > In the HAL file these set up the MESA for speed to RPM.  But I seem to have 
> > missed an acceleration.
> >
> > # PWM gen signals/setup
> > # PWM signal pin config
> > setp   hm2_7i92.0.pwmgen.00.output-type  1
> > setp   hm2_7i92.0.pwmgen.00.scale  [SPINDLE_9]PWM_SCALE
> > setp   hm2_7i92.0.pwmgen.pwm_frequency 1000
> >
> > So far I haven't been able to get ramping working although one would think 
> > the MESA could do this with a parameter.
> > # load real time a limit2 and a near with names so it is easier to follow
> > loadrt limit2 names=spindle-ramp
> > loadrt near names=spindle-at-speed
> > etc...
> >
> > Is there a simple way to ramp a 0-10V and 10V to 0V so acceleration is a 
> > bit slower?
> 
> Yes, you have a start there, you need to put the limit2 component in the 
> spindle
> speed commmand path and set the limit2 components maxv value to the desired
> RPM per second acceleration value.
> 
> 
> 
> >
> > Thanks
> > John
> >
> >
> >
> >
> > _______________________________________________
> > Emc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> 
> Peter Wallace
> Mesa Electronics
> 
> (\__/)
> (='.'=) This is Bunny. Copy and paste bunny into your
> (")_(") signature to help him gain world domination.
> 
> 
> 
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to