586,068 active members*
3,876 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Spindles / VFD > Huangyang VFD and 2.2kw Spindle working with Relay and PWM
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2016
    Posts
    5

    Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    Hi all - I had a reasonably easy time setting this up to work with my CNCRP machine, but I want to share a few of the more annoying parameters to understand when setting up this machine.

    To control this spindle from mach3, it seems that there were two basic ways to do it.
    1. RS485 adaptor to the com port on the VFD + Custom Mach plugin to make up for the lack of true MODBUS compliance in the Huangyang VFD.
    2. Use a relay to set the forward pin, and use PWM to deliver a 0-10v signal to control the variable frequency.

    I went with option 2, since I figured it was easier to understand and troubleshoot. (this may or may not have been true).

    First things:
    1. I wired up the spindle and VFD with a standard external potentiometer using the reference 10v and concluded that it was working as expected. This included modifying the setting for external control instead of the control panel on the front of the VFD. In doing this I also wired in a simple toggle switch to connect the FWD pin to the ACM pin.
    2. The VFD expects the following pieces of information to run the spindle and control the speed - to put the spindle in FWD mode by shorting FWD to ACM, and to supply an ANALOG voltage between VI and ACM. From the factory, the VFD expects 0-10v, but if you have PWM set up for 5v, you can reconfigure that voltage using "PD070" according to the manual.

    Next, I replaced the switch that I had wired in with a wire connected to my relay. The CNCRP box had a spare which I used, but any relay could be configured in Mach. Once I had this working I verified that I could set the speed with the potentiometer once the relay was closed.

    Next I attached the the VI and ACM pins to the 10v PWM on my CNCRP board. The CNCRP has both 10v and 5v PWM circuits, but the 10v was easier to setup in my case, and didn't require reconfiguring the VFD.

    Unfortunately, the VFD cannot accept PWM signal, and really requires an analog voltage which means you need to go to radio shack and buy: (1) 1 ohm resistor (1) 15 ohm resistor (1) 100uF capacitor. You assemble these into a small RC filter and put this inside the case with your CNC control. PWM signal comes in, and line voltage comes out. In order to get a nice smooth output signal without too much fluctuation I found that in Mach i got the best result setting the PWM base frequency to 25hz. (Note, if you use a smooth stepper, set this PWM frequency there as well). Set the output lines from your RC filter (+) to the VI terminal, and (-) to the ACM terminal.

    IMPORTANT: You need to set the safe min frequency on PD007 to 200hz for 12000rpm minimum. And the Max frequency PD005 to 400hz. However, if you want to use PWM control you also need to set your "Lower Analog Frequency" PD073 to 200hz as well. If you do not set the lower analog frequency here, you will find that the VFD tries to map your PWM signal all the way from 0hz to 400hz, but will not operate until you reach your safe frequency (PD007), and you will spend many many hours chasing voodoo explanations and reading the manual.

    Configure your spindle pulley for 12000 to 24000 with a scale of 1. You can now use your S commands to set the actual spindle speed in RPM. Mine came out within ~100rpm of what I set, which for my purposes is good enough. You can go through some tuning processes if it is not.

    finally, on Ports and Pins > Spindle settings in Mach, configure your spin up time for your spindle. To max RPM I calculated that this spindle takes 12 seconds for a nice gentle spin to full RPM. Make sure this is set correctly or mach can start cutting before your spindle is up to speed. I decided not to try to get the spindle to spin up to quickly because it keeps the amperage load on the spindle and the VFD lower, and I figured this was an easy way to add a margin of safety to the machine.

    Good Luck!

  2. #2
    Join Date
    Dec 2003
    Posts
    24221

    Re: Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    Also the input can be operated without a relay where the BOB etc uses an open collector device or like Gecko G540, an open drain Mosfet.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  3. #3
    Join Date
    Jan 2018
    Posts
    2

    Re: Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    Hello,

    1. my Huanyang VFD 2.2kW Spindle has PD007 (Min Frequency) : 0.01...20.00 Hz. You write above 200 Hz ?
    2. do you have a sketch for your RC-filter (1R + 15R + 100uF) ?

    Thanks.

    Best Regards
    Adam

  4. #4
    Join Date
    Jan 2005
    Posts
    15362

    Re: Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    Quote Originally Posted by koniu12 View Post
    Hello,

    1. my Huanyang VFD 2.2kW Spindle has PD007 (Min Frequency) : 0.01...20.00 Hz. You write above 200 Hz ?
    2. do you have a sketch for your RC-filter (1R + 15R + 100uF) ?

    Thanks.

    Best Regards
    Adam
    This is an old thread, he may still reply

    It would depend if you have a water cooled spindle or an air cooled spindle

    PD07 can be set to 20Hz this is the VFDs starting frequency, I think he made a typo when he said 200

    PD011 is the minimum frequency Parameter to set

    PD011=200 for air cooled spindle

    PD011=100 for water cooled spindle

    And PD73 needs to match what ever your spindle is water cooled or air cooled

    This is a RC filter
    Mactec54

  5. #5
    Join Date
    Apr 2013
    Posts
    1899

    Re: Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    Quote Originally Posted by mactec54 View Post
    It would depend if you have a water cooled spindle or an air cooled spindle

    PD011 is the minimum frequency Parameter to set

    PD011=200 for air cooled spindle

    PD011=100 for water cooled spindle
    This is a myth. It depends on the spindle itself, not if it is air or water cooled. Most cheap spindles, water or air cooled have the same minimum operational rpm, and that is 6000rpm, or 100Hz. Also, since there are even active cooled spindles, which have their own cooling fan, you can get even lower with some of those.

    I have been using my 1.5kW air cooled spindle for over a year now and many times using it down to 4800rpm for long periods drilling aluminum, and 6000rpm for hours and the motor is not even as hot as the steppers, I can without problems have my hand on the motor housing, so it is only around 40C. Perhaps that depends a lot also on the VFD, I don't know since I never had a popular cheapo eBay VFD so far, but considering all the talk about minimum rpm per definition being higher for air cooled is just nonsense. It is definitely not a black and white truth.

  6. #6
    Join Date
    Jan 2018
    Posts
    2

    Re: Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    I have (had) a water cooled spindle.
    PD011 was 0.
    The spindle was started with 200RPM, after 30s came smoke down and the spindle is broken....
    Help, whats wrong ?????

  7. #7
    Join Date
    Jan 2005
    Posts
    15362

    Re: Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    Quote Originally Posted by koniu12 View Post
    I have (had) a water cooled spindle.
    PD011 was 0.
    The spindle was started with 200RPM, after 30s came smoke down and the spindle is broken....
    Help, whats wrong ?????
    That is because your spindle has a minimum speed of 6,000 RPM, anything below that and you will get what you experienced smoke

    All the Parameters in the VFD need to be correct to run these spindles

    PD011 must have a minimum of 100Hz set for safe operation

    What other parameter's did you set
    Mactec54

  8. #8
    Join Date
    Jan 2005
    Posts
    15362

    Re: Huangyang VFD and 2.2kw Spindle working with Relay and PWM

    Quote Originally Posted by A_Camera View Post
    This is a myth. It depends on the spindle itself, not if it is air or water cooled. Most cheap spindles, water or air cooled have the same minimum operational rpm, and that is 6000rpm, or 100Hz. Also, since there are even active cooled spindles, which have their own cooling fan, you can get even lower with some of those.

    I have been using my 1.5kW air cooled spindle for over a year now and many times using it down to 4800rpm for long periods drilling aluminum, and 6000rpm for hours and the motor is not even as hot as the steppers, I can without problems have my hand on the motor housing, so it is only around 40C. Perhaps that depends a lot also on the VFD, I don't know since I never had a popular cheapo eBay VFD so far, but considering all the talk about minimum rpm per definition being higher for air cooled is just nonsense. It is definitely not a black and white truth.
    It is no myth, yes you can run at slower speeds, as long as you watch the temperature, with a water cooled spindle you can't feel what the inside temperature is, and most smoke the spindles before there is any sign of over heating

    Some of the Spindles are better made than others, you may have one of the better built ones, that you can brag that you run it slower, than the manufacturer's spec's, that's fine for you, but may not be fine for someone else, as the last post he smoked his spindle because people like you say it's a myth, so they try and run there spindles slow, and in almost an instant they will see there money go up in smoke
    Mactec54

Similar Threads

  1. Mechatronics Twin Relay Board(Working)
    By MegaMoog in forum For Sale Only
    Replies: 1
    Last Post: 11-15-2016, 12:10 AM
  2. huangyang vfd and spindle question
    By keverett in forum Open Source CNC Machine Designs
    Replies: 2
    Last Post: 01-29-2016, 05:13 AM
  3. Spindle relay not working in Mach 3
    By Marcin81 in forum Mach Software (ArtSoft software)
    Replies: 7
    Last Post: 04-01-2013, 08:07 PM
  4. Hypertherm MAX20 & C8 Relay not working
    By CPierce18 in forum Waterjet General Topics
    Replies: 3
    Last Post: 05-05-2010, 01:55 AM
  5. Relay for spindle on/off
    By yukonho in forum Xylotex
    Replies: 14
    Last Post: 03-31-2004, 05:50 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •