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

Question #: 13618

Question: How to wire the inverter to the rs-485

Current Solution

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.

Respond:

Other Possible Solutions to this Question

  • HOW TO CONNECT THE INVERTER WALL?

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

    Click the link to respond:
    HOW TO CONNECT THE INVERTER WALL?

  • HOW TO CONNECT THE SPINDLE INVERTER?

    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 TO CONNECT THE SPINDLE INVERTER?

  • HOW DO YOU CONNECT THE INVERTER TO AC?

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

    Click the link to respond:
    HOW DO YOU CONNECT THE INVERTER TO AC?

  • HOW DO YOU HOOK UP THE SPINDLE TO INVERTER?

    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 SPINDLE TO INVERTER?

  • HOW TO HOOK UP THE VFD INVERTER WALL OUTLET?

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

    Click the link to respond:
    HOW TO HOOK UP THE VFD INVERTER WALL OUTLET?

  • HOW DO YOU SETUP THE SPINDLE INVERTER?

    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?

  • 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?

  • how connect inverter to usbcard

    We will answer your question but need more specifics as to what you are referring to. Please add additional information and we will respond.

    Additional Information:


    Additional Information:
    Hi, i'm in France, I have an usb breakoutboard from you and a red fly box
    A 2,2 spindle with the correct inverter.
    I just wan't to know if it's possible to drive the spindle from Mach 3,and if it is, how connect the usb card to the inverter which is connected to the spindle.
    Do I need another driver or any interface card?

    Additional Information:


    Additional Information:
    Sorry, I mean with planet cnc not mach3

    Click the link to respond:
    how connect inverter to usbcard

  • 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

  • wiring the Huajiang yl6000 inverter to mach 3

    1) Acquire a 5 or 6 conductor wire cable of generous length to fit between your Mach30 controller and your VFD (Variable Frequency Drive). The wire gauge should be somewhere between 18GA and 22GA. Maximum current draw will be under 20 milliamps. Cable may also be shielded and/or twisted pairs.
    2) Wire #1 from controller ground to VFD XGND (DC ground)
    4) Wire #2 from controller output defined as (MACH3 output#2) to VFD FWD input
    Note This will give you the ability to start and top the spindle.
    5) Wire #3 from controller analog ground (Speed circuit) to VFD GND.
    6) Wire #4 from controller analog speed output to VFD VI1 (Speed control voltage).
    7) Wire #5 from controller Analog speed 10V or 12V input to VFD 10V or VFD 13V output. (Analog supply voltage).
    8) Program the VFD to accept external start and stop control with front panel STOP.
    9) Program the VFD to accept external analog speed control for zero to ten volts input.
    The above wiring will allow you to start and stop the spindle, and set the spindle speed. You will have control both from G-Code and Mach3 front panel control, including manual On/OFF and percentage control.
    Note: Modbus control is very difficult and fussy to set up, and you lose mach3 front panel manual control.

    Click the link to respond:
    wiring the Huajiang yl6000 inverter to mach 3

  • When will the 2.2kw 110v inverter be in stock?

    It's actually difficult to say when we will get our 2.2kW 110v VFDs (Variable Frequency Drives) in stock. The problem of predicting inventory stock with fluctuating sales is a challenge, especially at the price we offer. Please consider the 220v VFD, even if a 220 outlet is needed to be installed. We have found that the 220v VFD units performance to be better than the 110v VFD units.

    Click the link to respond:
    When will the 2.2kw 110v inverter be in stock?

  • 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?

    Additional Information:
    setting the starting rpm

    Additional Information:
    the vfd will not start the motor

    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.

  • I purchased the greenbull with the electronics assembled, where are the wiring schematics to wire to 110 volt inverter?

    There is another image on the spindle page here that shows another type of wiring using the R, T and E terminals for power. The image is one of the clickable main images on that page:

    https://www.buildyourcnc.com/item/spindle-inverter-2!2kw-spindle-novfd

    Additional Information:
    Here is a link to the image directly:

    https://www.buildyourcnc.com/images/SpindleWiring-800.JPG

    And here is the link to the alternate diagram:

    https://www.buildyourcnc.com/images/NewSpindleDiagram-800.JPG

    Click the link to respond:
    I purchased the greenbull with the electronics assembled, where are the wiring schematics to wire to 110 volt inverter?

  • 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 do I wire two motors on the same axis?

    Yes, you can use 2 motors in the same axis output, however you will still need a driver for that stepper motor. Also depending on the orientation on which you mount the motor you might have to invert the direction of the motor, and that will be simple by swapping the A+,A-, to the B+,B- locations and vice versa, from the driver to the motor wiring.

    The wiring scheme would look like this:
    The step and direction output terminals on the CNC controller interface for the axis you want to have two motors would connect to both drivers of the two stepper motors on that axis.

    Additional Information:
    I have been running two motors from the same driver for 10 years on my 3m x 1.6m router. Both motors driving the gantry are wired together. I see no reason to use two drivers. The motors are high torque Nema 34. I've had no issues.

    Click the link to respond:
    How do I wire two motors on the same axis?

  • WHAT TERMINALS ARE USED TO CONNECT THE INVERTER WALL OUTLET?

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

    Click the link to respond:
    WHAT TERMINALS ARE USED TO CONNECT THE INVERTER WALL OUTLET?

  • how to connect wires from motherboard to cnc

    Use the datasheet associated to the motor that you purchased. Use the bipolar parallel configuration to optimum performance. The datasheets are located in their respective motor product pages. Just click on the motion electronics at the left and scroll down to the motor you have and click on the title, or datasheet link next to the motor. The datasheet will either be in the form of a pdf, or within the instructions on that product page.

    Additional Information:
    wiring diagram

    Click the link to respond:
    how to connect wires from motherboard to cnc

  • How do I connect my motor wires to the driver?

    Use the datasheet associated to the motor that you purchased. Use the bipolar parallel configuration to optimum performance. The datasheets are located in their respective motor product pages. Just click on the motion electronics at the left and scroll down to the motor you have and click on the title, or datasheet link next to the motor. The datasheet will either be in the form of a pdf, or within the instructions on that product page.

    Additional Information:
    wiring diagram

    Click the link to respond:
    How do I connect my motor wires to the driver?

  • How should I wire the E-stop button? NC or NO?

    I would recommend wiring the E-Stop to an input terminal via an NC connection. This is the industry standard. It requires a NC (Normally connected) circuit for the machine to be operational, and when the circuit breaks, the machine shuts off. This is better than having a circuit NO (normally open), open circuit that requires a circuit to be created to have the machine shut off for safety.

    Having en E-Stop run through the mains line would only work for a single circuit (or use multiple E-stops, which defeats the purpose). The E-stop connected to the input terminal would shut off all machine functions.

    Click the link to respond:
    How should I wire the E-stop button? NC or NO?