Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Gadget on January 09, 2010, 10:41:29 AM

Title: Servo spindle on Lathe
Post by: Gadget on January 09, 2010, 10:41:29 AM
I really need help configuring my lathe spindle.
I´ve installed a servo motor on my small lathe and I can get the motor to go to different positions in the program that came with
the servo motor drive but in mach, nothing happens!?
The Servo motor drive has a Step, Dir and Signal Ground that i´ve connected to the breakout board for the smooth stepper, the same way as the stepping motors but what is missing?
How do i set the motor up in Mach?
Title: Re: Servo spindle on Lathe
Post by: Hood on January 09, 2010, 10:47:03 AM
What kind of drive do you have?
What kind of motor?
What version of Mach?
What version of SS Plugin?

Servo Spindle does work with SS,there are a few niggling issues but it does work for the most part.
Hood
Title: Re: Servo spindle on Lathe
Post by: Gadget on January 09, 2010, 11:03:15 AM
Thanks for answering

The drive is http://www.cnc2all.com/servo-engine-driver.html (http://www.cnc2all.com/servo-engine-driver.html)
The motor is a small 150w servo motor(it´s a very small lahe) with a "HEDS-5540" encoder. http://www.chipcatalog.com/Datasheet/FA1DD47A1C902DD3EC1732ECFCA376DF.htm (http://www.chipcatalog.com/Datasheet/FA1DD47A1C902DD3EC1732ECFCA376DF.htm)
My Mach version is "Version R3" and the SS version is "Beta 2".

You know what?
Thanks for asking because now when i checked the smoothstepper version i found a little box for the spindle where "relay" was checked.
After i checked "Step and Dir" it actually turns....   Sweeeeeeeeeeeeeeeet.

You saved my day!!!  ;D


Any tips on how to tune it?
Title: Re: Servo spindle on Lathe
Post by: Hood on January 09, 2010, 11:12:41 AM
The way I set it up is slightly different from the way Greg does it but I have tried both ways and there doesnt seem to be any difference so I will tell you the way I do it.
Steps per unit is the amount of pulses per rev, mine have 2000 line encoders so that is 4 x 2000 =8000 pulses per rev which is steps per rev/unit

Velocity is the Max speed that your servo will do.

Accel will all depend on what your hardware can do without faulting or what you are happy with, so best start low, maybe 5 or so and see how things go. If it takes too long to spin up then increase, if it faults then decrease.

Now for one very IMPORTANT thing I have never seen mentioned anywhere is you MUST have the pulley max speed set to whatever your max velocity is (presuming 1:1 setup) and make sure you are in the pulley range you have set up in.

Hood
Title: Re: Servo spindle on Lathe
Post by: Gadget on January 09, 2010, 12:49:00 PM
In the encoder datasheet it sais 500 cpr.
Does that mean that i should write 2000?
Title: Re: Servo spindle on Lathe
Post by: Hood on January 09, 2010, 02:01:00 PM
Yes thats correct.
Hood