[ Log In ]
[ Register ]

Question #: 13424

Question: MACH3 CONTROL SPINDLE

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

  • 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

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

  • WHY SHOULD I BUY THE SPINDLE?

    The spindle is quieter and has more consistent torque (It doesn't get "bogged down" when it starts cutting into material). It can be used with collets of varying sizes (not restricted to imperial sizes). It is water cooled and so it does not blow air downward to cool the spindle like the router does. The spindle is also machined with much higher precision than typical routers and will have a much longer life.

    Click the link to add information to this solution:
    WHY SHOULD I BUY THE SPINDLE?

  • IS THE MACH3 SOFTWARE COMPATIBLE WITH 3 AXIS MOTION CONTROL COMBO KITS? PLANET CNC MENTIONED AS BEING COMPATIBLE.

    Mach 3 is compatible with our electronic combo's that include the Parallel Breakout Board.
    Planet-CNC is compatible with our electronic combo's that included our USB Breakout Board.

    The parallel breakout board is compatible to a wide variety of software control packages. The USB interface board that we sell can only be used with the Planet-cnc control software.

    If you are concerned with your computer (desktop) not having a parallel port, one can be purchased and inserted into a PCI slot on the motherboard. Some motherboard also come with a parallel port header (connector) on the motherboard and a simple cable can be connected to this connector to get that functionality on the computer. The former solution of getting a parallel port adapter card to plug into the motherboard is probable the easiest and least expensive option.

    Additional Information:


    Additional Information:
    Is the mach 3 software compatible with kollmorgen s200 servo motors and controllers?

    Click the link to add information to this solution:
    IS THE MACH3 SOFTWARE COMPATIBLE WITH 3 AXIS MOTION CONTROL COMBO KITS? PLANET CNC MENTIONED AS BEING COMPATIBLE.

  • SPINDLE RUNOUT

    Our spindles have a runout of less than .0001 in, which includes that collets that we sell. If you use a collet from another manufacturer, we cannot guarantee this TIR (Total Indicated Runout) dimension.

    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    SPINDLE RUNOUT

  • HOW MANY AXES CAN MACH 3 CONTROL?

    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 add information to this solution:
    HOW MANY AXES CAN MACH 3 CONTROL?

  • GREENLEAN SILICON TUBE FOR SPINDLE

    The greenlean requires 56 feet of 1/4 Inside Diameter and 3/8 Outside Diameter silicon tube for the spindle.

    Additional Information:
    20

    Additional Information:
    20

    Click the link to add information to this solution:
    GREENLEAN SILICON TUBE FOR SPINDLE

  • BLACKFOOT SILICON TUBE FOR SPINDLE

    The Black foot requires 38 feet of 1/4 Inside Diameter and 3/8 Outside Diameter silicon tube for the spindle.

    Click the link to add information to this solution:
    BLACKFOOT SILICON TUBE FOR SPINDLE

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


    Additional Information:
    Hi guys I’m new to the cnc and I’m beginning to learn how to operate and cad-cam software also my cnc runs on Mach3 my questions is if I should use MacBook to do all designs if I can have all this software to run on Mac or I have to use windows software to operate it? I have separate small computer connected to the cnc table who have Mach3 on it please help. Also if you know any other software much easy for beginners please let me know thank you guys!
    My email if needed is r1jastrzebski@gmail.com

    Additional Information:


    Additional Information:
    Hi , thank you for your advise!

    Additional Information:
    Hi , thank you for your advise!

    Additional Information:
    Hi , thank you for your advise!

    Additional Information:
    Hi , thank you for your advise!

    Additional Information:

    Click the link to add information to this solution:
    CAN I USE A MAC TO CONTROL THE CNC?

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

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

  • LENGTH OF THE BRUSH STRIP FOR SPINDLE 2.2KW

    The total length of the brush strip for a 2.2kW spindle would be 17 1/4" inches.

    Additional Information:
    20

    Click the link to add information to this solution:
    LENGTH OF THE BRUSH STRIP FOR SPINDLE 2.2KW

  • DOES THE SPINDLE RUN ON A 50HZ POWER SOURCE?

    The spindle inverter (VFD) will run on a 220V (or between 170V-250V) power source with either 50Hz or 60Hz.

    Click the link to add information to this solution:
    DOES THE SPINDLE RUN ON A 50HZ POWER SOURCE?

  • WHAT SIZE COLLET IS IN YOUR 1.5 KILOWATT SPINDLE?

    The collet in the 1.5 kW spindle is an ER-11 and cannot reach the 1/2" size. I would consider the 2.2 kW spindle instead.

    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    WHAT SIZE COLLET IS IN YOUR 1.5 KILOWATT SPINDLE?

  • WHAT IS THE SYSTEM PASSWORD FOR LASER CONTROL UNIT?

    The password is: 608

    Click the link to add information to this solution:
    WHAT IS THE SYSTEM PASSWORD FOR LASER CONTROL UNIT?

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.