504,413 active members
5,122 visitors online
Register for free
Login
IndustryArena Forum > CNC Electronics > Spindles / VFD > Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3
Page 1 of 3 123
Results 1 to 12 of 31
  1. #1

    Unhappy Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Hey Guys

    I'm a newbie on this: I recently have built a large DIY CNC.

    Thanks to the fantastic project called Root CNC, I was able to print myself (since I have got two 3D printers) all the pieces required and completing the assembly of a Root 3 CNC.
    The machine it's really good and runs on 4 Nema 23 motors (model 23HS45), each one individually driven by a M542T driver. All drivers are connected to the 5 Axis breakout board which works perfectly.

    I've decided to upgrade my spindle to a HuanYang VFD inverter + 1.5 kW Water cooled spindle combo (VFD model is: HY01D523B). I've made the connections between the spindle and the VFD and I tried to run it via the VFD keys, resulting in a perfect movement.
    Now I'm trying to hook it up to my 5 Axis Breakout Board but don't know how to exactly do it since there are sooo many pins on the VFD that I lost myself in...

    Question is: how should I connect my VFD in order to let it run autonomously through Mach3, on my specific 5 Axis breakout board? Which pins should I use? According to the only sheet I got with the board, should be those on the bottom right header of the board but how to hook them up and which pins to connect to the VFD? Also, what should be the right configuration for mach3 in order to set speed and enable, disable the spindle?

    I'm attaching some pics of my components on this message.

    Thanks in advance

  2. #2

    Join Date
    Jan 2005
    Posts
    10153

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Quote Originally Posted by Gabry1609 View Post
    Hey Guys

    I'm a newbie on this: I recently have built a large DIY CNC.

    Thanks to the fantastic project called Root CNC, I was able to print myself (since I have got two 3D printers) all the pieces required and completing the assembly of a Root 3 CNC.
    The machine it's really good and runs on 4 Nema 23 motors (model 23HS45), each one individually driven by a M542T driver. All drivers are connected to the 5 Axis breakout board which works perfectly.

    I've decided to upgrade my spindle to a HuanYang VFD inverter + 1.5 kW Water cooled spindle combo (VFD model is: HY01D523B). I've made the connections between the spindle and the VFD and I tried to run it via the VFD keys, resulting in a perfect movement.
    Now I'm trying to hook it up to my 5 Axis Breakout Board but don't know how to exactly do it since there are sooo many pins on the VFD that I lost myself in...

    Question is: how should I connect my VFD in order to let it run autonomously through Mach3, on my specific 5 Axis breakout board? Which pins should I use? According to the only sheet I got with the board, should be those on the bottom right header of the board but how to hook them up and which pins to connect to the VFD? Also, what should be the right configuration for mach3 in order to set speed and enable, disable the spindle?

    I'm attaching some pics of my components on this message.

    Thanks in advance
    The Relay output is connected to FWD and DCM in the VFD Drive

    0-10v output is connected to VI and ACM in the VFD Drive

    Here are the Parameters that are needed for your spindle, you will need to change some of what you have, for remote control

    These are the correct Parameters for your spindle

    Huanyang Mactec54
    PD000=0 for Parameter unlock ( 1 ) for Parameter Lock

    PD001=0 (1 For Remote Control) ( 1 For 0-10v Terminal Control or Remote Trim Pot Control ) ( J1 Also Needs to be set for Terminal Control )

    PD002=0

    PD003=400

    PD004=400

    PD005=400

    PD007=20

    PD008=220 (Motor Rated Voltage)

    PD009=15

    PD010=8

    PD011=120 ( 100 Minimum Setting with Quality VFD, 120 is Safe)

    PD13= 08 ( is for Factory reset, Only use this to set VFD to Factory Default Settings )

    PD014=10 ( Acceleration Adjust to suit)

    PD015=10 ( Deceleration Adjust to suit) ( PD15 is ignored IF PD26=1 Then the Spindle will Coast to a Stop)

    PD141=220 ( Motor Rated Voltage )

    PD041=8 ( Carrier Frequency )

    PD142=7 ( Motor Max Amps for 1.5Kw Spindle)

    PD143=2 ( Motor Number of Poles)

    PD144=3000 (Max Motor RPM) =3,000= (24,000)

    PD70=0 ( This may need to be set to 1 if Control Voltage is 0-5v )

    PD72=400

    PD73=120 ( 100 Minimum Setting )
    Mactec54

  3. #3

    Lightbulb Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Hey man!

    Thanks a lot for your very detailed response, you rock!

    Ok, so if I've understood correctly, I should wire the VFD to the breakout board like this, right?



    By looking at other forum posts and pics found on the internet, I also got wiring alternatives, like these:



    Someone in the Root CNC group also linked me this post in which you can see there is a quite similar connection to the one you suggested, apart from a strange exchange between the couples (common grounds, I think) of terminals on the vfd, so FOR with ACM and VI with DCM but I assume it would be the same, right?

    And last but not least, someone else also said this:

    I think you may also need to connect one of the "Range" inputs (SPL, SPM, SPH) to DCM. It isn't clear to me that ther FOR/DCM will Stop if it is opened. (And this action may be programmable in the inverter setup.) Also not clear to me is whether the PWM will be properly interpreted by the inverter.

    Based on your experience, which wiring is correct and also the best to gain the full control of my VFD-controlled spindle via Mach3, using my board?

    Last question, I promise: you wrote me a list of parameters to set into my spindle: but I'm not totally understanding which is correct to set and which is not. Are the one you wrote first the correct one or should I choose the right case in the brackets? Saying this 'cause I'm not totally sure I will choose correctly, so sorry for this but I would like to understood perfectly before damaging something! :drowning:


    Thanks a lot for your support

  4. #4

    Join Date
    Jan 2005
    Posts
    10153

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Quote Originally Posted by Gabry1609 View Post
    Hey man!

    Thanks a lot for your very detailed response, you rock!

    Ok, so if I've understood correctly, I should wire the VFD to the breakout board like this, right?



    By looking at other forum posts and pics found on the internet, I also got wiring alternatives, like these:



    Someone in the Root CNC group also linked me this post in which you can see there is a quite similar connection to the one you suggested, apart from a strange exchange between the couples (common grounds, I think) of terminals on the vfd, so FOR with ACM and VI with DCM but I assume it would be the same, right?

    And last but not least, someone else also said this:

    I think you may also need to connect one of the "Range" inputs (SPL, SPM, SPH) to DCM. It isn't clear to me that ther FOR/DCM will Stop if it is opened. (And this action may be programmable in the inverter setup.) Also not clear to me is whether the PWM will be properly interpreted by the inverter.

    Based on your experience, which wiring is correct and also the best to gain the full control of my VFD-controlled spindle via Mach3, using my board?

    Last question, I promise: you wrote me a list of parameters to set into my spindle: but I'm not totally understanding which is correct to set and which is not. Are the one you wrote first the correct one or should I choose the right case in the brackets? Saying this 'cause I'm not totally sure I will choose correctly, so sorry for this but I would like to understood perfectly before damaging something! :drowning:


    Thanks a lot for your support
    Your diagram is correct

    That wiring they are showing is incorrect, the Rely output from your Breakout Board is for turning the Spindle On / Off through FWD and DCM, This is correct, the snip below is from the manual

    Your PWM is an analog output so connects to the ACM VI

    That is also not the same VFD they are using, that looks like an AskPower VFD Drive, which is a poor copy of what you have

    Just check with a meter if the 2 Terminals connections are the same ACM DCM on some VFD Drives they are the same, but on high quality VFD Drives they are not

    Mach3 is not perfect for spindle control but in most cases is good enough for most types of work, you need spindle feed back ( encoder ) to have perfect speed control

    The main list of Parameters are correct ( what is in the brackets are what can be used, or are meaning you can adjust that Parameter to suit your machine, also gives you what Parameters to set for Remote or Key Pad use )
    Mactec54

  5. #5
    Registered
    Join Date
    Sep 2005
    Posts
    1092

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Just curious, what is the use of PWM between PCGND and P17 B Dir/relay ? Not used ?

  6. #6

    Join Date
    Jan 2005
    Posts
    10153

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Quote Originally Posted by asuratman View Post
    Just curious, what is the use of PWM between PCGND and P17 B Dir/relay ? Not used ?
    If you test it and it outputs 0-10v then there is no reason not to use it, I have not checked one, to see, it most likely does not have a controlled 0-10v as per the correct 0-10v connection
    Mactec54

  7. #7
    ericks
    Guest

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Quote Originally Posted by mactec54 View Post
    If you test it and it outputs 0-10v then there is no reason not to use it, I have not checked one, to see, it most likely does not have a controlled 0-10v as per the correct 0-10v connection
    I have this bob....my guess, and its just a guess, is that it could be the pwm from mach3 straight onto that connection. When i get a chance i plan to look at the mach3 pwm on the scope....i will now also look at this output and report back

  8. #8

    Join Date
    Jan 2005
    Posts
    10153

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Quote Originally Posted by ericks View Post
    I have this bob....my guess, and its just a guess, is that it could be the pwm from mach3 straight onto that connection. When i get a chance i plan to look at the mach3 pwm on the scope....i will now also look at this output and report back
    That would be a good plan, there are a lot that seem to be using this Breakout Board, there are more than ( 1 ) configuration of this Board, even though they look the same there are some differences in the layout
    Mactec54

  9. #9
    ericks
    Guest

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Quote Originally Posted by asuratman View Post
    Just curious, what is the use of PWM between PCGND and P17 B Dir/relay ? Not used ?
    Hi i just had a look at the pwm pin...actually on the board it shows you its from mach3 pwm cause its marked pin1....that is the pin you set in mach3 config.

    Also had a look at it on the scope, confirmed it's the actual pwm signal from mach3....also its a nice and clean pwm signal. Good use of this pin would be to check if the mach3 pwm setup works properly.....Just use a led and resistor

  10. #10

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Nice discover, Ericks, but what are the benefits of using this kind of signal? I mean, should we connect it to the VFD? (which pin?)

    Also it's more convient to use this, replacing the 0-10V output or use both of them at the same time?

  11. #11
    ericks
    Guest

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    I also confirmed that the pwm signal from mach3 is operating properly through its full range. The breakout board is however not converting this signal very accurately....so the conversion is not linear
    Guess we shouldn't expect too much of a board in this price range. I may or may not use it in my machine....

  12. #12
    ericks
    Guest

    Re: Driving an HuanYang VFD Inverter via 5 Axis Breakout Board on Mach3

    Quote Originally Posted by Gabry1609 View Post
    Nice discover, Ericks, but what are the benefits of using this kind of signal? I mean, should we connect it to the VFD? (which pin?)

    Also it's more convient to use this, replacing the 0-10V output or use both of them at the same time?
    Personally, if i had no test instruments and if i were struggling with getting the speed control sorted by mach3 then the only thing i would use this pin for is with a led to "see" if i am getting a changing signal from mach3 when i change the speed on mach3.
    Some VFD drives may be able to use this signal directly as a speed reference. I think possibly the Danfoss drive may well be one that may benefit from this signal.....

Page 1 of 3 123

Similar Threads

  1. Motors not moving on mach3 using 6 axis breakout board
    By Freddo2016 in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 05-10-2017, 10:56 AM
  2. Replies: 0
    Last Post: 04-23-2017, 05:18 PM
  3. Sainsmart 4 axis mach3 USB breakout board plugin
    By Ctimbs in forum General CNC Machine Related Electronics
    Replies: 0
    Last Post: 12-26-2016, 08:00 PM
  4. Replies: 1
    Last Post: 11-20-2016, 04:58 PM
  5. Replies: 0
    Last Post: 02-16-2016, 01:45 PM

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
  •