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

Question #: 14565

Question: Can you control the VFD from mach3?

Current Solution

Yes, you can control the VFD using the a relay.  You will need to connect the relay output (NO) to the forward terminal of the VFD and the gnd terminal.  You will need to look at the diagram for your VFD to determine which gnd to use in the set of terminals that is associated with the forward terminal.  The forward terminal may be called something else, but the manual will tell you (something like X1, or D1, etc.)

You will also need to change a parameter in the VFD to use the external terminals as opposed to the control from the control panel.

Respond:

Other Possible Solutions to this Question

  • 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 respond:
    Can you control the spped of the 2.2 KW spindle using the breakout board and Mach3 soft ware?

  • Can I use Mach3 or 4 with your USB controller PCA?

    The USB controller board is currently only compatible with Planet-CNC software.

    Click the link to respond:
    Can I use Mach3 or 4 with your USB controller PCA?

  • How do you install the software for the Mach3 USB controller?

    The Mach3 usb controller/interface has instructions and videos on this page:
    https://www.buildyourcnc.com/item/electronicsAndMotors-electronic-component-breakout-Mach3-USB-Board

    There is a 5 step process on that page to install the plug-in and the configuration xml file that is necessary for the proper functioning of the controller.

    The videos on that page also demonstrate in detail how to install the software, plug-ins, xml file and wiring and testing most of the features of the Mach3 USB interface.

    Hope this helps.

    Click the link to respond:
    How do you install the software for the Mach3 USB controller?

  • Is there any other software that will work with your controller Mach3?

    The mach3 control software will work with all major CAM software (CAMBAM, Aspire and Vectric, BobCAD/CAM, ArtCAM, Dolphin CAM, CAM software that integrate with SolidWorks and AutoDesk Inventor, and many more).

    Click the link to respond:
    Is there any other software that will work with your controller Mach3?

  • Does the Laser Controller work with Mach3?

    The laser Controller will not work with Mach3.

    Click the link to respond:
    Does the Laser Controller work with Mach3?

  • I have purchased the Mach3 licence from you, How soon can I expect the email with the licence?

    As long as Mach3 orders are received during business hours they are generally emailed that same day.

    Click the link to respond:
    I have purchased the Mach3 licence from you, How soon can I expect the email with the licence?

  • Is there a kit or actual product that can be wired into the Mach3 controller to give me virtual zero

    The mach3 control software will work with all major CAM software (CAMBAM, Aspire and Vectric, BobCAD/CAM, ArtCAM, Dolphin CAM, CAM software that integrate with SolidWorks and AutoDesk Inventor, and many more).

    Click the link to respond:
    Is there a kit or actual product that can be wired into the Mach3 controller to give me virtual zero

  • HOW COMPLEX IS YOUR KIT TO ASSEMBLE, AND MOST IMPORTANTLY - HARD IT SETUP CONTROL THE LASER WITH MACH3?

    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 respond:
    HOW COMPLEX IS YOUR KIT TO ASSEMBLE, AND MOST IMPORTANTLY - HARD IT SETUP CONTROL THE LASER WITH MACH3?

  • 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 respond:
    how do I connect my spindle to mach3 so mach3 can control it

  • CAN I USE A MAC TO CONTROL THE CNC?

    There are several CAD/CAM programs out there for MacOS. Here is a list of a few: http://www.macuser.de/forum/f53/3d-2d-cad-395058/#post4499316
    I've also read good things about punchCAD: http://www.punchcad.com/
    Of course, there is always SketchUp if you are in a pinch. There are a few CAM plugins for SketchUp as well, but I've never used them, so I can't vouch for them.

    CAD/CAM will get you as far as designing your parts and producing the g-code, but if you also want to run the CNC machine with your Mac, you will need a piece of software similar to Mach3 or EMC to run the g-code. I haven't been able to find anything like these programs that runs on Mac, so you may have to run Mach3 or EMC in Windows using Boot Camp or a virtual machine such as VMware or Parallels.

    Personally, I would use the Mac to do all the CAD/CAM, then use a cheap PC to run the CNC machine.

    Additional Information:


    Additional Information:
    EasyDNC for OSX
    www.dnc-x.com

    Additional Information:

    Click the link to respond:
    CAN I USE A MAC TO CONTROL THE CNC?

  • CAN I USE A MAC TO CONTROL THE CNC?

    Mach 3 CNC software can do the following:

    Converts a standard PC to a fully featured, 6-axis CNC controller
    Allows direct import of DXF, BMP, JPG, and HPGL files through LazyCam
    Visual Gcode display
    Generates Gcode via LazyCam or Wizards
    Fully customizable interface
    Customizable M-Codes and Macros using VBscript

    SET:

    Spindle Speed control
    Multiple relay control
    Manual pulse generation
    Video display of machine
    Touch screen ability
    Full screen eligibility

    EQUIPMENT:

    Lathes
    Mills
    Routers
    Lasers
    Plasma
    Engravers
    Gear cutting

    Additional Information:
    how to wire relay with mach board. I have mach interface board with one relay

    Click the link to respond:
    CAN I USE A MAC TO CONTROL THE CNC?

  • can I control the speed of a 2.2 spindle through your 5 axis breakout board with relay?

    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 respond:
    can I control the speed of a 2.2 spindle through your 5 axis breakout board with relay?

  • Can LinuxCNC EMC2 control the spindle?

    LinuxCNC has excellent documents; however, I would like to offer our help in case you don't understand the information on that page. So, please use this FAQ (Question #: 13233) to state your questions by submitting additional information below.

    The LinuxCNC spindle control page is found here: http://linuxcnc.org/docs/html/examples/spindle.html

    Additional Information:
    After reading the LinuxCNC page my first questions would be can the spindle be controlled by PWM signal? Also, what pin on the parallel port would I set to Spindle Enable and FRW?

    Additional Information:
    To connect your computer to the VFD, use a USB to RS-485 interface. RS-485 is just a serial interface protocol that uses standard 0 to +5 voltage TTL signal levels for communication (as opposed to RS-232 which uses -12v and +12 for signal level changes).

    Get a high quality interface to reduce any issues during the process. The VFD should have two terminals labeled RS+ and RS-. The USB to RS-485 adapter should have this labeled on it as well so the connections should be relatively straight forward.

    In the VFD parameters:
    PD001: 2 to accept RS485 commands
    PD002: 2 to accept frequency comands
    PD163: 1 to RS485 slave address:1
    PD164: 1 RS485 baud rate 9600
    PD165: 3 8bit, no parity, 1 stop bit

    Make sure LinuxCNC is also set accordingly:

    The PIN14 and PIN16 in the stepconf wizard should be set to unused because you don't want LinuxCNC to be outputting unnecessary signals.

    In the options step of the stepconf wizard:
    - Check the Include Halui user interface component.
    - Check the Include custom PyVCP GUI panel.
    - Check Spindle speed display

    You will want to edit the custom.hal text file located in the folder that was created from the stepconf wizard. Add these following lines:
    loadusr -Wn vfd hy_vfd -n vfd -d /dev/ttyUSB0 -p none -r 9600
    net spindle-cmd-rpm-abs => vfd.speed-command
    net spindle-cw motion.spindle-forward => vfd.spindle-forward
    net spindle-ccw motion.spindle-reverse => vfd.spindle-reverse
    net on motion.spindle-on => vfd.spindle-on

    The dev folder in linux is typically used for interfacing devices and peripherals to the computer as these devices are communicated by simple memory addresses and these files are linked directly to these addresses.

    Under the custom_postgui.hal file, change this line:

    from: sets spindle-at-speed true
    to: net spindle-at-speed => cfd.spindle_at_speed

    and add the line:

    setp vfd.enable 1

    When you start LinuxCNC, you will a spindle section with the reverse and forward buttons, a stop button and - and + buttons. Use these buttons to conform that the spindle is functioning properly. The spindle speed indicator in LinuxCNC will show the spindle speed and you can confirm that this is equal to the speed indicated on the VFD.


    Credit for this helpful information goes to:


    Additional information was also added by us to provide a better understanding.

    Click the link to respond:
    Can LinuxCNC EMC2 control the spindle?

  • where on your mk1 usb controller is the input port i can use for pause or estop comand thanks

    On our USB breakout boards, the pins available for any inputs (e-stop/limit switches).
    Are x++ - a-- (x++,x--,y,z,a(same)) in the settings menu you will have to specify the pin!

    Here is a good forum on Planet-CNC.com to help setting up Planet-CNC software:(http://www.planet-cnc.com/faq/machine_setup/)

    Additional Information:


    Additional Information:
    In the planetcnc software the inputs are greyed out I have a licenced copy and I have all limits setup and working correctly id like to use the a++ or a-- as a manual program pause if my plasma fails torch ignition and id like it to continue after re ignition. When the mk1 controller is unplugged the inputs are available but when the controller is plugged in there greyed out is these options unavailable with your controller please help.

    Click the link to respond:
    where on your mk1 usb controller is the input port i can use for pause or estop comand thanks

  • Can you shortcut the usb controller that comes with the blacktooth laser to hardware reset it?

    The USB controller does not have a reset button installed on it.

    You have some alternate options however:
    - You can remove the USB connector and re-insert it.
    - Set the USB to use external 5v by removing the jumper near the USB connector, use a 5v wall adapter and install a switch along the 5v DC power line to turn it off then on. You can use a momentary push button switch to do this.

    Click the link to respond:
    Can you shortcut the usb controller that comes with the blacktooth laser to hardware reset it?

  • HOW CAN THE ROUTER BE CONTROLLED BY COMPUTER?

    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 respond:
    HOW CAN THE ROUTER BE CONTROLLED BY COMPUTER?

  • Is there a way to use Mach4 to control my VFD?

    The best way to determine how to control your VFD using Mach4 is to read the MAch4 manual found here:
    http://www.machsupport.com/wp-content/uploads/2014/05/Mach4%20Installation%20Manual.pdf

    You will find that there a a few ways to control the spindle/VFD on your CNC machine or CNC Router.
    - The first and easiest is to have your VFD's power controlled by a relay. This will allow your spindle to have on/off control through Mach4 with an output pin.
    - The second is to have a controller output a DAC voltage between 0-10 volts to control speed on the VFD/Spindle. There is a termial on the VFD to receive this signal line. The controller will also have an output that outputs a high or low and that can control the on/off on the VFD.
    - The third, and more difficult of the three methods is to use a USB to Serial adapter (USB to USART or RS-485). The Computer plugs into the adapter using a USB cable and the adapter uses the RX/TX to connect to the VFD's terminals for communication. This will provide a great amount of control. Mach4 will need a plug-in to make this option work.

    Click the link to respond:
    Is there a way to use Mach4 to control my VFD?

  • What software is needed to run the laser controller from the PC?

    The laser controller uses software called LaserCAD. You can find the link to the LaserCAD software on the Laser Controller product page:

    https://www.buildyourcnc.com/item/Laser-Component-Laser-Control-System

    Click the link to respond:
    What software is needed to run the laser controller from the PC?

  • Can the USB CNC Controller be used with LinuxCNC?

    The USB Interface can only be used with the Planet-CNC software which runs under the windows operating system.

    Click the link to respond:
    Can the USB CNC Controller be used with LinuxCNC?