[ Log In ]
[ Register ]

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.

Additional Information:
Where Can i find vfd plug-in for yl-620a for mach3 MODBUS?

Respond:

Other Possible Solutions to this Question

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

    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    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

    Additional Information:

    Click the link to add information to this solution:
    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.

    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    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

    Additional Information:

    Click the link to add information to this solution:
    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)

    Additional Information:

    Click the link to add information to this solution:
    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)

    Additional Information:

    Click the link to add information to this solution:
    HOW DO YOU SETUP THE SPINDLE INVERTER VFD?

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

    Additional Information:
    Where Can i find vfd plug-in for yl-620a for mach3 MODBUS?

    Click the link to add information to this solution:
    How to connect the spindle VFD to RS-485 serial modbus

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

    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    WHAT ARE THE OUTPUT INVERTER (VFD) CONNECTIONS TO SPINDLE?

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

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

    Additional Information:

    Click the link to add information to this solution:
    WHAT TERMINALS ARE USED TO CONNECT THE INVERTER WALL OUTLET?

  • HOW DO I WIRE FROM THE BREAKOUT BOARD TO DRIVER?

    CP+ to COM
    CP- to STEP
    CP+ to CW+ (small jumper wire)
    CW- to DIR

    Additional Information:
    If the driver does not have CP or CW labels, the CP is Step and the CW is Direction or DIR. If you connect the 5v to CP+ (or Step+) and CW+ (or DIR+) and the pin to CP- (or Step-) and another pin to CW- (or DIR-), then in software, the configuration for the step on that axis must be active low. Otherwise, if you connect the GND to CP- (or Step-) and CW- (or DIR-) and the pin to CP+ (or Step+) and another pin to CW+ (or DIR+), then in software, the configuration for the step on that axis must be active high.

    Additional Information:
    If you have a driver that is labeled pul, dir and ena: Pul+ is the Step+ and Pul- is the Step-. Pul is short for pulse. A pulse will create a step. Don't worry about the enable terminals.

    On the x-axis, pin #2 can go to pul- and pin #3 can go to dir-. The 5v will go to pul+ and dir+. The configuration for each axis for step will be active low and toggle active low for the dir on each axis to make it go in the direction desired.

    Additional Information:


    Additional Information:


    Additional Information:


    Additional Information:

    Click the link to add information to this solution:
    HOW DO I WIRE FROM THE BREAKOUT BOARD TO DRIVER?

  • WHAT ELECTRICAL CABLE DO I USE TO CONNECT VFD INVERTER 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:


    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    WHAT ELECTRICAL CABLE DO I USE TO CONNECT VFD INVERTER SPINDLE?

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

    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    HOW DO YOU HOOK UP THE VFD TO SPINDLE?

  • HOW CAN MOUNT THE EXTRUDER TO WHITEANT

    Mounting the extruder to the whiteAnt can be done a couple of ways. One is to take the 4 mounting holes located at the lower portion of the z-axis rail support and use long screws protruding out. Take a thinner material and drill the four holes matching the locations of the 4 screws and screw on nuts to hold it in place. The other option would be to use the metal bracket and fasten to the edge of the rail support.

    Click the link to add information to this solution:
    HOW CAN MOUNT THE EXTRUDER TO WHITEANT

  • HOW TO COOL THE BLACKTOOTH 40W LASER TUBE

    Cooling is not as tricky as you might think. There is 3 ways to approach this, only 2 really matter for a low scale 40w setup. First one is the cheapest and easiest. The higher the temp of water the worse your performance will be, from what I understand anything in the 30C range is about the most tolerable it gets. Lower is better. But not frozen...from what I've been told a very experienced cutter, he found 8C was the highest power he achieved.

    1. Use a 5 Gallon resovoir system which gives you a fairly large space of water to heat up before you need to tend to it. Add about a cup of anti-freeze to the mix of DISTILLED water. You don't want ANY minerals in the water that might build up in your system. The anti-freeze works to keep algae and other ickies from growing in your water.

    2. Use a smaller resovoir system (or even closed loop) and install 1 or more radiators found in CPU cooling systems with 120mm fans attached. This will continously cool your water system to ambient room temperatures, but with a tiny resovoir it will be difficult to add things like ice-packs to drop the temps if the ambient is quite hot.

    3. Using an industrial coolant system. Overkill and unless your cutting A LOT, this is a very expensive option to take. You can also explore the idea of Peltier cooling but it is extremely expensive electricity/BTU wise compared to an industrial cooler.

    Click the link to add information to this solution:
    HOW TO COOL THE BLACKTOOTH 40W LASER TUBE

  • HOW DIFFICULT IS IT TO BUILD THE BLACKTOOTH

    The blackTooth Laser cutter and Engraver can be built in a weekend. Take a look at the build instructions and try to determine if you feel you have sufficient capability to put together the laser system.

    Click the link to add information to this solution:
    HOW DIFFICULT IS IT TO BUILD THE BLACKTOOTH

  • HOW THE ROUTER IS CONNECTED TO ELECTRONICS?

    The parallel breakout board has a relay that can turn the router on and off according to the control software in the computer. The router will turn on automatically prior to the machine moving (a time frame can be set so the router is up to speed). When the machine is finished and is not moving, the router automatically turns off. This is with the m3, m4, and m5 codes in the g-code.

    If you are interested in the USB breakout board, you will need to get an independent relay board.

    Click the link to add information to this solution:
    HOW THE ROUTER IS CONNECTED TO ELECTRONICS?

  • HOW IS THE ROUTER CONNECTED TO ELECTRONICS?

    The parallel breakout board has a relay that can turn the router on and off according to the control software in the computer. The router will turn on automatically prior to the machine moving (a time frame can be set so the router is up to speed). When the machine is finished and is not moving, the router automatically turns off. This is with the m3, m4, and m5 codes in the g-code.

    If you are interested in the USB breakout board, you will need to get an independent relay board.

    Click the link to add information to this solution:
    HOW IS THE ROUTER CONNECTED TO ELECTRONICS?

  • INVERTER MANUAL

    I need programing help not wiring help. Speed will only go to 50.

    You can find the inverter (VFD) manual at: https://buildyourcnc.com/Documents/HuanYang_inverter_manual.pdf

    If you have further questions, please enter your question here by submitting additional information.

    Click the link to add information to this solution:
    INVERTER MANUAL

  • HOW DO I CONNECT A TOUCH PLATE TO THE BREAKOUT BOARD?

    The instructions on how to do this are found here, in these two videos, http://buildyourcnc.com/PrimeronHomingandLimitSwitches.aspx

    Additional Information:

    Click the link to add information to this solution:
    HOW DO I CONNECT A TOUCH PLATE TO THE BREAKOUT BOARD?

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.