[ Log In ]
[ Register ]
NEW: CNC Router PLANS Available for all of our Newest CNC Models!! Click here to "Design Your CNC".

Question #: 13381

Question: How do I conect the VFD of the spindle to the RS485 connections

Current Solution

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?

Respond:

Other Possible Solutions to this Question

  • WHAT ARE THE OUTPUT INVERTER (VFD) CONNECTIONS TO SPINDLE?

    U - Pin1
    V - Pin2
    W - Pin3
    Pin4 Dead

    Additional Information:
    My home made cnc is a big problem with my NC connection. When in start my spindle it will be gone wrong. It will be limith switch problem anytime. Need help thanks.

    Click the link to respond:
    WHAT ARE THE OUTPUT INVERTER (VFD) CONNECTIONS TO SPINDLE?

  • how to conect the VFD spindle using modbus

    It is possible to connect and configure the spindle VFD to the mach3 via an RS485 communication and protocol.

    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:
    Will this work with the brand called "best "vfd as well.

    Click the link to respond:
    how to conect the VFD spindle using modbus

  • how to conect the VFD spindle using modbus

    It is possible to connect and configure the spindle VFD to the mach3 via an RS485 communication and protocol.

    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:
    Will this work with the brand called "best "vfd as well.

    Click the link to respond:
    how to conect the VFD spindle using modbus

  • WHAT ARE THE SPINDLE INVERTERS (VFD) INPUT AC CONNECTIONS FROM WALL OUTLET?

    Input to VFD:
    240V Active - R
    240V Neutral - S
    Ground - E

    Click the link to respond:
    WHAT ARE THE SPINDLE INVERTERS (VFD) INPUT AC CONNECTIONS FROM WALL OUTLET?

  • I purchased the 4.0kw spindle and VFD a while back, and have just installed a PMDX-107 controller... do you have any examples of the wiring connections for the SL-240EE to PMDX-107?

    If you want speed control, it is recommended to use the RS-485 connection on the VFD and use the control program such as Mach3 to communication serially with the VFD using this RS-485 connection.

    If you would rather use a controller such as the PMDX-107 to simulate the effect of a potentiometer using the Aref, Aout and Agnd and the Rev/Dir and Fwd/Run terminals to control operation and direction, you can connect those to the VFD.

    PMDX-107 Aout connects to the VI (analog voltage in). This is like the wiper on a potentiometer.
    PMDX-107 Agnd connects to the ACM terminal on the VFD for Analog common.
    PMDX-107 COM connects to DCM terminal on the VFD for Digital common.
    PMDX-107 Fwd/Run connects to the FOR terminal on the VFD for Forward.
    PMDX-107 Rev/Dir connects to the REV terminal on the VFD for Reverse.

    Refer to your PMDX-107 manual to correctly configure your dip switch settings and make sure to calibrate (tweak) the speed control using the trimmer next to the terminals on the PMDX-107.

    Click the link to respond:
    I purchased the 4.0kw spindle and VFD a while back, and have just installed a PMDX-107 controller... do you have any examples of the wiring connections for the SL-240EE to PMDX-107?

  • Is there a video link showing connections to your most recent frequency converter for the 2.2 spindle (type:YL600-2S-2K20)? Cheers.

    I am currently making a video right now. I will post the video in a few days.

    Additional Information:
    You guys rock!

    Additional Information:
    Don’t judge us until you see the video!! Haha.

    Additional Information:
    Here is the video that I promised. The video covers the main wiring of the VFD and spindle.



    I will do another video on the parameters.

    Click the link to respond:
    Is there a video link showing connections to your most recent frequency converter for the 2.2 spindle (type:YL600-2S-2K20)? Cheers.

  • how much does the 2.2kW spindle and the VFD weigh together?

    The weight of the 2.2kW spindle without the VFD (variable frequency drive or inverter) is 11 lbs or 5 kg.

    The 2.2kW spindle with the VFD is 15 lbs or 6.8 kg.

    Click the link to respond:
    how much does the 2.2kW spindle and the VFD weigh together?

  • How do you connect the spindle VFD to the parallel breakout board

    The parallel board contains a relay that is connected to pin #16. You can use this relay as the start/stop by connecting the relay to the FOR and it's related digital GND pin on the VFD.

    Click the link to respond:
    How do you connect the spindle VFD to the parallel breakout board

  • HOW DO YOU HOOK UP THE VFD TO SPINDLE?

    U - Pin1
    V - Pin2
    W - Pin3
    Pin4 Dead

    Additional Information:
    My home made cnc is a big problem with my NC connection. When in start my spindle it will be gone wrong. It will be limith switch problem anytime. Need help thanks.

    Click the link to respond:
    HOW DO YOU HOOK UP THE VFD TO SPINDLE?

  • HOW DO YOU HOOK UP THE VFD TO SPINDLE?

    blueChick:

    X-axis
    “CW230 (3.0A) Driver”
    Set to 1/16 Microstep, 2.7A
    Dipswitches: 11001100
    Mach3 Motor Tuning: 1422.22 steps/in

    Y-axis
    “CW230 (3.0A) Driver”
    Set to 1/16 Microstep, 2.7A
    Dipswitches: 11001100
    Mach3 Motor Tuning: 1422.22 steps/in

    Z-axis
    “CW230 (3.0A) Driver”
    Set to 1/4 Microstep, 2.7A
    Dipswitches: 10101100
    Mach3 Motor Tuning: 1600 steps/in

    blackToe:

    X-axis
    “CW230 (3.0A) Driver”
    Set to 1/16 Microstep, 2.7A
    Dipswitches: 11001100
    Mach3 Motor Tuning: 1422.22 steps/in

    Y-axis
    “CW230 (3.0A) Driver”
    Set to 1/16 Microstep, 2.7A
    Dipswitches: 11001100
    Mach3 Motor Tuning: 1422.22 steps/in

    Z-axis
    “CW230 (3.0A) Driver”
    Set to 1/4 Microstep, 2.7A
    Dipswitches: 10101100
    Mach3 Motor Tuning: 1600 steps/in

    blackFoot:

    X-axis
    “CW8060 (6.0A) Driver”
    Set to 1/16 Microstep, 2.7A
    Dipswitches: 11001100 (“0”=down, “1”=up)
    Mach3 Motor Tuning: 914.29 steps/in

    Y-axis
    “CW230 (3.0A) Driver”
    Set to 1/16 Microstep, 2.7A
    Dipswitches: 11001100
    Mach3 Motor Tuning: 1422.22 steps/in

    Z-axis
    “CW230 (3.0A) Driver”
    Set to 1/4 Microstep, 2.7A
    Dipswitches: 10101100
    Mach3 Motor Tuning: 1600 steps/in

    greenBull:

    X-axis
    “CW8060 (6.0A) Driver”
    Set to 5.43A, 1/16 Microstep
    Dipswitches: 01100110 (“0”=down, “1”=up)
    Mach3 Motor Tuning: 914.29 steps/in

    Y-axis
    “CW8060 (6.0A) Driver”
    Set to 5.43A, 1/16 Microstep
    Dipswitches: 01100110
    Mach3 Motor Tuning: 914.29 steps/in

    Z-axis
    “CW8060 (6.0A) Driver”
    Set to 5.43A, 1/4 Microstep
    Dipswitches: 01100100
    Mach3 Motor Tuning: 1600 steps/in

    Click the link to respond:
    HOW DO YOU HOOK UP THE VFD TO SPINDLE?

  • What size of wire do you use to connect the VFD to the spindle?

    The type of wire that should be used between the spindle and the VFD (Variable Frequency Driver also called the inverter) should be of stranded type and we use between 18 and 16 AWG.

    The total current is divided among the three coil wires, therefor a wire gauge of 16 should be sufficient.

    Currently we use 20AWG 4 conductor.

    Additional Information:

    Click the link to respond:
    What size of wire do you use to connect the VFD to the spindle?

  • How to connect the spindle VFD to RS-485 serial modbus

    It is possible to connect and configure the spindle VFD to the mach3 via an RS485 communication and protocol.

    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:
    Will this work with the brand called "best "vfd as well.

    Click the link to respond:
    How to connect the spindle VFD to RS-485 serial modbus

  • I just purchased some wire for my 2.2 spindle as per your recommendation it's 14 AWG stranded wire for the VFD to Spindle (U, V, W) connections. However, it's a three wire (black, white and Ground). Which numbers on the female pin connector do I connect the wires to. Cheers.
  • how do you wire the 2.2kw spindle and vfd for 110 single phase

    You can find the wiring diagram for the 2.2kW spindle and, follow through instructions here.
    https://www.buildyourcnc.com/item/spindle-inverter-2!2kw-spindle-novfd#prettyPhoto/8/

    Additional Information:


    Additional Information:
    wiring diagram at spindle top


    Additional Information:

    Click the link to respond:
    how do you wire the 2.2kw spindle and vfd for 110 single phase

  • The spindle drops on our greenBull when power is turned off. How do we stop this?

    When you say the spindle drops, are you referring to the z-axis assembly that contains the spindle? If so, did you replace the lead screw and anti-backlash nut with a ball screw? Ball screws have extremely little friction and will cause an assembly under gravity to move down. If not, your lead screw and anti-backlash nut friction is extremely small, which is surprising and I have never seen this before. I would be interested in seeing a picture of the assembly. Please send a picture to techsupport@buildyourcnc.com so I can investigate this issue further.

    Additional Information:
    We haven't replaced or disassembled anything on the z-axis. I will try to get some photos sent to you. Are there any adjustments or recommendations for PM of the z-axis assembly?

    Additional Information:
    Can you tell me what PM means?

    Click the link to respond:
    The spindle drops on our greenBull when power is turned off. How do we stop this?

  • How to display RPM instead of frequency on the VFD? I have the 2.2kv 110 volt spindle and inverter.

    There is a button on the front of the VFD that will cycle through RPM, Freq, and a few other readings. If there is a >> button on your VFD, that will work. If there is a mode button on your VFD, that should works as well.

    Additional Information:
    There is a >> disc button but it does not cycle through the display modes.

    Additional Information:
    Is there a parameter setting to make this button work to cycle thru the display modes?

    Click the link to respond:
    How to display RPM instead of frequency on the VFD? I have the 2.2kv 110 volt spindle and inverter.

  • HOW DO YOU SETUP THE SPINDLE INVERTER VFD?

    Change PD001 Source of Run Commands to '1'
    Change PD005 Max operating frequency to 400hz
    Change PD004 base frequency to 400hz
    Change PD003 Main frequency to 400hz
    Change PD006 Intermediate frequency to 2.5
    Change PD008 max voltage to 220v
    Change PD009 Intermediate voltage to 15v
    Change PD010 Min voltage to 8
    Change PD011 frequency lower limit to >100hz (120hz to start)
    Change PD142 7 Amps
    Change PD143 2
    Change PD144 3000

    Note: PD001 had to be changed back to 0 to allow for keypad control.
    Note2: I had to reverse U and V to get the spindle to go forward in FWD. (reverse any two wires, u&v or w&v for example)

    Click the link to respond:
    HOW DO YOU SETUP THE SPINDLE INVERTER VFD?

  • What length of wire do you recommend for the black toe (2'x4') between the spindle and VFD?

    The length of the cable from the VFD (Variable Frequency Drive) to the actual spindle should be about the same as the z-axis cable from the z-axis motor to the z-axis driver which is recommended at 11 feet. This is locating the VFD about at the midpoint of the machine.

    Click the link to respond:
    What length of wire do you recommend for the black toe (2'x4') between the spindle and VFD?

  • Please send a diagram of connections for pokeys57cnc to YL-620 VFD for Mach4

    When you install Mach4 and use the Pokeys57cnc, you will use the plug-in provided by Polabs.

    You can get this plug-in here:
    https://www.poscope.com/product/pokeys57cnc/

    The Pokeys57cnc has a 0-10V output pin (a pulse width modulated (PWM) output pin) labeled onthe diagram as pin 17. You can see this pin at the top of the diagram here:
    https://buildyourcnc.com/item/electronicsAndMotors-electronic-component-breakout-Mach4-mach3-USB-ethernet-Board

    In Mach4, you will need to set the spindle speed output top this pin #17. In the plug-in, set this pin at 10kHz.

    Click the link to respond:
    Please send a diagram of connections for pokeys57cnc to YL-620 VFD for Mach4