585,971 active members*
4,208 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 22
  1. #1
    Join Date
    Jul 2016
    Posts
    10

    Mach3 setup spindle motor

    Hello,

    I just bought a control board DB25-1205 and a spindle motor driver DDBLDV1.0 but i have issue configuring Mach3.

    The ports on control board are enable 16 and direction on 17. But i cannot get it run properly.
    When i’m booting up the PC(Windows) the motor is off, after i open Mach3 the spindle motor will go on and cannot stop it.
    I think something in the configuration is wrong but i don’t know what.

  2. #2
    Join Date
    Nov 2012
    Posts
    1267

    Re: Mach3 setup spindle motor

    I'm using the same motor and driver (probably the best spindle you can buy in that price range). The machine is at my workplace, so I can't look at the actual config until Monday - but let me try to remember how it's set up.

    I can see what you are doing wrong. The DDBLD is not a step/dir driver.
    - In the "Ports & Pins - Motor outputs" tab, disable the spindle completely. You don't need any pins configured there unless you are using PWM to control the speed.
    - In the "Ports & Pins - Spindle" tab uncheck the "Use spindle motor output".
    - In the "Ports & Pins - Output signals" assign Output 1 to pin 16.
    Now your spindle should turn on and off properly, but I'm not exactly sure how to configure the direction pin. I'm using my spindle for CW only.
    Are you going to use PWM to control the speed? It's very convenient, in my opinion. You can set the spindle RPM right in your CAD/CAM program.

  3. #3
    Join Date
    Jul 2016
    Posts
    10

    Re: Mach3 setup spindle motor

    Thanks for quick answer.
    At this point i just want to test the motor/driver(just bought it). In the future i want to use PWM.
    To use PWM i need to invert the signal.

  4. #4
    Join Date
    Nov 2012
    Posts
    1267

    Re: Mach3 setup spindle motor

    Here are my settings for PWM control (CW only).
    Pin 16 goes to "VE" input on the DDBLD.
    Pin 17 goes to "EN" input.
    Pin 13 (index) goes to "FG" output.

    Attachment 330796
    Attachment 330798
    Click image for larger version. 

Name:	142005-Engine Configuration... Ports & Pins.jpg 
Views:	2 
Size:	176.4 KB 
ID:	330800
    Click image for larger version. 

