586,369 active members*
3,244 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Spindles / VFD > Connecting Huanyang VFD to Mach3 via Gecko 540
Page 3 of 4 1234
Results 41 to 60 of 70
  1. #41
    Join Date
    Aug 2008
    Posts
    110

    Spoke to soon

    Now what have I gone and done.
    After I had got the all the electronics working including the spindle in Mach3
    I moved everything into the cabinet and tided the wiring up ( opps )

    somewhere down the line I have lost the ability to slow the spindle down in Mach3, I can turn on and off still, when it starts it ramps up to full rpm.
    when I try lowering the spindle speed in mach3 nothing just stays on full.

    I did notice PD073 had reset so put it back to 400hz.

    any ideas what has gone a stray, I did take notes of my wiring so I would have a smooth ride,
    go figure....

  2. #42
    Join Date
    Apr 2006
    Posts
    225
    Hi guys,

    I'm about to do the same and use my G540 to control my vfd as well, did any of you guys downloaded the file with the wiring? On the begining of the post? I get a error 404 while tryng to download it.

    Also, I didn't know you needed a relay for that, I tought that just the VFD output control would work. Will that let me with just 1 more output from G540? Because pin 17 is geckos output number1

    A SSR wont work at all?

    I wanted to use 2 for coolant and vacuum but looks like there is no output left then...

    Thanx in advace to all

  3. #43
    Join Date
    Dec 2009
    Posts
    528
    Quote Originally Posted by Brenck View Post
    Hi guys,

    I'm about to do the same and use my G540 to control my vfd as well, did any of you guys downloaded the file with the wiring? On the begining of the post? I get a error 404 while tryng to download it.

    Also, I didn't know you needed a relay for that, I tought that just the VFD output control would work. Will that let me with just 1 more output from G540? Because pin 17 is geckos output number1

    A SSR wont work at all?

    I wanted to use 2 for coolant and vacuum but looks like there is no output left then...

    Thanx in advace to all

    Don't have the original wiring, but here's the diagram I did for my wiring. Just replace the SSR with a relay. I haven't been able to make the SSRs work. My relays are connected to my VFD and the motor brake on my z-axis.
    Attached Files Attached Files

  4. #44
    Join Date
    Apr 2006
    Posts
    225
    Jsantos,

    Can I use this board the way it is?

    2 Channel Relay Board for CNC Mach3 PARALLEL PORT 12V | eBay

    or this

    Two Relay Module Board for 8051 AVR PIC Project 12V m | eBay

    I have a 12v PS on my enclousure to use with fans and leds...

    Thank you

  5. #45
    Join Date
    Dec 2009
    Posts
    528
    Quote Originally Posted by Brenck View Post
    Jsantos,

    Can I use this board the way it is?

    2 Channel Relay Board for CNC Mach3 PARALLEL PORT 12V | eBay

    or this

    Two Relay Module Board for 8051 AVR PIC Project 12V m | eBay

    I have a 12v PS on my enclousure to use with fans and leds...

    Thank you
    Looks like a much better solution than the one I used. It already has the diode protection built into it. As I'm not an electronics expert, I'm wondering why they're driving the relay thru a transistor.

    If your LPT card supports 2 parallel ports, then you should be able drive your VFD, coolant and dust collector. In fact, I think I'll get me one of these and try to see if I can drive it off my 2nd parallel port to run my dust collector. :-)

  6. #46
    Join Date
    Apr 2006
    Posts
    225
    I also have no idea on what that transistor is doing there, I'm not even a beginner in electronics, what I just know is how to do things I've lerned so far, so each time I try somethig new I have to ask here on cnczone.

    I use more coolant then dust collection, so I will just turn the vaccum by hand, it wont kill me to do that. But putting up another parallel port just for collecting dust, that sure will.

    Well I will buy this chinese relay board, better price and since the spindle and VFD are chinese as well, they will enjoy each other

    Thanks for all

  7. #47
    Join Date
    Apr 2006
    Posts
    225
    Jsantos,

    I was looking at your .pdf you uploaded. Can you explain me something?

    On limits you have green yellow orange and red wires that are going to the swithces as well, and pin 1 to GND so it closes the circuit when you hit the limit.

    What I don't understand is how pin 3 and 5 work, whats that for, I don't understand why they are wired to pin3 to +5v and 5 to e-stop? Please explain what it actually does and where should I connect those.

    Thanks

  8. #48
    Join Date
    Dec 2009
    Posts
    528
    Quote Originally Posted by Brenck View Post
    Jsantos,

    I was looking at your .pdf you uploaded. Can you explain me something?

    On limits you have green yellow orange and red wires that are going to the swithces as well, and pin 1 to GND so it closes the circuit when you hit the limit.

    What I don't understand is how pin 3 and 5 work, whats that for, I don't understand why they are wired to pin3 to +5v and 5 to e-stop? Please explain what it actually does and where should I connect those.

    Thanks
    Hi Breck,

    Sorry for confusing you. Right now, my home switches are limit switches and are not powered. They are currently NO and are connected to pins 6-9.

    But I'm going to change them to magnetic switches and those switches will require a 5v power. That is what pin 3 is going to be used for. But right now, pin 3 is not connected to anything.

    At this time, Pin 5 is only connected to the E-stop on my CNC. I don't have any limits at the other ends of my axes but eventually I want to put limits on them. Since the G540 has only 4 inputs, I won't have enough to hook up limits on all my axes using the G540 inputs. My thought is that I am going to wire those limits in series with the E-stop on my CNC.

    Hope this helps.

  9. #49
    Join Date
    Apr 2006
    Posts
    225
    Oh, I see so you actually have the E-stop connected to the connector 10 first passing to a serial connector and then to connector 10, instead of that green line straight from the 10 to the E-button.

    I first taught it might be something like when you press the E-stop it would turn off the spindle as well since it was wired to the same connector that delivers 5V to the relay... But it doesnt make sense at all...

    Mach3 already turn off the spindle when you press Estop right? If you have it controlled by relay?

  10. #50
    Join Date
    Dec 2009
    Posts
    528
    Quote Originally Posted by Brenck View Post
    Oh, I see so you actually have the E-stop connected to the connector 10 first passing to a serial connector and then to connector 10, instead of that green line straight from the 10 to the E-button.

    I first taught it might be something like when you press the E-stop it would turn off the spindle as well since it was wired to the same connector that delivers 5V to the relay... But it doesnt make sense at all...

    Mach3 already turn off the spindle when you press Estop right? If you have it controlled by relay?
    I actually have 2 e-stops. The e-stop that's actually used to stop the system is shown on page 3. The limits switch on the diagram does not exist yet, so the e-stop on page 3 is wired to pins 1 and 5 of the db9 connector. If you look at page 1, those pins 1 and 5 are connected to pin 10 of the g540 and to ground.

    When I hit the e-stop shown on page 3, that stops everything (motors, spindles, ALL) on the system.

    When I eventually install my limit swithces in series with the e-stop as shown on page 3, the whole system will stop if, for example, my gantry hits the x-axis limit switch. Since the whole system is stopped, there is no way for me to jog back the gantry away from the switch. That's what the e-stop on page 1 is for. That e-stop allows me to connect pin 10 of the g540 to ground so I can jog back away from the switch. So it's not actually an e-stop. It's an 'e-enable'. ;-)

  11. #51
    Join Date
    Nov 2008
    Posts
    17
    Hi Folks, I would like to reopen this thread.

    I have G540, Huanyang VFD and Mach3 setup and I'm hitting same problem as Vaffel. This is what I did so far:

    I connected V10+ from VFD to VFD +10V (pin 9) on G540
    I connected ACM from VFD to VFD GROUND (pin 7) on G540
    I connected Vi from VFD to VFD output (pin 8) on G540
    I have jumper between FOR and DCM on VFD for now

    VFD is working by itself in manual mode. When I do change PD001 and PD002 to 1, it behaves strange. It turns itself on, when I power cycle, PD002 is back on 0 ...

    I use default Mach3 config file available for G540.
    (Spindle, step pin 14, dir pin 0 step port 0 dir port 0)
    (Spindle setup, use output + pwm, PWM 50, min 5%)

    Btw, in Mach3, I absolutely do not understand page motor tuning for spindle. What is "step", what is "velocity" what is "acceleration"? What unites are these things in? I saw 10 different setups all over the web from value 1 to 10000000. Can somebody clarify?

    Now, when try to turn spindle on (I punch some number in spindle speed) with CWF5, RPM goes to my number and quickly "roll back" to zero. VFD is not doing anything.

    When I try to measure VFD out, it is constant 0.48V, it does not change at all.

    Any ideas, what I'm doing wrong? Thanks!

  12. #52
    Join Date
    Nov 2008
    Posts
    17
    Ok, "spindle speed averaging" makes it look to go to punched RPM and rolls back to zero. When I turn this off, CW F5 is doing nothing :-(
    Running out of ideas.

  13. #53
    Join Date
    May 2010
    Posts
    0
    Hi dude !

    Sorry to hear about your problems!
    I never got this to work with the method youre trying to use. I think these VFDs dont actually support it. I've tried everything.

    I solved the problem by soldering on a modbus chip onto the VFD motherboard. Then I control the VFD digitally, instead of the analog approach.

    I can help you a little later today, if youd like?

  14. #54
    Join Date
    Nov 2008
    Posts
    17
    Not sure, what do you mean. Using 0-10V analog input as speed reference is supported by pretty much every VFD. It is industry standard. Anyway, I do not think the problem is in VFD. From what I see the problem is most likely in Mach3 configuration. Even Mach3 does not actually show "spindle spinning", when you hit CWF5. I saw a lot of videos from other folks, who actually got that running and you can actually see RPM going up, when they hit CWF5. I do not see that. Next step would be to figure out, if I can get 0-10V out of G540. I do not see that either. So again, it is not about VFD actually, it is likely about Mach3 configuration.

    The other reason I have to do it this way is I have actually second VFD, AB PowerFlex 70, which is far more powerful (and complex). I want to get Huangyang running first (I hopped it is going to be easy), then I will switch to PowerFlex (using same 0-10V method).

    Hope it makes sense. Thanks for help!

  15. #55
    Join Date
    May 2010
    Posts
    0
    I still belive that the VFD is the problem. The gecko is just taking what it gets from the VFD and modulates it - so if the VFD is not giving out the correct voltages, it's not going to work.

    I hooked everything up, and I measured the voltages on the different terminals related to VFD control. If the spindle was not started, I could set the RPM in mach3, and the voltage showd the correct corresponding voltage - and Mach3 showed the correct set speed, and also the display on VFD.
    When I started the spindle, however, everything went bananas, with voltages ranging all the way up to 48 volts (on the terminal that should be between 0-10V). I think its because of bad quality of components in these VFDs. Connecting a spindle would increase the amount of noise produced.

    If you really have a quality VFD laying around, I wouldn't waste another minute on the chinese VFD!! :cheers:


    EDIT: I now control the VFD digitally by modbus. I can help/show you what you need to do it if you want.

  16. #56
    Join Date
    Nov 2008
    Posts
    17
    Quote Originally Posted by Vaffel View Post
    I still belive that the VFD is the problem. The gecko is just taking what it gets from the VFD and modulates it - so if the VFD is not giving out the correct voltages, it's not going to work.
    Please, explain. The only connection between G540 and VFD is +10V coming from VFD to G540 (which is correct, I can measure that) and voltage OUTPUT from G540 (0-10V) going INTO VFD. There is no feedback. G540 does not care, what is VFD doing. G540 does not monitor any VFD voltages.
    Btw, if I hook up my PowerFlex, result is exactly same so I really do not think it is VFD (forgive me my stubbornness).

    Am afraid hooking up PowerFlex on modbus is not an option for me. I do not have modbus adapter, only Ethernet/IP (CIP) adapter. Unfortunately, I do not know about Ethernet/IP plugin for Mach3. It would be sweet though because I could just hook up PowerFlex on my network.

  17. #57
    Join Date
    May 2010
    Posts
    0
    As you probably can tell, this is not my field of expertise.

    What I mean is that if the VFD supplies Gecko with erratic voltages ranging from 0 to 40 volts, gecko will have a serious problem modulating it to something useful.

  18. #58
    Join Date
    Apr 2010
    Posts
    294
    I think I can see what is being described here. Taking the VFD on its own, you would have three terminals you can connect to a potentiometer for speed control. One is 0V and another nominally 10V, and the third is the "wiper" on the potentiometer that will be somewhere between the two, depending on your pot setting.

    Ideally you'd like your VFD to have a stable 10V, so its speed, dependent on the wiper terminal is 5V for half the maximum. But if the upper voltage is not stable, and goes up to, say 15V, then you'd have 7.5V on the wiper terminal for half speed. Not a problem on a pot - it would just follow the voltage fluctuations and deliver the set proportions back.

    If you're feeding a voltage in from an independent controller, and it feeds in 5V, you're going to get half speed or one-third speed, or who knows what speed, if the VFD is not stable.

  19. #59
    Join Date
    Nov 2008
    Posts
    17
    So I figure that out yesterday night.

    This setting for G540 is provided by Gecko for Mach3: Spindle, step pin 14, dir pin 0 step port 0 dir port 0
    This is what works for me: Spindle, step pin 14, dir pin 0 step port 1 dir port 0

    With 0 on the place, no PWM signal is generated.

    I also found in the Mach3 manual, that motor tuning tab for Spindle driven by PWM (not step/dir) has no meaning. It is not used. Your choice of pulley defines max RPM, your VFD is responsible for ramping up and down.

    I also found, that my PowerFlex 70 already has digital inputs, which can be hooked up directly to G540 to start/stop VFD, no relays are necessary. Works great!

    Edit: I forgot to mention, that I decided to ditch my Huanyang and use my real toy, PowerFlex 70. It was hard on begging to configure that thing (~400 params), but result is much better! Anyway, 0-10V control is identical so the same setup works also for Huanyang.

  20. #60
    Join Date
    Apr 2013
    Posts
    0
    I have been reading this post and have my vfd wired up correctly. I am having trouble though with my mach software... Does anyone the proper configurations for mach 3. Help would be great. I am using output 1.

Page 3 of 4 1234

Similar Threads

  1. Replies: 2
    Last Post: 12-31-2013, 04:33 PM
  2. huanyang vfd and mach3
    By Elektryk in forum Phase Converters
    Replies: 4
    Last Post: 07-29-2013, 05:14 AM
  3. Connecting 2 Gecko G540 to Mach 3 for ATC
    By tgab101 in forum Gecko Drives
    Replies: 2
    Last Post: 01-22-2013, 05:52 PM
  4. Huanyang 2.2kw VFD PWM Mach3
    By Kkatkhuda in forum Phase Converters
    Replies: 0
    Last Post: 11-14-2012, 02:31 PM
  5. Replies: 30
    Last Post: 07-08-2011, 07:07 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
  •