603,330 active members*
4,303 visitors online*
Register for free
Login
Page 6 of 29 4567816
Results 101 to 120 of 574
  1. #101
    Join Date
    Mar 2003
    Posts
    35494

    Re: Hunayang VFD Macro

    OK, it's not writing the values.
    I'm not sure if that's the problem, but in my bad profile, I see:

    Spindleminvelocity=
    Spindlemaxvelocity=
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  2. #102
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    Quote Originally Posted by ger21 View Post
    OK, it's not writing the values.
    I'm not sure if that's the problem, but in my bad profile, I see:

    Spindleminvelocity=
    Spindlemaxvelocity=
    Exactly what happened with previous problem, these values cannot be empty or profile won't load. Why and when it does this is still a mystery to me. Have to find thread in cncdrive and see what Balázs said.

  3. #103
    Join Date
    Mar 2003
    Posts
    35494

    Re: Hunayang VFD Macro

    It happens when I disable the plugin.
    If I enable it, and leave it enabled, the problem does not occur.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  4. #104
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    That definitely help's in taking a step further in debugging. The plugin writes to pro file in the shutdown event, possibly when disabled and shutting down it's not giving access to the plugins Settings Class and would explain way it's empty. What I don't understand is way I can't trigger this and tried many times with the method that caused it for you. It's tough debugging without knowing what UCCNC is doing, gonna have to make a thread on cncdrive and hopefully get to the bottom of this issue. Like I posted previously, I can just remove these 2 lines and user will have to set there min and max in spindle set up, but it's gonna drive me nuts until i know whats causing this...lol

    Dan

  5. #105
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    Quote Originally Posted by ger21 View Post
    It happens when I disable the plugin.
    If I enable it, and leave it enabled, the problem does not occur.
    Had some time tonight since I had to wait for my daughter to fall asleep so I could be the Easter Bunny. I would really appreciate it if you could test this and see if it fixed the problem, I can't seem to reproduce this so I have no way to test.
    I added if string null/empty don't send.

    Attachment 359024

  6. #106
    Join Date
    Mar 2003
    Posts
    35494

    Re: Hunayang VFD Macro

    Seems to be OK now. I enabled and disabled it twice, and it opens just fine now.
    The values written in the profile for the min and max match what's on the spindle setup page.

    The plugin writes min and max RPM to pro file on closing...I set the HYPLUGIN SetUp window to not allow these fields to be left empty and only allow 0-9 digits.
    I missed this yesterday, and neglected to tell you that I never entered any values in the plugin Config window, since I don't have my RS485 converter yet.

    But it looks like you've fixed it.
    Hopefully my converter shows up early so I can test it out.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  7. #107
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    I was so focused on what code did when the calculate button was pressed I overlooked that if button was never pressed but plugin enable it can obviously cause this. I think I got it covered on all ends now, if all else fails and field is empty it won't write to pro file.

    Thanks for your help,
    Dan

  8. #108
    Join Date
    Mar 2003
    Posts
    35494

    Re: Hunayang VFD Macro

    OK, so Amazon came through with my RS485 converter, $7, delivered on Easter Sunday.
    It took me a little bit to get it running, but it's pretty slick.
    Couple little things.

    I think the reason that it didn't initially work, was that I didn't click the Calculate button. I was glancing through the instructions, and didn't know it was required.
    Perhaps change the two buttons to:
    Save Port Settings (Save)
    Save Motor Settings (Calculate)
    This would make more sense to those that don't read manuals (Most people).

    If it were me, I'd remove the second com and baud rate text boxes, and just save what's in the combo boxes? Or is there an issue with that? I found that slightly confusing?

    Minor issues:
    I have my min at 8000 and max at 24,000.
    If I do an S12000, and an override of 50%, your Sact field shows 6000, and it should show 8000, as that's what the VFD is at. And strangely, the VFD goes to 7980, and not 8000, when it's commanded to a speed lower than 8000?


    And not your problem, but FYI, if you have an analog voltage wire connected to the VI terminal, with 0V on it (I think, I didn't check), the analog VI was restricting the voltage to 11880rpm. If I types in S20000 in MDI, it would go to 11880. Very strange?? Enable PWM was not checked. As soon as I removed the VI wire, all was well.

    Bottom line, you've done a fine job, and a great service to the UCCNC community. Well done. :cheers:

    I'm going to do a new video showing the control with your plugin.
    I also have a link to it on my website. I'll also add a link to the converter I bought, and the driver I found for Windows 10 x64.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  9. #109
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    Thankyou Gerry that means alot coming from you.

    The PWM has to be checked in spindle set up, if "step/direction spindle" is checked max rpm will be 11880. There's a post on this in the cncdrive HYPLUGIN thread and I never got around to adding to set up instructions, it is mentioned here in post #86.

    Yes the RPM speed can go below min RPM setting with spindle override, it won't go above 24000 rpm though. I been holding back uploading HY6 that implements the Amp feature to tweak all these issues mentioned so it could be called final release.

    Don't know what version you are using but the testHY6 has the Amp feature.

    Thanks,
    Dan

  10. #110
    Join Date
    Mar 2003
    Posts
    35494

    Re: Hunayang VFD Macro

    I meant to mention the Amps setting.
    I didn't try it, but I think that you may be mistaken.
    Keep in mind that I have no idea if I'm right, but, I think that the ±1.0 amps I'm seeing is correct at no load, and should be the number that you should be displaying?
    Until I start cutting, I won't really know though.
    I got a 1/2" collet yesterday. I put a small brass rod in it, and grabbed it with a leather glove while it was spinning. I could get it up to around 2 amps.
    Some online calculators are telling me that1 amp is about 0.4HP, which would seem about right to me with no load.
    Imo, you should never be displaying more amps then the max you have set in the VFD. In my case, 8.5.

    But I could be all wrong.

    Video almost uploaded. Will post in a few minutes.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  11. #111
    Join Date
    Mar 2003
    Posts
    35494

    Re: Hunayang VFD Macro

    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  12. #112
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    The plugin Amp field is displaying whatever is outputted by the HY VFD, the same as what the VFD is displaying. All I did was add it to set amps(PD142) of VFD which I believe is correct. The VFD displays out amps above this setting(PD142).

    Dan

  13. #113
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    The plugin Amp field is displaying whatever is outputted by the HY VFD, the same as what the VFD is displaying. All I did was add it to set amps(PD142) of VFD which I believe is correct. The VFD displays out amps above this setting(PD142).
    I can be very wrong also... That's why I haven't technically uploaded yet,removing the PD142 read and write will be easy and 1 less step for the plugin.


    GREAT VIDEO!!!

    Thanks,
    Dan

  14. #114
    Join Date
    Mar 2010
    Posts
    813

    Re: Hunayang VFD Macro

    Quote Originally Posted by ger21 View Post
    I meant to mention the Amps setting.
    I didn't try it, but I think that you may be mistaken.
    Keep in mind that I have no idea if I'm right, but, I think that the ±1.0 amps I'm seeing is correct at no load, and should be the number that you should be displaying?
    Until I start cutting, I won't really know though.
    I got a 1/2" collet yesterday. I put a small brass rod in it, and grabbed it with a leather glove while it was spinning. I could get it up to around 2 amps.
    Some online calculators are telling me that1 amp is about 0.4HP, which would seem about right to me with no load.
    Imo, you should never be displaying more amps then the max you have set in the VFD. In my case, 8.5.

    After doing some reading I still wasn't able to come up with definitive answer but what your suggesting is starting to make a lot more sense than what I was assuming. One thing that's for sure is this out amp reading outputted by the HY VFD definitely increase's under load and that's all I was after. For this to be used as a tool for fine tuning cuts and protection to spindle.

    I intend to set it's display exactly as the VFD outputs it like you suggested.

    Thanks for your help,
    Dan

  15. #115
    Join Date
    Mar 2010
    Posts
    813

    Re: HYPLUGIN UpDated to 97

    Hello all, I have a new updated version of this plugin and should be and hopefully last providing no reported bugs. Anyone using this plugin should download since a lot been rewritten(especially below 95) and new features were added and some minor bugs fixed.

    Minor bugs fixed:

    1. Spindle override would allow rpm to go lower than rpm min setting and was fixed.

    2. Using 2017 screenset slider for spindle override, if going back and forth quickly the rpm would sometimes prematurely set and was fixed. (Even though the only time doing that would be for testing )

    3. The test version I uploaded for ger21 and others have downloaded had issues with the amp output and was rewritten and fixed.

    4. Tried to make buttons more clear in the hyplugin configure window. I do strongly suggest reading setup instructions because 1 step missed plugin won't work.


    New Features:

    1. Output spindle/motor Amps. The Huanyang VFD outputs several types of info but this I found to be of use. You can monitor load on spindle while cutting and can easily adjust with spindle and feedrate override. This feature does require you to add a new field, what I did is just copied Sact field in screenset edit in UCCNC. It's in setup instructions enclosed with zip.

    2. RPM ONLY. I added this due to a few request. If you check this box plugin sends no commands for cw and ccw on and spindle off. This feature is used if you use other hardware for spindle on/off. It's in setup instructions enclosed with zip.


    Download HY97>>>>>>>>>>>>>>>>>>>>>>>>>>Attachment 359638

  16. #116
    Join Date
    Mar 2003
    Posts
    35494

    Re: Huanyang VFD Macro/ Plugin

    Looks good. I'll give it a try on Sunday.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  17. #117
    Join Date
    Mar 2010
    Posts
    29

    Re: Huanyang VFD Macro/ Plugin

    Dan,

    First off, thanks for putting all of the effort out to build this connection to the vfds.

    I am hoping that I might be able to trouble you or the group here to help me understand what I am doing wrong.

    A bit of background. I have had my setup running under mach3 without issue. I was controlling the VFD (huanyang) via an rs-485 connection. The control board is a gecko g540

    I just recently decided try moving to a uc300eth-5lpt board in front of the gecko and switching from mach3 to uccnc. I imported my settings from mach3 into uccnc.

    I have the following setup

    Uccnc version 1.2036
    Hy plugin 97

    Com1 and 9600 baud for the rs-485 and a 2wire connection to the vfd same as before

    Sact is set to 20050 same as the plugin setup
    Min rpm 6000 max 24000
    PWM spindle checked
    Spindle pulleys all set to 1

    Not sure if I need to do anything with pwm pin and Dir pin

    I hope you all can get me back on track here

    Thanks in advance

    Bob

  18. #118
    Join Date
    Mar 2003
    Posts
    35494

    Re: Huanyang VFD Macro/ Plugin

    You need to check the PWM spindle box, and click Apply and Saver Settings.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  19. #119
    Join Date
    Mar 2010
    Posts
    29

    Re: Huanyang VFD Macro/ Plugin

    Gerry,

    I thought that I had done that, but will double check.

    Thanks for the quick reply

    Regards,
    Bob

  20. #120
    Join Date
    Mar 2003
    Posts
    35494

    Re: Huanyang VFD Macro/ Plugin

    I can confirm that the 97 plugin does NOT work.
    Try using the one in post 90 or 97. (Version 95 or 96).

    Dan.

    With the 97 version, I don't get the message the the VFD is connected when starting UCCNC, and nothing seems to happen.
    Reverting back to 95 and it works. Back to 97 and nothing.

    One strange thing after going back to 95 is that I no longer get smooth response with the slider. It now has a noticeable delay?

    Also, I don't seem to need the PWM Spindle checked. The other day, I actually had Step/Dir Spindle checked. It actually works with either one, or nether one checked.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Page 6 of 29 4567816

Similar Threads

  1. Accessing Macro Variable from another macro
    By ex-egll in forum Mach Wizards, Macros, & Addons
    Replies: 1
    Last Post: 02-01-2014, 06:52 AM
  2. Replies: 2
    Last Post: 12-19-2012, 01:28 PM
  3. Replies: 3
    Last Post: 02-13-2012, 07:20 PM
  4. Replies: 2
    Last Post: 03-27-2009, 09:15 PM
  5. Convert Fanuc Macro to Fadal Macro
    By bfoster59 in forum Fadal
    Replies: 1
    Last Post: 11-09-2007, 06:41 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
  •