Controlling spindle from Mach 3


Results 1 to 18 of 18

Thread: Controlling spindle from Mach 3

  1. #1
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default Controlling spindle from Mach 3

    I see a few descriptions of controlling spindles from Mach 3, but nothing I found that answers my question.

    I have one of these breakout boards:

    Controlling spindle from Mach 3-51j-kpktj2l-jpg

    and this spindle controller (6v - 90v)

    Controlling spindle from Mach 3-51al9ajetol-jpg

    My setup is running fine with the pot that comes with the spindle controller and measured it out that it varies the control voltage from 0-5V. The controller pot pinout is GND-VAR-+5V

    On the breakout board I have a 0-10V (-) and 0-10V (+) and a PWM output.

    I have never attempted to control my spindle from Mach3 so pardon the ignorance.

    Would i just run a line from PWM to the VAR input on the controller? or somehow use the 0-10V lines and configure Mach3 to run the spindle at 50%?

    Here's some more pinout info for the BOB

    Controlling spindle from Mach 3-mach3-4_conew1-jpg

    Similar Threads:


  2. #2
    Registered
    Join Date
    Jan 2013
    Location
    USA
    Posts
    119
    Downloads
    0
    Uploads
    0

    Default

    Your electronics are mismatched!



  3. #3
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    what about this controller for the spindle, then.

    Controlling spindle from Mach 3-51ucytdbrml-jpg

    12V 24V 48V 110V DC Motor Speed Driver Controller PWM MACH3 Spindle Governor



  4. #4
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    I'm not an electronics expert, but I think you can use resistors to covert the 0-10V output from the breakout board into the 0-5V for the spindle controller. You just need to reduce the voltage in half.

    Another option is to make you're own PWM to 0-5V circuit, and just use take the PWM signal from Mach3 from one of the output terminals on the breakout board. There's a schematic in the Super Pid thread here, and you can build it for about $5. I built one for my Super Pid.

    In the Super Pid manual here. http://www.vhipe.com/product-private...structions.pdf

    There's a schematic on page 22 to build a PWM to 0-5V circuit, and on page 21, it shows how to convert 0-10V to 0-5V.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  5. #5
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ger21 View Post
    I'm not an electronics expert, but I think you can use resistors to covert the 0-10V output from the breakout board into the 0-5V for the spindle controller. You just need to reduce the voltage in half.

    Another option is to make you're own PWM to 0-5V circuit, and just use take the PWM signal from Mach3 from one of the output terminals on the breakout board. There's a schematic in the Super Pid thread here, and you can build it for about $5. I built one for my Super Pid.

    In the Super Pid manual here. http://www.vhipe.com/product-private...structions.pdf

    There's a schematic on page 22 to build a PWM to 0-5V circuit, and on page 21, it shows how to convert 0-10V to 0-5V.
    Thanks, Ger. I was thinking that exact thing with the voltage reducer thing just this morning. The SuperPID seems pretty cool. I'll check it out!



  6. #6
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    I wasn't saying to use a SuperPID, just that the schematics happen to be in their manual.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  7. #7
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ger21 View Post
    I wasn't saying to use a SuperPID, just that the schematics happen to be in their manual.
    Managed to figure that out going through the manual as I started to understand that the SuperPID was for AC motor.

    Found the schematics and I think they'll work perfect! Especially with the option to use my existing pot for a "manual override" option.



  8. #8
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Mzones View Post
    Your electronics are mismatched!
    Yeah, the circuit board green shades are a little off, eh?



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

    Default

    Quote Originally Posted by areinike View Post
    what about this controller for the spindle, then.


    12V 24V 48V 110V DC Motor Speed Driver Controller PWM MACH3 Spindle Governor
    For a DC motor, You may be better off to go with one of the KB/Baldor DC SCR or PWM drives off ebay.
    Al.

    CNC, Mechatronics Integration and Custom Machine Design

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


  10. #10
    Registered
    Join Date
    Jan 2013
    Location
    USA
    Posts
    119
    Downloads
    0
    Uploads
    0

    Default

    Yeah, the circuit board green shades are a little off, eh?
    Here's what's happening


    Mach creates a TTL level PWM digital signal And sends it to the printer port.
    The printer port sends to the BOB.
    The BOB takes this signal and creates a 0-10 V PWM digital signal, then through a RC filter
    smoothing it out creating a 0-10V analogue signal to output of the BOB.
    Now your taking this 10V analogue signal Through a voltage divider, to create a 0-5V analogue signal.
    Then you're sending this 5V analogue signal to your driver board, which creates a digital TTL level PWM
    signal which triggers the output device, controlling the motor.

    And you don't think that your electronics are mismatched?

    No problem with the shading , It's pretty much Black and White.
    Its some ware between 50 and 200. 50 may be a little high


    Mike



  11. #11
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Mzones View Post
    Here's what's happening


    Mach creates a TTL level PWM digital signal And sends it to the printer port.
    The printer port sends to the BOB.
    The BOB takes this signal and creates a 0-10 V PWM digital signal, then through a RC filter
    smoothing it out creating a 0-10V analogue signal to output of the BOB.
    Now your taking this 10V analogue signal Through a voltage divider, to create a 0-5V analogue signal.
    Then you're sending this 5V analogue signal to your driver board, which creates a digital TTL level PWM
    signal which triggers the output device, controlling the motor.

    And you don't think that your electronics are mismatched?

    No problem with the shading , It's pretty much Black and White.
    Its some ware between 50 and 200. 50 may be a little high


    Mike
    I know what you're saying. Ultimately I'm looking at a 0-5V input to the motor controller. So having a PWM signal converted to DC then reduced and them converted back to PWM seems to get crazy. So would it make more sense to utilize the PWM line and convert that to a 0-5V signal for the motor controller to avoid few "conversions?"

    Ideally I would get a PWM controlled spindle controller - but for now I need to make something work if at all, worst case I'll manually use the pot the controller comes with.



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

    Default

    You may not want to mess with building something, but Op-amps are very good at scaling, if you have a signal, say, 0-10v and you want to scale it 50%, a Op-amp is made for this.
    The OP-AMP
    http://ruggedcircuits.com/html/circuit_gallery.html#TOC
    I am working on a project right now when time permits, that would control a 0-5v/10vdc spindle through the serial or USB port via one of the present Mach plugins, eliminating the BOB's etc, but I cannot give a time line at this point.
    Al.

    CNC, Mechatronics Integration and Custom Machine Design

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


  13. #13
    Registered
    Join Date
    Jan 2013
    Location
    USA
    Posts
    119
    Downloads
    0
    Uploads
    0

    Default

    If you could use a different output pin other than the one designated for the 0-10v analogue log signal.
    You should get 5 volt PWM signal out of the BOB
    Look at the schematic that ger21 suggested Ignore the 7414 you only interested is to RC filter on right
    That's what you need. That will give you the 0-5V analogue signal.

    All of the output pins on the BOB should be 5V signals, other than the 0-10V analogue.



    Mike



  14. #14
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Well, I made some progress on this. I've opted to wire for the PWM control with a 100uF cap and 22K ohm resistor. The ripple is almost non existent and the spindle ramps up. Couple of things. I'm getting about 4.65VDC out to the spindle controller, obviously a little less than the max and I usually route at MAX. Another thing I've noticed is that the ramp up takes about 12 seconds (starts cutting before the spindle completely spins up). So, here's what I've found.

    Mach 3 isn't controlling the ramp to that extent. I found this site (Sample)RC Low-pass Filter Design for PWM - Result -. Based on 100Hz PWM frequency, I managed to determine that with a 100uF cap I would need a 2.2K ohm resistor to changle the ramp up to 1.2 seconds - much better. So I think I'm on the right track. I'd like to get to as close to 5V as possible as well so that'll be my next goal.

    Thanks for the help all!



  15. #15
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Ended up installing an adjustable pot (1K-10K ohm) and when I was comfortable with the ramp up and ramp down speed I measured out 5.7K ohm. With the 100uF cap, it seems to work pretty good.



  16. #16
    Registered
    Join Date
    Aug 2013
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Did a quick test with a 1" square test I made to ensure calibration. Just push go and it does the rest, spindles up, cuts, spindles down. Ahhh, nice.



  17. #17

    Default Re: Controlling spindle from Mach 3

    so I'm still confused... is it possible to just connect that 0-10v output directly to where the POT would go on a dc motor controller.... I am using the same BOB and have a dc tread mill motor and driver running it. I'm just scared to wreck something



  18. #18
    Member
    Join Date
    Apr 2013
    Location
    England
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Controlling spindle from Mach 3

    Quote Originally Posted by areinike View Post
    Did a quick test with a 1" square test I made to ensure calibration. Just push go and it does the rest, spindles up, cuts, spindles down. Ahhh, nice.
    Sorry to dig up an old thread, but i have the exact same setup and wondered if you have used the single PWM pin on the bottom of the breakout board or whether you used the 0v-10v output on the right?

    I have made the 0v-10v to 0v-5v circuit as suggested in the super PID manual which appears to be working well but i cant get the spindle to move!

    Thanks in advance



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

Controlling spindle from Mach 3

Controlling spindle from Mach 3