[ Log In ]
[ Register ]

Question #: 15498

Question: [1.5 kW (kilowatt) Inverter (Variable Frequency Drive - VFD)] Im having a problem getting Mach 3 to control the spindle on and off

Current Solution

If you are using the Mach3 USB controller:

Make sure to watch this video:



If you are still having issues, make sure to confirm that you send the specific output you want to use to PORT 3. This is not mentioned in the video. If you are using OUT1 on the controller, make sure to remove that pin number from the Motor outputs (config -> ports & pins -> motor outputs) for the spindle line and set it up in the outputs (config -> ports & pins -> outputs).

If you are using the Pokeys57CNC controller:

Watch this video:

Respond:

Other Possible Solutions to this Question

  • Having trouble getting outputs to work. I have followed the video and searching qusrions see that Port 3 has to be enabled and have checked tha. tI have the 24v PS connected to 24V and DCM on the board. Ive enabled the outputs under the spindle configuration.

    Are you using this output with a relay, or without a relay?

    Additional Information:
    With a relay. Seems to be only Output 1- relay works fine on 2,3 or 4

    Click the link to add information to this solution:
    Having trouble getting outputs to work. I have followed the video and searching qusrions see that Port 3 has to be enabled and have checked tha. tI have the 24v PS connected to 24V and DCM on the board. Ive enabled the outputs under the spindle configuration.

  • Can you control the spped of the 2.2 KW spindle using the breakout board and Mach3 soft ware?

    Yes, you can control the speed of the 2.2 kW spindle, and the other spindles we sell, through Mach3 software. It requires making some changes to the settings in Mach3 and in your inverter. It also requires an additional part, which is called a USB to Serial Converter, found on our site here:

    https://www.buildyourcnc.com/item/Interfaces-newbiehack-Interfaces-TTL232R-USB-UART-Serial

    I have some additional instructions, that I will send upon request, by email. I will also be adding a complete tutorial and video, to the website, on how to do this soon.

    Additional Information:
    20

    Click the link to add information to this solution:
    Can you control the spped of the 2.2 KW spindle using the breakout board and Mach3 soft ware?

  • Mach 3 stalls in the middle of a file and the dwell button is flashes randomly. Can't control motors and have to re-start Mach 3. Any help?

    Is this a licensed version of Mach 3? If not and you are currently running the demo version, mach 3 will have only 500 lines of G-code available for cutting. Which will not allow you to cut or move the machine after the first 500 lines.

    Additional Information:
    Yes, It is a licensed version of Mach 3.

    Click the link to add information to this solution:
    Mach 3 stalls in the middle of a file and the dwell button is flashes randomly. Can't control motors and have to re-start Mach 3. Any help?

  • We have the CW 3000 chiller. Running a water cooled spindle and water temp reads rease 30 (deg C). But no fan operation. Do we have a problem?

    We ran the water cooled spindle longer yesterday. When the chiller read 31 deg C the fan came on.

    Click the link to add information to this solution:
    We have the CW 3000 chiller. Running a water cooled spindle and water temp reads rease 30 (deg C). But no fan operation. Do we have a problem?

  • I bought a 2.2 Kw spindle and YL620 A-2 from you and am getting an ER 4 message. How do I fix it?

    If the VFD is presenting an ER 4 error, the VFD is most likely damaged. The VFD will either need to be serviced or you will need to purchase another VFD. The latter is probably the less expensive option, unfortunately.

    Additional Information:


    Additional Information:
    i had that error and found a power in wire touching and fixed and started and all was good.
    good luck

    Additional Information:
    i had that error and found a power in wire touching and fixed and started and all was good.
    good luck

    Additional Information:
    i had that error and found a power in wire touching and fixed and started and all was good.
    good luck

    Additional Information:
    i had that error and found a power in wire touching and fixed and started and all was good.
    good luck

    Click the link to add information to this solution:
    I bought a 2.2 Kw spindle and YL620 A-2 from you and am getting an ER 4 message. How do I fix it?

  • Are you using Mach 3 or 4? Do you ever use the etherenet outlet to control drivers?

    We still use Mach3 with a parallel port. We are looking into newer boards with USB/ethernet communication.

    Click the link to add information to this solution:
    Are you using Mach 3 or 4? Do you ever use the etherenet outlet to control drivers?

  • Are there plans to release a USB Controller to work with the Planet CNC Output Board for more advanced spindle control from within Planet CNC?

    At this time we are working to release a new USB controller board that will be compatible with Mach4 software and do not have any immediate plans to update the Planet-CNC USB board.

    Click the link to add information to this solution:
    Are there plans to release a USB Controller to work with the Planet CNC Output Board for more advanced spindle control from within Planet CNC?

  • HEY ! I HAVE PURCHASED A VFD WITH MATCHING SPINDLE 1.5KW AND CONTROL PROGRAM UCCNC. MY INTERFACE CARD IS DB25, THE QUESTION HOW DO CONNECT TO DB25 SO THAT CAN SPEED UCCNC? SINCERELY "CNC BEGINNERS"

    Identify the Control Signals: First, determine which control signals from the DB25 interface card are used for spindle speed control. Typically, these are PWM (Pulse Width Modulation) signals or analog voltage signals.

    VFD Configuration: Your VFD should be configured to accept the type of control signal your DB25 card provides. This involves setting parameters in the VFD that correspond to the type of input signal it will receive for speed control.

    Wiring: Connect the appropriate output pins from the DB25 card to the input terminals on the VFD. This usually involves connecting the PWM or analog output to the corresponding input on the VFD. Make sure to consult the manuals for both your VFD and interface card for specific wiring details.

    UCCNC Settings: Configure UCCNC to output the correct type of signal (PWM or analog) that matches your VFD's configuration. This is done through the software's spindle setup section.

    Test and Adjust: Run some tests to ensure that the spindle speed is being correctly controlled by UCCNC. You might need to tweak settings in either the VFD or UCCNC for optimal performance.

    Click the link to add information to this solution:
    HEY ! I HAVE PURCHASED A VFD WITH MATCHING SPINDLE 1.5KW AND CONTROL PROGRAM UCCNC. MY INTERFACE CARD IS DB25, THE QUESTION HOW DO CONNECT TO DB25 SO THAT CAN SPEED UCCNC? SINCERELY "CNC BEGINNERS"

  • I AM CURRENTLY HAVING SOME PROBLEM SQUARING THE GANTRY AND MY STEPS PER INCH ARE NOT 1422.22 ACCORDING TO YOUR CALCULATIONS IN AUTO SET UP THEY COME OUT LIKE 1416.#### THIS A BIG DEAL?

    Your steps per inch will vary. I suggest watching my calibration video.

    Click the link to add information to this solution:
    I AM CURRENTLY HAVING SOME PROBLEM SQUARING THE GANTRY AND MY STEPS PER INCH ARE NOT 1422.22 ACCORDING TO YOUR CALCULATIONS IN AUTO SET UP THEY COME OUT LIKE 1416.#### THIS A BIG DEAL?

  • how do I connect my spindle to mach3 so mach3 can control it

    It is not necessary to connect the spindle VFD (Variable Frequency Drive also called an Inverter) to the computer or CNC motion electronics. The VFD can be controlled independently using the control panel on the VFD. The control panel has the ability to control all aspects of the spindle including Speed, Torque, limits, etc. However, you can connect the VFD to the computer so the CNC control program can control the spindle during the CNC Machine operation. You will need to connect the VFD to the computer via a serial conection (in this case, it is the RS-485 protocol).

    The following are instructions on how to connect the VFD to Mach3 via this RS-485 serial connection.

    The first thing you will need is the dynamic link library to pair with mach3 called the Huanyang VFD Mach3 PlugIn. You can find this file at the mach3 support forum here: http://www.machsupport.com/forum/index.php/topic,14182.0.html

    You will also need to download the Microsoft .net 3.5 framework and install it: https://www.microsoft.com/en-us/download/details.aspx?id=21

    Follow the pdf that comes with the library file, but here is a synopsis of what you need to do (I also added a lot more information that may be useful during this process as the manual does not cover the main connections that need to be done):

    You will need to program your VFD so that it knows how to communicate with mach3 and the computer (go into the programming mode of the VFD and change these parameters):
    - PD001 - value 2 - Enables with communication aspect of the VFD
    - PD002 - value 2 - Enables frequency control from the communcations port
    - PD163 - value 1 - VFD address
    - PD164 - value 1 - Baud rate of 9600 (speed of the communication)
    - PD165 - value 3 - 8N1 RTU - 8 bits (that's the size of the word that gets communicated), N (No parity or no error checking) and 1 (1 stop bit)

    Copy the dll file to the PlugIns folder of mach3.

    Connect the RX and TX lines to your computer. There are a couple ways you can do this, but the recommended way would be to use an FTDI USB device which converts a USB to a serial com port. The device will have Rx and Tx connectors to connect to the VFD terminals with the same labels. This method is recommended since serial ports are not as common in computers these days.

    Next, you will need to configure mach3 to use the plugin library. Start mach3 and click on Menu -> config ->Config Plugins. Enable the new plugin by clicking on the red cross on the left column next to the plug in. Restart mach3 after doing this.

    No you need to configure mach3 to use the HuanyangVFD plugin. Go to the ports & pins configuration and select the spindle setup tab. Make sure that the Disable Spindle Relays checkbox is unchecked. We don't want mach3 to output a signal for a relay since the spindle will start up and turn off within the VFD and not from an external relay.

    Next, go to the HuanyangVFD settings by clicking on Menu -> plugin control -> HuanyangVFD. Set the parameters to the same settings you put into the VFD programming. The com port will be shown as new hardward when you plug in the USB FTDI device. A little bubble will be displayed at the bottom right where it will notify you that a new device is being installed (be patient while windows assigns a com port). Alternatively, you can use the windows device manager to see which port was set for the new USB FTDI device). You may need to restart mach3 several times until you get the correct information displayed in the PD001 and PD002 fields. When the com port is correct and the other parameters, like baud and VFD address is the same as you entered in the programming, then the PD001 and PD002 will show the number 2, otherwise, a 99 will appear which means that communication was not successful.

    You can now control the on/off and RPM of the spindle using the RS485 communication between mach3 and the VFD.

    Additional Information:
    The question was how to connect the spindle to the redfy. I did not receive a VFD.
    I have the redFly system and a 2.2kW Spindle - 110V how do i connect the spindle?

    Additional Information:
    If you received a spindle without a VFD, please contact us asap. Our spindle will not work without a VFD.

    Additional Information:
    Hi, how is this setup in mach4?

    Click the link to add information to this solution:
    how do I connect my spindle to mach3 so mach3 can control it

  • My stepper motors stopped working all of a sudden. Mach 3 is running fine, just no signals getting to the motors. The lights on the motor drivers began blinking erratically when this started. Any advice where a problem like this can come from would be greatly appreciated.

    The drivers have quite a bit of protection, so you probably won't ruin anything. You motors are jumping and that is just the motors engaging from getting power from the power supply.

    There could be many reasons your motors don't turn. Consider these troubleshooting tips:

    - If you are using our parallel breakout board, make sure that the step pins are set for active low (config -> Ports and Pins -> Motor Outputs -> the steps pins should be enabled and set active low)

    - The parallel breakout board is powered (connect the USB to the computer using a USB cable)

    - In Mach3, make sure you have jog enabled (a little green button at thelower middle of the page in the program run screen).

    Additional Information:


    Additional Information:
    DS26

    Click the link to add information to this solution:
    My stepper motors stopped working all of a sudden. Mach 3 is running fine, just no signals getting to the motors. The lights on the motor drivers began blinking erratically when this started. Any advice where a problem like this can come from would be greatly appreciated.

  • When I start my spindle I get a emergency stop in Mach 3. I have run shielded cable and it is grounded at the VFD it is wired per you site instructions. any idea what to check

    You will definitely want to adjust your debounce setting in mach3 if your emergency or limit switch is engaging.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you ever fix this issue? I am having the same problem.

    Additional Information:
    Did you try changing the denounce setting?

    Additional Information:
    Meant to say denounce.

    Click the link to add information to this solution:
    When I start my spindle I get a emergency stop in Mach 3. I have run shielded cable and it is grounded at the VFD it is wired per you site instructions. any idea what to check

  • I'm having a problem with my controller card: I can measure 24 volts going to the card, but when I set Mach3 outputs I reagister no voltage. Please help
  • Im having software setup problems with my backtooth (mach3) and i seem not to find a solution in the forum. what can i do?

    You can call us, send an email, or pose the specific question on this customer service live that pertains to the issue that you are having.

    Click the link to add information to this solution:
    Im having software setup problems with my backtooth (mach3) and i seem not to find a solution in the forum. what can i do?

  • HOW TO CONTROL MY 2.2 KW SPINDLE VIA MACH3

    You can go to our instructions on for the breakout board here: http://www.buildyourcnc.com/item/electronicsAndMotors-parallel-breakout-relay to get the information on turning the spindle on and off from the computer and mach3. Alternatively, you can connect the computer using RS485 serial to the inverter and send control commands that way.

    Additional Information:
    HOW TO CONTROL MY 2.2 KW SPINDLE VIA MACH3 usb

    Additional Information:


    Additional Information:


    Additional Information:
    How should I wire the Mach3 card (red, 4 axis) and the vfd (Yl620-a)?

    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    HOW TO CONTROL MY 2.2 KW SPINDLE VIA MACH3

  • I HAVE YOUR MACH3 USB BOB, DO YOU GUYS SELL A TORCH CONTROL RELAY CAN WIRE UP TO TURN MY PLASMA ON AND OFF HOW WOULD WIFE THAT TOO THIS BOB?

    We do have a relay board that words like a standard relay.

    Here is the URL of the relay board that we offer:

    https://www.buildyourcnc.com/item/electronicsAndMotors-breakout-Relays-relay-board-250V-12A-5V

    Click the link to add information to this solution:
    I HAVE YOUR MACH3 USB BOB, DO YOU GUYS SELL A TORCH CONTROL RELAY CAN WIRE UP TO TURN MY PLASMA ON AND OFF HOW WOULD WIFE THAT TOO THIS BOB?

  • I HAVE THE REDFLY SYSTEM AND A 2.2KW SPINDLE - 110V HOW DO CONNECT SPINDAL?

    It is not necessary to connect the spindle VFD (Variable Frequency Drive also called an Inverter) to the computer or CNC motion electronics. The VFD can be controlled independently using the control panel on the VFD. The control panel has the ability to control all aspects of the spindle including Speed, Torque, limits, etc. However, you can connect the VFD to the computer so the CNC control program can control the spindle during the CNC Machine operation. You will need to connect the VFD to the computer via a serial conection (in this case, it is the RS-485 protocol).

    The following are instructions on how to connect the VFD to Mach3 via this RS-485 serial connection.

    The first thing you will need is the dynamic link library to pair with mach3 called the Huanyang VFD Mach3 PlugIn. You can find this file at the mach3 support forum here: http://www.machsupport.com/forum/index.php/topic,14182.0.html

    You will also need to download the Microsoft .net 3.5 framework and install it: https://www.microsoft.com/en-us/download/details.aspx?id=21

    Follow the pdf that comes with the library file, but here is a synopsis of what you need to do (I also added a lot more information that may be useful during this process as the manual does not cover the main connections that need to be done):

    You will need to program your VFD so that it knows how to communicate with mach3 and the computer (go into the programming mode of the VFD and change these parameters):
    - PD001 - value 2 - Enables with communication aspect of the VFD
    - PD002 - value 2 - Enables frequency control from the communcations port
    - PD163 - value 1 - VFD address
    - PD164 - value 1 - Baud rate of 9600 (speed of the communication)
    - PD165 - value 3 - 8N1 RTU - 8 bits (that's the size of the word that gets communicated), N (No parity or no error checking) and 1 (1 stop bit)

    Copy the dll file to the PlugIns folder of mach3.

    Connect the RX and TX lines to your computer. There are a couple ways you can do this, but the recommended way would be to use an FTDI USB device which converts a USB to a serial com port. The device will have Rx and Tx connectors to connect to the VFD terminals with the same labels. This method is recommended since serial ports are not as common in computers these days.

    Next, you will need to configure mach3 to use the plugin library. Start mach3 and click on Menu -> config ->Config Plugins. Enable the new plugin by clicking on the red cross on the left column next to the plug in. Restart mach3 after doing this.

    No you need to configure mach3 to use the HuanyangVFD plugin. Go to the ports & pins configuration and select the spindle setup tab. Make sure that the Disable Spindle Relays checkbox is unchecked. We don't want mach3 to output a signal for a relay since the spindle will start up and turn off within the VFD and not from an external relay.

    Next, go to the HuanyangVFD settings by clicking on Menu -> plugin control -> HuanyangVFD. Set the parameters to the same settings you put into the VFD programming. The com port will be shown as new hardward when you plug in the USB FTDI device. A little bubble will be displayed at the bottom right where it will notify you that a new device is being installed (be patient while windows assigns a com port). Alternatively, you can use the windows device manager to see which port was set for the new USB FTDI device). You may need to restart mach3 several times until you get the correct information displayed in the PD001 and PD002 fields. When the com port is correct and the other parameters, like baud and VFD address is the same as you entered in the programming, then the PD001 and PD002 will show the number 2, otherwise, a 99 will appear which means that communication was not successful.

    You can now control the on/off and RPM of the spindle using the RS485 communication between mach3 and the VFD.

    Additional Information:
    The question was how to connect the spindle to the redfy. I did not receive a VFD.
    I have the redFly system and a 2.2kW Spindle - 110V how do i connect the spindle?

    Additional Information:
    If you received a spindle without a VFD, please contact us asap. Our spindle will not work without a VFD.

    Additional Information:
    Hi, how is this setup in mach4?

    Click the link to add information to this solution:
    I HAVE THE REDFLY SYSTEM AND A 2.2KW SPINDLE - 110V HOW DO CONNECT SPINDAL?

  • I'm considering buying the 4 axis cnc combo. I have metal lathe with variable speed spindle. Can i somehow control the spindle with the gcode. like s values and ,m03,m04, m05?

    Our spindle VFD's, have a multitude of different connectors that can be used for different operations. There is a manual that comes with each VFD, and you can refer to page 11 for different functions and descriptions.

    We currently have a PWM, working with our machine, however it is connected via USB, and setup through Mach 3.
    Also if you may have misplaced or lost the manual here is a link to the pdf:

    (https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCAQFjAAahUKEwibxaaIndTHAhXQlogKHZVyDFE&url=http%3A%2F%2Fwww.c-n-c.cz%2Fdownload%2Ffile.php%3Fid%3D42252&ei=_cHkVdvSC9CtogSV5bGIBQ&usg=AFQjCNHTQcxs-KhJkvkhMdxVFPzkoYJtsA&sig2=JAcZawTGMuC-t4wmn1z-rA)

    Click the link to add information to this solution:
    I'm considering buying the 4 axis cnc combo. I have metal lathe with variable speed spindle. Can i somehow control the spindle with the gcode. like s values and ,m03,m04, m05?

  • I have a 64 bit operating system and the Mach3 usb control board. What do i need to communicate between the two?

    You will need a USB cable to connect the computer and the Mach3 USB. The 64-bit operating system must be Windows and you will need the Mach3 CNC control software installed on the operating system.

    You will need to install the USB driver called RNRMotion.dll. You can find the driver here: https://www.buildyourcnc.com/item/electronicsAndMotors-electronic-component-breakout-Mach3-USB-Board

    Move the file to your Mach3 Plugins folder Example: "C:/Users/ProgramFiles/Mach3/Plugins"

    Mach3 will prompt you to select a driver and this is where you can select the "RnRMotionController" and check "Don't ask me again". This will allow your board to communicate with Mach3.

    You will also need the xml file found on this page: https://www.buildyourcnc.com/item/electronicsAndMotors-electronic-component-breakout-Mach3-USB-Board

    On that page, you will need to download the XML Mach3 Config File by right clicking on the link and selecting "save as". Save the Mach3Mill.xml file in your Mach3 root folder.

    That file is the main configuration file for the Mach3 board. It has all of the typical settings that the Mach3 board needs.

    Click the link to add information to this solution:
    I have a 64 bit operating system and the Mach3 usb control board. What do i need to communicate between the two?

Get Help with:
This Product
Orders
Tech Support
Sales
This Product
Order Query
Tech Support
Sales
Not logged in. Log In Register
Track Order(s)
View Order(s)
I Want to Schecule a One-On-One Paid Tech Support Session
Book an Appointment Pertaining to a BuildYourCNC Product (Free)
Ask a Quesion Below (Free):
Book an Appointment Pertaining Other Equipment ($60/half hour)
Book an Immedite Appointment Pertaining Other Equipment ($120/half hour)
Ask a Quesion Below (Free):
Waiting for response... I may not answer immediately, but I was notified on my cellular phone so my response is forthcoming. If I don't respond immediately, you can always go to the [My Account] page to see all of our chats at any time.