586,075 active members*
4,124 visitors online*
Register for free
Login
Results 1 to 17 of 17
  1. #1
    Join Date
    Jul 2007
    Posts
    59

    spindle dc servo / encoder, lathe

    I'm exploring the possibility of using a dc servo motor for my lathe spindle, I have the dc servo drive and the dc servo motor, as far as i know the motor does not have an encoder although i have the option of adding one to it from the manufacturer.

    My question is, if my spindle allready has a 200 hole index pulse plate on the spindle plate currently used for the rpm / speed readout in mach3, why would I need an encoder on the dc servo motor?.

    and i'm a little confused as to how mach3 connects and picks up information from the encoder as i thought the dc servo drive and motor was a standalone cell and all mach does is put signals 'out' to the servo drive.... wether they are step & direction or PWM.

    The servo drive can also use tachy feedback from the motor, what is this?

  2. #2
    Join Date
    Jan 2006
    Posts
    2985
    The only reason you would need an encoder is if the drive required it. Mach will output either PWM or step/dir to the drive. The drive needs some type of feedback from the motor. This needs to be either an encoder or a tachometer. A tachometer is a small generator connected to the servo which outputs a dc voltage proportyional to its speed. From this, the drive can tell how fast it is going and change the voltage output so that it is going at the speed it is commanded by mach.

    Matt

  3. #3
    Join Date
    Jul 2007
    Posts
    59
    cheers matt, i see. the tach is for self regulating speed with the drive, by referencing mach's commanded speed and the tach simeltaneously. i wont be using this spindle & drive for a stepped 4th axis type application, yet, but a spindle if possible.

    what is the maximum speed/rpm at which mach can read a 500 count encoder?

    i also think my 200 hole index plate will be useless as the holes are tiny and the manual says the slots need to be kinda 4 at calculated widths with one larger for main index pulse the rest for position etc. if 4 slots is good enough for the goose.

    what do you think of using a 130vdc 12A dc motor for a spindle? its got 382 oz in from stall to 3000rpm, 950ozin peak to 1750rpm. its only a tiny lathe but i want to practice on it first then perhaps transfer the spindle assembly over to something with a proper construction / preloaded spindle and not ball race!

  4. #4
    Join Date
    Jan 2008
    Posts
    136
    The reason for a tacho is for closed loop speed control, not "if the drive needs it". Using a dc servo motor for spindle control means you will have a permanent magnet for the field, this will limit the maximum motor speed because the field is fixed. Traditional dc spindle drives have a field winding which can have a variable voltage, this allows the field to be weakened and the spindle can attain higher speeds, with corresponding reduced torque.The addition of a spindle encoder allows the controller to monitor the spindle rpm's and to fix feed per rev or revs per minute. Also, with a marker pulse, will allow for threading and other cutting cycles. If not needed a simple potentiometer can be employed to regulate speed. The encoder is not a tacho and vise versa.

  5. #5
    Join Date
    Jul 2007
    Posts
    59
    right so it needs a tacho then!. according to mach i can use a single index pulse to achive feed per rev, so im not seeing the use of encoder anywhere relevant ? thanks for the input phil, copy that the torque graph steeply to 0nm from 3100-3400rpm dead.

  6. #6
    Join Date
    Jan 2006
    Posts
    2985
    If your servo drive needs the tacho, use that. If it needs the encoder, use that. Different drives use different types of feedback.

    The 4 pulses per rev, or even one is all you need for mach for threading. A 500 line encoder would output pulses at 1.5 Mhz at 3000 RPM. Not even close to within the range mach can handle.

    I think the motor will work just fine for a spindle. You won't need anything more that 3000 rpm for most purposes and it will be plenty strong. The servo drive will automatically increase voltage to the motor to maintain speed so it does not have to be so big as an open loop spindle.


    Matt

  7. #7
    Join Date
    Jul 2007
    Posts
    59
    o.k im pretty much set on a tachy feedback set-up, the drive functions with either or both. simeltaneously according to the manual, hence the questions, plus i knew nothing about either, now a little more educated, thanks a lot. I now have to find out if the drive takes step and direction or pwm? i just plug it in and then tune it with mac right? heres a shot of the data :









    i'll be guessing for a long time! how does mach plug in?


  8. #8
    Join Date
    Jul 2007
    Posts
    59
    im needing a pwm or s&d to 0-10vdc analogue volts convertor, can anyone recommend a good one with opto isolation? its to run this dc servo drive which does not take step or pwm input direct, cheers.

  9. #9
    Join Date
    Jul 2007
    Posts
    59
    which is better, a software or loop from mach3 or a hardware loop using the tachy generator for feedback? or are they not similar enough for comparison? mach states:


    "Closed loop spindle control, when checked, implements a software servo loop which tries to match the actual spindle speed seen by the index or timing sensor with that demanded by the S word. The exact spindle speed is not likely to be important so you are not likely to need this feature in mach3 turn.

    If you do use it then the P, I and D variables should be set in the range 0 to 1. P controls the gain of the loop and an excessive value will make the speed oscillate, or hunt, around the requested value rather than settling on it. The D variable applies damping so stabilising these oscillations by using the derivative (rate of change) of the speed. The I variable takes a long term view of the difference between actual and requested speed and so increases the accuracy in the steady state. Tuning these values is assisted by using the dialog opened by Operator>Calibrate spindle.

    Spindle speed averaging, when checked, causes mach3 to average the time between index/timing pulses over several revolutions when it is deriving the actual spindle speed. You might find it useful with a very low inertia spinlde drive or one where the control tends to give sort term variation of speed.
    .................................................. .................................."

    where as the tachy generator will feedback upto 100v to the servo drive so it knows what speed its doing.. if the speed drops off from a demanded S word under spindle loading I imagine the servo drive increases power to the motor to compensate?

    if i have this type of feedback wit my drive i dont need to use this option in mach right, I just wondered if any or either were better?

  10. #10
    Join Date
    Aug 2005
    Posts
    1094
    Quote Originally Posted by hutchison View Post
    im needing a pwm or s&d to 0-10vdc analogue volts convertor, can anyone recommend a good one with opto isolation? its to run this dc servo drive which does not take step or pwm input direct, cheers.
    Hi,

    Have a look at the PWM to isolated 0-10Vdc converters I make and sell.

    The DigiSpeed-GX is a basic PWM to isolated 0-10V converter.
    http://homanndesigns.com/store/index...products_id=21

    The DigiSpeed-XL has a number of extra bells and whistles. It allows a manual speed potentiomer to be added to allow for manual speed control as well.
    http://homanndesigns.com/store/index...&products_id=2

    As to whether to use the Mach3 PID function or a drive with feedback built in, it is probably best to use the latter, as the PID in the drive will be optomised for it.


    Cheers,

    Peter.
    -------------------------------------------------
    Homann Designs - http://www.homanndesigns.com/store

  11. #11
    Join Date
    Jul 2007
    Posts
    59
    excellent, cheers peter, I have heard of your motor drives through the digital machinist magazine for this type of application so i'll take a look thankyou very much!

  12. #12
    Join Date
    Jul 2007
    Posts
    59
    Quote Originally Posted by phomann View Post
    Hi,

    Have a look at the PWM to isolated 0-10Vdc converters I make and sell.

    The DigiSpeed-GX is a basic PWM to isolated 0-10V converter.
    http://homanndesigns.com/store/index...products_id=21

    The DigiSpeed-XL has a number of extra bells and whistles. It allows a manual speed potentiomer to be added to allow for manual speed control as well.
    http://homanndesigns.com/store/index...&products_id=2

    As to whether to use the Mach3 PID function or a drive with feedback built in, it is probably best to use the latter, as the PID in the drive will be optomised for it.


    Cheers,

    Peter.
    any idea how i can get both a positive and negative 0-10vdc to my drive? I can spin both ways without relays if i can incorporate it, I am also chuffed i found about my dc servo drive it takes analogue volts to control it directly / input, and not direct PWm, which is a shame as i could have plugged mach straight in but at least with analogue volts the set-up and monitoring will be easier.

    does anyone have an idea which is a better option to use in mach 3 when converting the spindle drive signal to analogue volts, would it better to use PWM or step and direction? i am thinking using mach3's PWM output to volts as perhaps using step and dir would hog the processors resources when processing 35,000 pulses per second , anyone?

  13. #13
    Join Date
    Jun 2008
    Posts
    1082
    Sorry to bring back an old thread...

    Quote Originally Posted by keebler303 View Post
    ...
    A 500 line encoder would output pulses at 1.5 Mhz at 3000 RPM. Not even close to within the range mach can handle.
    ...
    This math isn't right is it?

    3000 ÷ 60 = 50
    3000 RPM is only 50 RPS (rotations per second).

    At 50 RPS a 500 line encoder should put out 25,000 Khz (a reasonable amount for Mach3).
    If it's a quadratic encoder, it'll put out 4 times more: 100,000 Khz (the most Mach3 can handle as far as I know).

    If you're using a 500 CPR quadratic encoder on a 3000 RPM servo a Gecko g340 would solve the Mach3 overloading problem, since it has 10x pulse multiplying, right?


    I sure hope so! I have a 4200 RPM servo, 500 line (quadratic) encoder, and a Gecko g340 on the way so I can try something similar to the OP, but with a Taig mill instead of a lathe.

    Here's a thread I started to track my progress...
    Keling servo as Taig spindle motor replacement?

  14. #14
    Join Date
    Jan 2006
    Posts
    2985
    [QUOTE=Hirudin;547506]This math isn't right is it?QUOTE]

    The math is definately not right. Give me a break, it was my birthday. (nuts)

    The correct speed is, as stated, 25kHz for one channel and 100 kHz in 4x quadrature. A gecko uses 4x quadrature so you would have to output pulses at 100 kHz to get a servo turning at 3000 RPM with a 500 line encoder. That is theoretically possible with mach, however I have not had good luck with running anything over a 60 kHz kernel. I would say if you optimized everything, it could work.

    The reason I said that it was not even close to the range mach can handle was for the input. On a lathe, mach uses an index pulse to sync the feed with the speed for threading or constant surface speed operations. Using a 500 line encoder for this, even at 25kHz, would not work with mach. It is recommended to use something like 4 pulses per revolution. I am not sure what the practical limit is but 200 Hz (4 pulses at 300 rpm) is a far cry from the 25 kHz the encoder would be putting out.

    Theoretically, if you are using a servo for the spindle, mach should already know how fast the spindle is turning as it is controlling its speed precisely. It should not need the sync signal in this case but I have not tried it so I don't know if it is still needed or not.

    Thanks for catching my mistake
    Matt

  15. #15
    Join Date
    Jun 2008
    Posts
    1082
    Heh... I can't tell you how many time I forgot to divide by 60 myself!

    I just kept thinking: "I know Mach3 can do 3 servos at once, why is the pulse rate so high for just one?"

  16. #16
    Join Date
    Aug 2004
    Posts
    780

    Servos on lathe

    Guys .. I am doing this.
    Using treadmill motors, and gecko 320 drives.
    5 servos; spindle, spindle2, toolchanger, x, y, and 2 steppers (subspindle tilts in a2 and b2).

    I have x and z running, so far, using original screws.
    I use a SS for upto 2 mhz, and very high res (10 quad) encoders.
    I will probably hook up the spindle this weekend (Yeah !).

    Runs fine on x an z, have had trouble with noise? on ss.
    I am building my new chester craftsman lathe as a mini turning center, 7 axis, for 0.001 mm resolution.

    Will go for very stiff ballscrews, around 30 mm D on Z and 20 mm on X.
    Servos are the only correct choice for a lathe spindle, as they are about 100x faster than the mach loop or a step/dir controller as normally run in mach, plus the fact that they are inherently stiff and self correcting.

    FAR, FAR better than step/dir pwm controllers, dc controllers etc., all of which I have on my little test lathe I learned with.

    I have been doing a commercial job this year, should finish next week, and will then finish the lathe.
    The retrofit is about 500 hours, and maybe 7k$ (5k€) in parts.

    Goals;
    Toolchanges in about 1 second, (servo), live tooling (EC collets on subspindle and toolchanger, 0.0003 theoretical resolution).

    I expect to run this for very light commercial use, so I can justify to myself any cost of parts if I can make the money back (payback will be about 5-7 days ).

    I mostly roam on the yahoo groups (mach, diy-cnc, cced, etc) as gcode.fi.
    Happy to help, if I can.

  17. #17
    Join Date
    Mar 2008
    Posts
    56

    lathe.

    what break outboard are you intending on using.

    Im looking at a similar project and would agree on the use of servo drives.
    Im planing on using it for hobbing.

    I have purchased a 400Kg I beam (universal beam) as my build plaform.
    Using rails , high precision ball screws with double sprung nuts.

    6 servos,

    1 for the spindle, x ,y , bar feed, tool change, tool rotation (hobbing)

Similar Threads

  1. Lathe Variable Spindle motor options? VFD? Servo? Stepper? DC?
    By whiteriver in forum CNC Machine Related Electronics
    Replies: 21
    Last Post: 03-17-2011, 01:38 AM
  2. Hard drive servo spindle are any good for home made lathe?
    By patriciooholegu in forum Servo Motors / Drives
    Replies: 5
    Last Post: 12-08-2007, 04:48 PM
  3. spindle encoder
    By heilcnc in forum LinuxCNC (formerly EMC2)
    Replies: 1
    Last Post: 09-10-2007, 03:12 PM
  4. servo as spindle motor for manual lathe.
    By thx1138 in forum CNC Machine Related Electronics
    Replies: 6
    Last Post: 08-24-2006, 08:54 AM
  5. servo verses dc with encoder
    By phil spanner in forum Servo Motors / Drives
    Replies: 8
    Last Post: 03-27-2006, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •