Unless I add stuff to the HAL file apparently there is no accel/deccel values 
that are applied to the PWM output to the spindle.  My scope tells me it goes 
from 10V to 0V in about 50mS.  There is stuff I can add to the HAL:

# 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

# add the functions to a thread
addf spindle-ramp servo-thread
addf spindle-at-speed servo-thread

# set the parameter for max rate-of-change
# (max spindle accel/decel in units per second)
setp spindle-ramp.maxv 60

and some other stuff to hijack the values but so far that hasn't worked and 
LinuxCNC won't start.

I'm probably better off spending my time on the second BoB and wiring things 
neatly.  Still need to put covers and fan on cabinet.  Clean up wires with some 
more harness stuff.  And add the relay module and wiring to enable the coolant 
and mist pumps.

So much to do.  

Or maybe just put a big honking cap across the 0V-10V output.

John


> -----Original Message-----
> From: Groups [mailto:[email protected]]
> Sent: July-15-20 2:58 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] New Spindle working.
> 
> It might be worth adding a slower de-acceleration value for the spindle as a 
> heavier tool may trip the servo.
> Cheers
> Peter
> 
> Peter Homann - (from my mobile)
> http://www.homanndesigns.com
> 
> > On 16 Jul 2020, at 7:48 am, John Dammeyer <[email protected]> wrote:
> >
> > ?Progress.  Bergerda AC Servo driving the Spindle with a V belt still but 
> > at least driving it.  MESA 7i92H PWM,  small module from
> China for 0V-10V.   S1000, F5 and M3 and M5 commands to start and stop.
> >
> > https://youtu.be/VvXMoC917O0
> >
> > Next step somehow incorporate an encoder onto the spindle to close the loop 
> > and the secondary break out board so I can use
> step/dir instead.
> >
> > Then cast some new pulley blanks and change to toothed belt.  But for now 
> > it's so much quieter than the 2HP single phase
> motor.
> >
> > John Dammeyer
> >
> >
> >
> > _______________________________________________
> > 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



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

Reply via email to