Need Help! Servo as spindle for mini lathe


Results 1 to 6 of 6

Thread: Servo as spindle for mini lathe

  1. #1
    Registered Moriduri's Avatar
    Join Date
    May 2015
    Location
    Italia
    Posts
    13
    Downloads
    0
    Uploads
    0

    Smile Servo as spindle for mini lathe

    Hello, I'm currently retrofitting an old mini lathe to CNC using LinuxCNC as controller.
    My goal is to understand how to setup a servo motor as a spindle and how to synchronize it with the Z carriage in order to do rigid tapping and plain threading (I probably won't ever do rigid tapping on this machine but for future projects it will certain come in handy knowing how to do it).
    As far as I know for plain single point threading only the encoder index signal is needed, instead for tapping the encoder quadrature phase A and B are required too.
    My current hardware is composed of: PCI express parport, a cheap chinese 5 axis breakout board with optoisolated inputs, Leadshine 57bl180d servo motor + ACS806 servo drive, one nema17 stepper for the X axis and one nema23 stepper for the Z axis.
    The servo drive works with pulse/dir signals (I've tried to set it up as the X axis, using stepconf wizard to configure its parameters, and it works fine) and outputs the encoder differential quadrature phase A, B and index Z.
    Unfortunately I've no experience at all with advanced HAL programming other than using the stepconf wizard so any advice and suggestions would be greatly appreciated!!

    Thanks, Matteo

    Similar Threads:


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24220
    Downloads
    0
    Uploads
    0

    Default Re: Servo as spindle for mini lathe

    To give you an idea how it is done with more sophisticated systems is with the use of electronic gearing, where the servo axis is geared off of the relatively imprecise spindle encoder/axis.
    AFAIK Linux has the ability to use a motion card, which may make it possible, the Galil cards I use can do it, the other alternative is the relatively imprecise 1pulse/rev method.
    Al.

    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  3. #3
    Registered Moriduri's Avatar
    Join Date
    May 2015
    Location
    Italia
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: Servo as spindle for mini lathe

    Setting the encoder's PPR to around 400 wouldn't allow the parport to handle it? I'd prefer to avoid extra cards if possible.

    Matteo.

    Inviato dal mio ASUS_Z00AD utilizzando Tapatalk



  4. #4
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    644
    Downloads
    0
    Uploads
    0

    Default Re: Servo as spindle for mini lathe

    Quote Originally Posted by Moriduri View Post
    Setting the encoder's PPR to around 400 wouldn't allow the parport to handle it? I'd prefer to avoid extra cards if possible.

    Matteo.

    Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
    Absolutely, LinuxCNC can do anything a fancy motion card can do with only a (or a couple) parallel port(s),
    if you accept the limits of lower maximum pulse rate and lower encoder resolution

    Since your drive outputs A/B/Index it should be straight forward to configure LinuxCNC for threading and rigid tapping
    (as long as you have direct drive so you get 1 index per turn)



  5. #5
    Registered Moriduri's Avatar
    Join Date
    May 2015
    Location
    Italia
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: Servo as spindle for mini lathe

    Quote Originally Posted by PCW_MESA View Post
    Absolutely, LinuxCNC can do anything a fancy motion card can do with only a (or a couple) parallel port(s),
    if you accept the limits of lower maximum pulse rate and lower encoder resolution

    Since your drive outputs A/B/Index it should be straight forward to configure LinuxCNC for threading and rigid tapping
    (as long as you have direct drive so you get 1 index per turn)
    I can lower the PPR even more if needed (4000 default divided by 255 max), stepgen limits and therefore lower RPM max isn't that big of a problem cause for now i'm just interested in know how to make it work so that is useable.

    Matteo.

    Inviato dal mio ASUS_Z00AD utilizzando Tapatalk



  6. #6
    Registered Moriduri's Avatar
    Join Date
    May 2015
    Location
    Italia
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: Servo as spindle for mini lathe

    Any ideas on how to implement those funtions in HAL?

    Matteo.

    Inviato dal mio ASUS_Z00AD utilizzando Tapatalk



Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Servo as spindle for mini lathe

Servo as spindle for mini lathe