Huanyang VFD Macro/ Plugin - Page 3

Page 3 of 32 FirstFirst 12345613 ... LastLast
Results 25 to 36 of 376

Thread: Huanyang VFD Macro/ Plugin

  1. #25
    Registered
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    650
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Dan,
    I tested out your macro and a big THANK YOU!!!!! It works great, no problems getting it to run. Thanks again.



  2. #26
    Registered
    Join Date
    Mar 2010
    Location
    America
    Posts
    706
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Quote Originally Posted by jfong View Post
    Dan,
    I tested out your macro and a big THANK YOU!!!!! It works great, no problems getting it to run. Thanks again.
    Hi Jfong, thanks for your feedback. I'm happy to see another Hunayang owner using it. I've done some tweaking to the macro and after I fully test and if all good I will post it.

    Thanks again,
    Dan



  3. #27
    Registered
    Join Date
    Mar 2010
    Location
    America
    Posts
    706
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Hi Jfong,

    Below is a new version of the Hunayang VFD macro for UCCNC. If you are using the macro I first posted I suggest switching to this one. Here's a list of what I added.

    1. I guess it could be called "error handling". If the macro don't receive a response from VFD it will continually send string until it responds. You will also get a warning in the UCCNC status message box. I've had yet to see this message in use/testing but it's there in case computer or VFD hip-cups.

    2. The Macro will now periodically send strings to what ever conditions/strings in use. This is easily editable in minutes within the macro. I have it set to resend every 3 min.

    I hope you and others will find this macro as useful as I do.

    Last edited by Dan911; 12-07-2016 at 09:02 PM. Reason: Linked wrong file


  4. #28
    Registered
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    650
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Great thanks. I'll give this a try this weekend. I need to make some xmas ornaments.



  5. #29
    Registered
    Join Date
    Mar 2010
    Location
    America
    Posts
    706
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    I posted a link to download the HY macro this afternoon and it wasn't until i went to cut something tonight I realized it was the wrong file. It was the same file but I was playing around with delays "exec,wait()" and made the button response a little sluggish. The correct one below.




    M1097.txt



  6. #30
    Registered
    Join Date
    Mar 2010
    Location
    America
    Posts
    706
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Quote Originally Posted by A_Camera View Post
    Issues with this solutions are:

    • Missing error handling. This is very serious, especially if messages are only sent once.
    • Lack of locking COM resource at the start of UCCNC. Continuously opening/closing COM is not a good solution at all.
    • Timing. It relies on UCCNC macro loop timing, which is far too fast for this purpose.
    • Lack of localization. Will be fixed in next UCCNC release, but for now anyone living outside of USA and/or using other than US English Windows should add these two lines at the beginning of the code:


    Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US", false);
    Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US", false);
    Hi AC,
    Obviously I value your input and is why I addressed each of your issues.

    "Missing error handling. This is very serious, especially if messages are only sent once."

    Macro will now continually resend string until a response from VFD, also every 2-3 minutes strings(packets) will be resent.

    "Lack of locking COM resource at the start of UCCNC. Continuously opening/closing COM is not a good solution at all."

    OMG... this one had me beating my head against the wall and was the F-ing simplest. goto/start duh...

    port now opens with UCCNC and closes with UCCNC

    "Timing. It relies on UCCNC macro loop timing, which is far too fast for this purpose."

    This was a lot of trial and error, actually 100ms was enough for send and recieve after sent string. Have it set to 1000ms, this was the max before noticing a delay after pushing cw/ccw button. Frequency is set to 2000ms since you could never notice any difference.


    "Lack of localization. Will be fixed in next UCCNC release, but for now anyone living outside of USA and/or using other than US English Windows should add these two lines at the beginning of the code:"

    Like you posted... It will be addressed in next release, otherwise add the two lines you posted.

    I basically had to rewrite to accommodate the port issue and want to do some thorough testing before posting since I have 3 versions posted already. If anyone wants to take a look before, LMK and I will send.

    Dan



  7. #31
    Registered
    Join Date
    Mar 2010
    Location
    America
    Posts
    706
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Hello All,

    Below is a link for a plugin to control your Huanyang VFD/spindle with UCCNC. Enclosed in zip file is a step by step instructions.

    Dan

    HYPLUGIN.zip



  8. #32
    Registered
    Join Date
    Mar 2014
    Posts
    10
    Downloads
    5
    Uploads
    0

    Default Re: Hunayang VFD Macro

    That never crossed my mind. No setting your min and max rpm to 8000 - 24000 wont help. Its still going send 133.33 to 400 to VFD. If you don't mind I would like to have a little fun with this. If your max rpm is 2500 what's your minimum?
    and using Mach3 with plugin what does the frequency read on your VFD with max rpm and min RPM?

    Please answer me in the Huanyang Macro Thread, were hijacking zymurgy42 thread...lol The link is below
    Not a problem Dan, I'm only to happy to give you any info I can, after all, it's me that's asking for help.
    I normally run my mill at 2000rpm, and I can go down to 400rpm. I don't really know if this is a frequency reading or not but, when I am running at 2000rpm, the readout on the VFD gives me 1999, 400rpm gives me 399, 2500 gives me 2499 etc etc.

    Hope this helps ! My buddy who done all the electronics is working away at the moment, or I could possibly have given you more relevant info.



  9. #33
    Registered
    Join Date
    Mar 2010
    Location
    America
    Posts
    706
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Quote Originally Posted by needleworks View Post
    Not a problem Dan, I'm only to happy to give you any info I can, after all, it's me that's asking for help.
    I normally run my mill at 2000rpm, and I can go down to 400rpm. I don't really know if this is a frequency reading or not but, when I am running at 2000rpm, the readout on the VFD gives me 1999, 400rpm gives me 399, 2500 gives me 2499 etc etc.

    Hope this helps ! My buddy who done all the electronics is working away at the moment, or I could possibly have given you more relevant info.
    What your VFD is set to display is your RPM (Rott LED on), the Huanyang VFD has a lot more info to offer, such as output AMPS, temperature, counter, etc,etc. If you press the shift key on your VFD(>>) you can scroll through the LEDS to display it. If you scroll to have the" HZ" Led light on this will display the frequency the VFD is outputting. If I knew the outputting frequency on your min and max RPM I would be able to calculate and modify the plugin to work for you.

    Right now the plugin is set for Chinese spindles which is 50HZ = 3000.

    Dan



  10. #34
    Registered
    Join Date
    Mar 2014
    Posts
    10
    Downloads
    5
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Quote Originally Posted by Dan911 View Post
    What your VFD is set to display is your RPM (Rott LED on), the Huanyang VFD has a lot more info to offer, such as output AMPS, temperature, counter, etc,etc. If you press the shift key on your VFD(>>) you can scroll through the LEDS to display it. If you scroll to have the" HZ" Led light on this will display the frequency the VFD is outputting. If I knew the outputting frequency on your min and max RPM I would be able to calculate and modify the plugin to work for you.

    Right now the plugin is set for Chinese spindles which is 50HZ = 3000.

    Dan
    Ok, no problem, I'll certainly have a look at that, Ok, hopefully these are the HZ readings ?

    At 400rpm > 13.88 at 2000rpm > 69.44 at 2200rpm > 76.38

    Thanks again for your help Dan, much appreciated

    Last edited by needleworks; 01-11-2017 at 07:57 PM.


  11. #35
    Gold Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    7115
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    Quote Originally Posted by Dan911 View Post
    Right now the plugin is set for Chinese spindles which is 50HZ = 3000.Dan
    I don't think the spindle would be very happy using a 50Hz setting, 50Hz could never = 3000, if 50Hz is written in the plugin then it has no meaning only the number 3000 is active

    50Hz=1440 standard Ac motor at 50Hz= 1440 RPM

    400Hz=3000 Chinese Spindle at 24,000 RPM

    Mactec54


  12. #36
    Registered
    Join Date
    Mar 2010
    Location
    America
    Posts
    706
    Downloads
    0
    Uploads
    0

    Default Re: Hunayang VFD Macro

    3000rpm @ 50hz

    24000/3000 = 8

    8 * 50hz = 400hz

    Last edited by Dan911; 01-12-2017 at 12:29 PM.


Page 3 of 32 FirstFirst 12345613 ... LastLast

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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Huanyang VFD Macro/ Plugin
Huanyang VFD Macro/ Plugin