Name:	141934-Engine Configuration... Ports & Pins.jpg 
Views:	3 
Size:	143.2 KB 
ID:	330802

  5. #5
    Join Date
    Nov 2012
    Posts
    1267

    Re: Mach3 setup spindle motor

    Also...
    Config - Spindle pulleys
    Min speed = 1000 (or whatever the minimum RPM your DDBLD can put out)
    Max speed = 12000
    Ratio = 2 (the DDBLD puts out 2 FG pulses per revolution).

  6. #6
    Join Date
    Apr 2013
    Posts
    1899

    Re: Mach3 setup spindle motor

    Wrong post. Sorry, can't delete.

  7. #7
    Join Date
    Jul 2016
    Posts
    10

    Re: Mach3 setup spindle motor

    Thanks a lot!

    Tomorrow i will try.

  8. #8
    Join Date
    Jul 2016
    Posts
    10

    Re: Mach3 setup spindle motor

    I've tried your settings and it work nice! thanks

    Now i have a few issues:
    - setting up the PWM, as i setup didn't control the speed, it measure but cannot set.
    - when i close or open the application the motor will go on.

  9. #9
    Join Date
    Nov 2012
    Posts
    1267

    Re: Mach3 setup spindle motor

    Did you set the DIP switch on the DDBLD for external PWM?
    My motor briefly turns on when the computer starts (during the BIOS POST phase). With a big machine it would be a problem; then again with a big machine I would use a real safety relay instead of "soft e-stop".

  10. #10
    Join Date
    Jul 2016
    Posts
    10

    Re: Mach3 setup spindle motor

    Yes, SW3 is ON, the others are OFF.

    I've checked the output and is not PWM signal.

    EDIT:


    I've been playing around and set the Output Signal:
    Output1 to pin 16 and Output2 to Pin 17.

    Than at the Spindle Setup:

    Relay Control:
    - Clockwise to Output 2.


    The other settings i've left as it is.
    After i'm saving the settings the spindle start up and run with 4000rpm(at the spindle speed is no changes), the software stop is ON.
    If i reset the software stop than it will run at maximum speed and cannot control the speed.

    Why the spindle speed is 0? And the RPM is showing normal?

  11. #11
    Join Date
    Jul 2016
    Posts
    10

    Re: Mach3 setup spindle motor

    The signal is very noise, run at 25khz but noise.

    I still believe the software is not set properly. Now after i've done a spindle calibration when i'm turning on it will gain speed gradually.
    But i have an error message 'too slow for pulley using min' and it will continue to run at full speed.

  12. #12
    Join Date
    Dec 2003
    Posts
    24221

    Re: Mach3 setup spindle motor

    Apart from the issues above, if you load Mach and the spindle turns on, it means you do not have the spindle power off on boot up, this is done with a hard wired E-Stop circuit and control relay, the start control P.B. will enable the motor power this way.
    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
    Join Date
    Jul 2016
    Posts
    10

    Re: Mach3 setup spindle motor

    No i don't have hardwired the E-stop, what is the control relay?

  14. #14
    Join Date
    Dec 2003
    Posts
    24221

    Re: Mach3 setup spindle motor

    A control relay is wired as a E-stop relay, usually a low voltage circuit that has a start P.B. and any E-stop P.B.'s in series with any other emergency contact or preventative measure, this relay usually removes power from any power contactor or relay coil that is feeding a spindle and servo systems..
    This give some idea of control circuitry,
    http://static.schneider-electric.us/...0140CT9201.pdf
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

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

  15. #15
    Join Date
    Jul 2016
    Posts
    10

    Re: Mach3 setup spindle motor

    Thanks, at this point i don't want to use any relay, just i will bypass the Emergency E-stop.

  16. #16
    Join Date
    Jun 2010
    Posts
    4256

    Re: Mach3 setup spindle motor

    at this point i don't want to use any relay, just i will bypass the Emergency E-stop.
    Do not expect to get much more advice here if you do this.
    Bypassing the Emergency Stop is a bit like trying out a car before you put the brakes in.
    But it is your choice.

    Cheers
    Roger

  17. #17
    Join Date
    Apr 2013
    Posts
    1899

    Re: Mach3 setup spindle motor

    Quote Originally Posted by RCaffin View Post
    at this point i don't want to use any relay, just i will bypass the Emergency E-stop.
    Do not expect to get much more advice here if you do this.
    Bypassing the Emergency Stop is a bit like trying out a car before you put the brakes in.
    But it is your choice.

    Cheers
    Roger
    ...but his problem is with the spindle control, not the E-stop. He will realize the need of E-stop and how he implements it is his business. Personally I disagree with the need of relay which is software controlled, in my opinion E-stop is NOT Emergency Stop, but Electronic Stop, meaning it should stop motion and the spindle, but NOT breaking all the electrical power. If I need to do that I do that with a mechanical red mushroom switch, THAT is my Emergency Stop. Of course, that could be done using a relay circuit as well, but would NEVER do it through Mach3 and would not let Mach3, or any other software or a computer to control that. Emergency Stop should NOT be coupled to the reliability of a computer or a software.

    Your analogy is wrong. He is not trying to drive a car without brakes, he is trying to start the engine in a car without brakes on a test bed. Brakes are not involved and not part of his engine troubles.

  18. #18
    Join Date
    Jun 2010
    Posts
    4256

    Re: Mach3 setup spindle motor

    Ah well, you may be right there (engine on a test bed).
    As long as the engine stays ON the test bed. That's the bit which worries me. These things can bite!

    Yes, I do have a big red STOP button. It disables all the servo drivers and the spindle driver directly, AND sends an eStop signal to Mach. I agree with you entirely about not trusting the SW (or Windows).

    Cheers
    Roger

  19. #19
    Join Date
    Dec 2003
    Posts
    24221

    Re: Mach3 setup spindle motor

    Yes, I do have a big red STOP button. It disables all the servo drivers and the spindle driver directly, AND sends an eStop signal to Mach. I agree with you entirely about not trusting the SW (or Windows).
    The main point E-stop is a hard wired circuit.

    This is why in some jurisdictions, Safety Relays are now mandatory for commercial machines.
    http://literature.rockwellautomation...d556_-en-p.pdf
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

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

  20. #20
    Join Date
    Dec 2003
    Posts
    24221

    Re: Mach3 setup spindle motor

    Incidentally in all the decades I have been working in the CNC field, I have only come across ONE machine manuf. of a CNC machine where they had fitted it with a Fanuc control and set up the E-Stop to shut the whole machine down, the operators used to curse it as being a 20ft bed mill, they often had to shuttle it back to the end where the reference limit was every time an estop occurred in order to set zero.
    This is why all the major systems have a E-stop input that is to alert the control that a external e-stop has taken place, just as Mach even has.
    Al..
    CNC, Mechatronics Integration and Custom Machine Design

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

Page 1 of 2 12

Similar Threads

  1. dyna 4000 mach3 spindle setup
    By lemur in forum DynaCNC
    Replies: 1
    Last Post: 01-10-2017, 02:22 AM
  2. LG iS3 SPC MOTOR SPEED CONTROLLER + MACH3 HOW TO SETUP?
    By JaMuTo in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 10-21-2015, 01:24 AM
  3. Setting up pwm signal for Spindle in Mach3 - copying setup from emc/linuxcnc.
    By craynerd in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 04-17-2012, 08:00 AM
  4. How to setup stepper motor as spindle?
    By bebob1 in forum LinuxCNC (formerly EMC2)
    Replies: 6
    Last Post: 02-05-2012, 08:07 PM
  5. Can i use/setup a servo motor as spindle in mach3
    By schwinndk in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 03-06-2010, 07:00 PM

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
  •