584,812 active members*
5,484 visitors online*
Register for free
Login
Results 1 to 18 of 18
  1. #1
    Join Date
    Apr 2006
    Posts
    266

    Mach controlled spindle

    what do you have to replace to get mach to fully control the spindle of an x2? I want to control the direction of the spindle and the speed of which it spins. Would I have to replace the motor with a servo, encoder, and a gecko or something?

  2. #2
    Join Date
    Sep 2006
    Posts
    607
    There are a couple cards out there that will do this for you.

    http://www.cnc4pc.com/ has one. It's the C6, and Hoss is using one.
    http://homanndesigns.com/store/ Also has a couple speed controller cards. I bought 2 of the digispeed XL cards. Havn't tested them yet, but I hope to do so soon.

  3. #3
    Join Date
    Apr 2006
    Posts
    266
    i looked at those. I have the c11 board with that card built in. As i understand it you cannot control the reverse of the spindle. Not that it is that important. But i have also heard that the speed card from cnc4pc is half hit or miss. Just trying to find a good way to do it.

  4. #4
    Join Date
    Sep 2006
    Posts
    607
    Reverse the spindle? well you can do that with the Digispeed card. Or else you will need to wire up a relay connected to the CCW command.

  5. #5
    Join Date
    Mar 2006
    Posts
    489
    Servo motor + gecko works great for the spindle.

    I'll never go back to manual on/off.

  6. #6
    Join Date
    Apr 2006
    Posts
    266
    can you give me any more info on what motor you used and how you wired it up? Did you set it up in mach with an extra axis or can you just run it from the spindle setup in mach.

  7. #7
    Join Date
    Mar 2006
    Posts
    489
    Sure. I used a keiling 900ozin servo motor, Gecko g320 driver, us digital 100cpr encoder, 72vdc power supply. Max speed of the servo motor is about 3000rpm. (the PS only gives out 68vdc, I don't know why) I've geared it up to give me about 5000 at the tool.

    You could probably get away with a coarser encoder. I just used the regular spindle setup in Mach3. It's trial and error to get the 'steps/per' setting right so that when you tell it to turn at 3000rpm, it does turn at 3000rpm, but that's pretty minor. Using some additional feedback sensor would simplify the process since you can then use the auto spindle calibration.

    It would be simple to switch the spindle to a real axis for coordinated spindle motion. I havent tried it yet, but plan to this weekend to do some threading on some short parts I can hold in a collet.

    One nice thing is that the spindle speed remains constant when cutting...

    Paul

  8. #8
    Join Date
    Apr 2006
    Posts
    266
    paul,

    what do you mean by using the additional feedback sensors? What would they be and where could you get them?

  9. #9
    Join Date
    Mar 2006
    Posts
    489
    Photo-reflective sensor, 1 pulse per rev. Everyone sells them.

  10. #10
    Join Date
    Mar 2006
    Posts
    304
    Quote Originally Posted by fatal-exception View Post
    Photo-reflective sensor, 1 pulse per rev. Everyone sells them.
    EVERYONE?!? :stickpoke: Just kidding - you can also pick up an optical interrupter and make a disk with as many slots as you want (more slots = better resolution if Mach allows multiple pulses per rev like a shaft encoder)

    I picked up a dozen of these http://search.digikey.com/scripts/Dk...name=H21LTB-ND and am using them for limit, home and index pulses on my X3.

    Good luck.
    Every day is a learning process, whether you remember yesterday or not is the hard part.
    www.distinctperspectives.com

  11. #11
    Join Date
    Jul 2004
    Posts
    442
    Cadmonkey:
    Really glad to see your source. Please post your wiring of these; not necessarily the connection to Mach for all the possibilities, just the power in, resistors, and signal out. I'm electronically handicapped and the spec drawings don't mean anything to me. If you can give me + and - 5v, this value resistor here, and signal out here, I'd be grateful.
    Ozzie

  12. #12
    Join Date
    Mar 2006
    Posts
    304
    A simple schematic. These are pretty failsafe - if the supply voltage dies, the output will too stopping the mill. If wire breaks, same. Yet each one can be wired independently. So you can have a separate max limit, min limit, home limit, etc. You'll probably need an extra LPT card but for $20 it's worth it. The switches are all opto coupled so as long as you put a reasonable fuse (say 1A) on the logic line from your PC's 5V power supply out to these, you won't blow anything up.
    Attached Thumbnails Attached Thumbnails H21LTB Schematic.jpg  
    Every day is a learning process, whether you remember yesterday or not is the hard part.
    www.distinctperspectives.com

  13. #13
    Join Date
    Jul 2004
    Posts
    442
    Thanks CM,
    This cap, it's just a little ceramic thing like from radio shack? And the resistors are 270 ohm, 1/8 watt?
    The fuse should be, I don't get that, on the power supply +5, or the logic output, or both?
    It's the jargon that confuses me I guess.
    Ozzie.

  14. #14
    Join Date
    Mar 2006
    Posts
    304
    Cap - yep - nonpolarized ceramic or even a surface mount if you're daring to solder those...

    Resistors - yes - both 270 ohm 1/8w - gives a strong +5V when nothing is in the channel, and drops to 0.25v when interrupted which is plenty low enough to issue a logic 0 to the LPT.

    I suggest a fuse inside your control enclosure, fusing the 5V power line that would go out and feed however many of these you choose to run. That way if a line get's torn or caught up in the ways, or hit by an endmill it won't blow up the PC's power supply, just kill power to the units, which will result in a safe shutdown.

    After posting I thought some more, you may be able to daisy chain these together if you don't want to add a second LPT card. If you use the logic output from the first and connect that to the 5V input on the second and so on down the line with the last logic out connecting to the pin on the LPT it should allow you do the same as using the normally closed contacts on a string of microswitches run in series. These opto-interrupters are pretty robust and can handle a good deal of current, while only consuming a very small amount. I probably wouldn't daisy chain more than 3 or 4 though.

    HTH
    Every day is a learning process, whether you remember yesterday or not is the hard part.
    www.distinctperspectives.com

  15. #15
    Join Date
    Apr 2006
    Posts
    266
    cadmonkey,

    at the industrial hobbies website under mill instructions. They show how to put them together. Just use the diodes on the lines that are shared. There is a better choice of interrupters that will allow a better assortment of voltages.

  16. #16
    Join Date
    Jul 2004
    Posts
    442
    Thanks CM
    Ozzie

  17. #17
    Join Date
    Aug 2006
    Posts
    2758
    Take a look at the following post: http://www.cnczone.com/forums/showpo...postcount=1758

  18. #18
    Join Date
    Aug 2006
    Posts
    2758

    spindle control using HP UHU drive and Mach3 step/dir interface

    Here are some videos of lathe spindle control using HP UHU drive and Mach3 step/Dir interface from the same source as the prior link.

    [ame="http://www.youtube.com/watch?v=eB1AaByTjYc"]YouTube - UHU lathe video[/ame]

    Machining titanium rod here:

    [ame="http://www.youtube.com/watch?v=q91HbJocS4Q"]YouTube - UHU mini turn[/ame]

Similar Threads

  1. CNC Controlled Spindle motor speed control
    By gregmary in forum CNC Machine Related Electronics
    Replies: 13
    Last Post: 02-28-2009, 02:01 AM
  2. cnc controlled mandrel bender controlled by mach3
    By timmyb199 in forum Bending, Forging, Extrusion...
    Replies: 5
    Last Post: 05-31-2007, 12:35 AM
  3. Mach 3 no spindle - but OK in Mach 2
    By zcases in forum Mach Software (ArtSoft software)
    Replies: 9
    Last Post: 07-31-2006, 01:38 PM
  4. PWM controlled surplus spindle motor
    By JFettig in forum CNC Machine Related Electronics
    Replies: 72
    Last Post: 04-09-2005, 12:26 AM

Posting Permissions

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