Machsupport Forum

Mach Discussion => Finished Plugins for Download => Topic started by: Matty Zee on February 17, 2010, 07:07:22 AM



Title: Huanyang VFD controller plugin
Post by: Matty Zee on February 17, 2010, 07:07:22 AM
Hi all,

I am finally happy to release my plugin for the Huanyang VFD to the world.

This plugin has been written for use with the Huanyang series of Variable Frequency Drives (VFD). It allows Mach3 to control the operation of the VFD via RS485 communication port.

The plugin incorporates the following features
   Stop & Stop Spindle
   Set desired spindle RPM
   Monitor actual spindle RPM
   Monitor current draw of spindle
   Triggers Stop or E-Stop event if commands to VFD fail.

If you have any problems using this plugin please post them here. However please limit it to problems directly relating to the plugin. If you having difficulty seting up the VFD for manual control there are far better places to get help (CNCZone).

Please let me know if you find this plugin useful :-)

A big thanks goes to Mark Hastings for helping me test this and giving me a prod now and then to get this finished...



Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on February 17, 2010, 07:32:06 AM
There is a brief manual included in the .ZIP file. Please read it before you ask any questions  ;)


Title: Re: Huanyang VFD controller plugin
Post by: irfanulla on February 17, 2010, 08:18:28 AM
Ah Matt, now I gotta see how busy you were :)
does this plug work with any other VFD, I assume not :)


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on February 17, 2010, 08:22:39 AM
Hey Irfan, no it won't work. Most other VFDs should be able to talk to Mach3 via the MODBUS protocol. The reason i had to write this is the Huanyang doesn't conform to the MODBUS protocol.


Title: Re: Huanyang VFD controller plugin
Post by: kingsx on March 05, 2010, 02:28:06 AM

Hi! Everybody


Matty Zee thanks for sharing this important info and knowledge.

Just a question?  What about hardware? Do I need a serial RS232 to RS485 Converter to connect to comm port?

Thanks, I would really like to try your plug in my HY driver, because the only think I control now is to turn the spindle on and off


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on March 05, 2010, 02:36:08 AM
Yes, you will need an RS-485 port. You can either use a RS-232 to RS-485 converter or a USB to RS-485. Either one should work in theory. I've only tested the USb version though.
Here is a link to the same type i'm using. (not sure if its the same seller i bought from though)
http://cgi.ebay.com.au/USB-2-0-to-RS422-RS-422-RS485-Converter-Adapter-Serial_W0QQitemZ370310934731QQcmdZViewItemQQptZAU_Components?hash=item56384070cb (http://cgi.ebay.com.au/USB-2-0-to-RS422-RS-422-RS485-Converter-Adapter-Serial_W0QQitemZ370310934731QQcmdZViewItemQQptZAU_Components?hash=item56384070cb)

Cheers
Matty Zee


Title: Re: Huanyang VFD controller plugin
Post by: kingsx on March 05, 2010, 02:37:35 AM
Thank!  I will try it and post my results


Title: Re: Huanyang VFD controller plugin
Post by: ToPNoTCH on March 19, 2010, 10:49:59 AM
First off all thanks for the effort of making this plugin. An excellent initiative that gives this VFD even more value for money.
I'm sad to report that it did NOT work for me and i believe i know why.

The RS-485 standard which is used in this case states the communication allways is done using half-duplex on twowire.
This means that in someway the transceiver chip on the RS485 adapter need to be set in Transmit or Receive mode.
As i understand it it is up to the implementation to handle this (RS485 don't care as it's an interface standard and not a protocol standard).

One "normal" way to handle this with an RS232 converter, is to use the RTS pin to set the transceiver into Transmit mode, and directly afterwards the transmit lower it to
be ready to receive.

Some RS485 adapters (mostly USB to RS485) incorporate "Automatic Data Direction Controll" (ADDC), which handle the above behaviour by it's hardware.

It seems that your plugin raise the RTS all the time when its loaded thus making it only compatible with RS485 adapters that incorporates ADDC.
Other adapters can only send data, which matches well with the behaviour i get (cant see PD001,PD002 but start spindle once, get estop directly afterwards).

Conclusion:
I suggest that you update the plugin so that it raises RTS while sending and lower it directly when done.
I imagine this won't be an extreme alteration in code, but it would make the plugin compatible with the vast majority (if not all) types of RS485 interfaces/converters.
Beside that the ADDC devices are much more expensive, so those who need to buy an adapter would find this an great modification i be live.

Again thanks for your effort, it's greatly appreciated.


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 06, 2010, 07:40:58 AM
First off all thanks for the effort of making this plugin. An excellent initiative that gives this VFD even more value for money.
I'm sad to report that it did NOT work for me and i believe i know why.

The RS-485 standard which is used in this case states the communication allways is done using half-duplex on twowire.
This means that in someway the transceiver chip on the RS485 adapter need to be set in Transmit or Receive mode.
As i understand it it is up to the implementation to handle this (RS485 don't care as it's an interface standard and not a protocol standard).

One "normal" way to handle this with an RS232 converter, is to use the RTS pin to set the transceiver into Transmit mode, and directly afterwards the transmit lower it to
be ready to receive.

Some RS485 adapters (mostly USB to RS485) incorporate "Automatic Data Direction Controll" (ADDC), which handle the above behaviour by it's hardware.

It seems that your plugin raise the RTS all the time when its loaded thus making it only compatible with RS485 adapters that incorporates ADDC.
Other adapters can only send data, which matches well with the behaviour i get (cant see PD001,PD002 but start spindle once, get estop directly afterwards).

Conclusion:
I suggest that you update the plugin so that it raises RTS while sending and lower it directly when done.
I imagine this won't be an extreme alteration in code, but it would make the plugin compatible with the vast majority (if not all) types of RS485 interfaces/converters.
Beside that the ADDC devices are much more expensive, so those who need to buy an adapter would find this an great modification i be live.

Again thanks for your effort, it's greatly appreciated.

 i have the same problem.
this is the usb/ 485 converter i have.
(http://img.auctiva.com/imgdata/1/3/5/1/1/0/9/webimg/349216805_tp.jpg)

it works with an ftdi ft232bl  chip



Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 08, 2010, 07:44:49 AM
i have it running .
i use 2 wire not 3 it give`s an earth loop.
now i have the problem to make the rpm correct.


Title: Re: Huanyang VFD controller plugin
Post by: ennova on April 08, 2010, 11:52:10 PM
I have the same USB connection that you have Michel Pet as well as the same USB connection that Matty Zee referenced (I bought them both.)  I cannot get this to work.  Do you have RS+ to A and RS- to B or do you have it hooked up the other way?  What are the settings on your VFD?  Is there something that I need to change with you com port settings with Device manager?  I cannot get numbers besides 99 in PD001 and PD002.  I have tried to start and stop my spindle, I hear a click but nothing turns on.  If I have RS+ to B and RS- to A I don't get an e-stop, but if I have RS+ to A and RS- to B I do. 

I asked Matty Zee which pins he had his set up with and he told me that he has RS- going to pin 1 on the DB9 connector and RS+ going to pin 2.  This seems odd to me because receive and transmit are pin 2 and 3 respectively, at least in the pinout I'm reading.  I tried RS+ to pin 1 and RS- to pin 2 and I still get nothing and vice versa, also tried to pins 2 and 3 etc.  If anyone can help me out I would really appreciate it.  Thanks,


Title: Re: Huanyang VFD controller plugin
Post by: ennova on April 09, 2010, 12:00:13 AM
(How do I edit my post?)

Here are the VFD settings I'm using:

Factory Reset: then.

PD001 is set to 2
PD002 is set to 2
PD003-004-005 are set at 400Hz
PD006 is set to 3
PD008 is set to 220
PD009 is set to 15
PD010 is set to 8
PD011 is set to 120
PD070 is set to 0
PD071 is set to 20
PD072 is set at 400Hz
PD142 is set to 7
PD143 is set to 02
PD144 is set to 3000
PD163 is set to 1
PD164 is set to 1
PD165 is set to 3


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 09, 2010, 02:21:22 AM
I definately have it connected to pins 1 & 2. Don't expect this chinese RS-485 adapter to conform to a random datasheet you find, or even a recognised standard for that matter. This is the datasheet for the adapter i have. http://www.hexin-technology.com/shared/manual/USB_To_RS_485_RS_422_USER_MANUAL.pdf
I use D-/D+ (for RS485) i.e. pins 1 & 2.

Maybe you need to try using a terminal program to see if the VFD is responding at all. Many of these VFDs are missing relays, temp sensor etc, maybe yours is missing the RS485 tranceiver chip? If you can get it to successfully reply to a query from a terminal program but not the plugin, then come back and ask more questions.
try this program http://www.eltima.com/products/serial-port-monitor/




Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on April 09, 2010, 04:16:04 AM
Ennova one thing you may be overlooking...

With your USB to rs485 adapter plugged in check in your device manager what port has been assigned to it. This is the port number that must be in the Huanyang plugin config. Note which usb port you are using and aways plug into the same spot as each one is a different number.

Hope that helps.

Mark


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 09, 2010, 07:10:37 AM
[Img] http://94.100.114.174/923250001-923300000/923251401-923251500/923251439_5_KEUE.jpeg[/ Img]



[Img]http://94.100.118.217/923250001-923300000/923251401-923251500/923251460_5_WWZ_.jpeg [/ img]


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 09, 2010, 10:04:39 AM
dit you activate the software??
if not go to config end look at config plug in there you see the program en activate it.
now restart mach3 en look if the vfd works.


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 09, 2010, 10:11:48 AM
(http://94.100.120.205/923250001-923300000/923252001-923252100/923252046_5_mNXi.jpeg)

(http://94.100.114.117/923250001-923300000/923252001-923252100/923252069_5_BUpI.jpeg)

the rest of the settings go Wat i understand automatic.

comport and baudrate and vfd setings have to bee set in the vfd.


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 09, 2010, 10:14:56 AM
(http://94.100.114.174/923250001-923300000/923251401-923251500/923251439_5_KEUE.jpeg)

(http://94.100.118.217/923250001-923300000/923251401-923251500/923251460_5_WWZ_.jpeg)

also look at the jumpers on the usb/rs485.


Title: Re: Huanyang VFD controller plugin
Post by: ennova on April 09, 2010, 02:09:09 PM
Thanks for all the replies!  I truly didn't expect so many so fast.  I'm sorry if I sounded a bit desperate and frustrated in my posts.  I really do appreciate all your help.  I've changed my VFD settings so that the VFD is now at address 2.  Here are some pictures to communicate my current setup:

Board01:
(http://i159.photobucket.com/albums/t139/ennovasnap/vfd.jpg)
(http://i159.photobucket.com/albums/t139/ennovasnap/board01.jpg)
(http://i159.photobucket.com/albums/t139/ennovasnap/com-3.jpg)
(http://i159.photobucket.com/albums/t139/ennovasnap/portsandpins.jpg)


Title: Re: Huanyang VFD controller plugin
Post by: ennova on April 09, 2010, 02:15:23 PM
Board02:
(http://i159.photobucket.com/albums/t139/ennovasnap/board02.jpg)
(http://i159.photobucket.com/albums/t139/ennovasnap/com-4.jpg)


Now I downloaded the program that Matty Zee recommended to check and see if the VFD responds.  I also downloaded another program that will let me see how Mach3 and the VFD are attempting to communicate, as the first program required the "professional edition" to do so.  However my knowledge into how to use this effectively and appropriately is very limited.  I do not know what the command line is that I can send to the VFD to get a response etc.   Here is what I see when I load Mach3:
(http://i159.photobucket.com/albums/t139/ennovasnap/com-monitor.jpg)

Okay now some more advice would be helpful.  Thanks so much.  Also thankyou Matty Zee for making this plugin I Hope that I will get it working and I hope that my VFD isn't missing parts. 


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on April 09, 2010, 04:18:15 PM
Hi Ennova

Everything looks ok so I'd check two more things:
1. The Maxxim chip on the USB converter board looks slightly out of its socket and
2. Check the fuse on that board with a voltmeter

Having said that you have the same problem on both setups so that does point to some common setting somewhere.

Hmmm.. i'll have to tink some more.

BTW as these signals (RS485) are differential ones you should twist your cables at least 2-3 turns per inch to help with noise immunity.

Cheers

Mark

PS make sure that the huanyang pluging has a green tick next to it as suggested by Michel pet


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 09, 2010, 07:14:50 PM
Good work Ennova. Looks like the USB-RS485 Converters are working fine(EDIT) Maybe its not working, i can't see if they are sent or recevied messages. Try the following anyway (EDIT). I can see messages in the screen dump you provided. Now to make things clearer for debugging, un-check the speed the current tick boxes. This should get rid of all of the 'polling' .i.e the constant stream of messages. Now you should only see messages appear when you click start and stop or change the spindle speed. Can you provide a screen dump with a few of these messages. for example, after you have turned off the other messages, clear the serial monitor window, click 'Spindle ON' button and see what messages appear in the serial monitor. Post that screen dump.


Title: Re: Huanyang VFD controller plugin
Post by: ennova on April 09, 2010, 09:02:14 PM
Here you are Matty Zee, thanks for your time:
Also I attached a .xls file that contains all the 167 lines from simply pressing the "start" spindle button.
(http://i159.photobucket.com/albums/t139/ennovasnap/untitled11.jpg)


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 09, 2010, 11:19:49 PM
Ok, seems the Plugin is configured correctly as it is outputting messages but the there is no reply from the VFD. You can see the first message (02 05...CD BD set speed) being repeated 6 times, then the next message (02 03...31 CC start spindle) repeated six times, then the plugin sending a stop command as no reply had been recieved for the first two.
Double check you correctly set the VFD address on the VFD to match the plugin. I can't seeing anything else wrong with your other VFD regsiter settings.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 09, 2010, 11:28:55 PM
I thing i just noticed and i have no idea if it makes a differece. Your adapter similat to mine is the G version, mine is the F version. I wonder if this affects the ADDC TopNotch mentioned. I haven't heard back from him in a while.
http://www.hexin-technology.com/USB_to_Serial_Converters-Subcatalog-84.html

Try your other one that Michel has working. Mut as Mark suggested check that Maxim chip is pressed into the socket properly.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 09, 2010, 11:29:28 PM
Michel, have you got your RPM speed correct now?


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on April 10, 2010, 05:12:22 AM
Couple more thoughts...

 Ennova , I'm not sure with the Hexin unit how you specify rs485 as opposed to rs422 (they are different) and maybe the F version which is rs485 only would work better. I have the same adapter as Michel (your other one ) and am curious how your grounding is set up as maybe there is no common ground referance between your VFD and the RS485 board and its power supply. This may cause issues.

Here's a crazy idea... wire the 2 converters together ie usb to rs485 then rs485 back to usb to check if both converters are working without having to deal with the VFD for the moment. This will at least let you know they are working correctly or not.

cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: Lapin on April 10, 2010, 11:02:07 AM
Hi everyone.

I have also had a bunch of problems with getting this to work. but finally i got the plugin to read from vfd both PD001 and 002 says "2" and that shows that the vfd are communicating with mach.

The problem i have now is that nothing happens when i press start spindle button. anyone got the same problem? or is it just something in mach i need to change? (relay is off)
I have the same usb adapter as matty zee, but the G version.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 10, 2010, 05:59:14 PM
Can you download the serial monitor program and provide some screen dumnps like Ennova? this will show what is happending with the VFD comms.

Also, silly question, but have you set the spindle speed to something reasonable like 12000? (i.e. its not set to 0 is it?)


Title: Re: Huanyang VFD controller plugin
Post by: ennova on April 10, 2010, 11:52:59 PM
As far as I can tell the plugin is working as it should and the USB converters seem to be working as well.  So problem lies with the communication with the VFD.  Could anything like an "antivirus" or any other windows program block communication with the USB serial port?  How can I tell which version of the VFD I have?  I am wondering if they changed something in-between revisions.  Maybe they listened and made it Modbus compliant.(yeah right)  In all probability something is probably wrong with my VFD or there is some other problem that I can't figure out. 

I tried grounding the breakout board to the same ground I have my VFD grounded to.  Same effect.  While I was testing things with a multi-meter I noticed that if I touch the screw leads for A and B with my negative and positive test leads then I get continuity, but not the other way around(found out later).  So there appears to be a diode connection them. Not that this is really helpful, but I thought I'd share as it freaked me out for a minute.  I thought I had a short in my wires somewhere.


Title: Re: Huanyang VFD controller plugin
Post by: Lapin on April 11, 2010, 04:31:27 AM
i gonna try to put up some screenies soon with serial monitor dumps.
when i enter my desired speed, like 10000 and i press enter it just jumps back to 0, i dunno why, but i should mention that i hae never used mach3 before so it could be a rookie misstake.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 11, 2010, 07:22:03 AM
If it's returning to zero that's a problem. You might be trying to set it in the wrong box. Depends what screenset your using but there is often a DRO for the speed setpoint and for actual speed. Try setting the other one. Or try typing in"S10000" into the manual gcode input screen to set the speed.


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 11, 2010, 09:00:36 AM
i have it running ok now no problems.


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 11, 2010, 01:17:42 PM
i have a new problem.
wen i run the cnc mill the program stops.
it looks like the same problem wat i had in the beginning it goed by the hy frequency of the steppers.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 11, 2010, 06:45:34 PM
Are you using a smooth stepper? I had a similar issue and had to add some EMI filters. See here http://www.mechmate.com/forums/showthread.php?p=28851&postcount=67


Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 15, 2010, 06:17:53 PM
My plug-in is still not working but I have made a little progress.  I have switched to a new USB to RS485 converter and it appears to be transmitting and receiving information from the VFD.  Reviewing the serial information the plug in is sending 04 04 03 01 00 00 A1 DB and receiving DF 5F FD.  PD001 and PD002 still show 99.  Does anyone have any ideals ???


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 16, 2010, 06:21:21 AM
vfd port nr 
com nr pc.

i have to wait for some parts than i can test  it.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 16, 2010, 06:37:41 AM
bolingerbe, the sent message looks ok but there is not enough bytes in the reply. Can you change the VFD address to 1. It makes it much easier for me to identify incorrect comms. Can you try the same thing i suggested above, Uncheck the boxes for the speed and current. That way you can see the messages back and forth when starting/stopping the spindle and you won't have the endless stream of messages.



Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 16, 2010, 07:15:35 AM
Matty Zee, just to make sure I understand you.  You want me to uncheck PD002.  Is that correct?


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 16, 2010, 07:26:12 AM
nope. have a look at the pic attached. uncheck those two check boxes. It will stop teh constant flow of messages so you can see what happen when the plugin tries to start the spindle. Once that is working, you can check these boxes again.


Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 16, 2010, 07:30:06 AM
Thanks for clearing that up.  I will post latter to day when I get of work.

Thanks,

bolingerbe


Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 17, 2010, 02:23:22 PM
Matty Zee,

In one of the post you wrote "Many of these VFDs are missing relays, temp sensor etc, maybe yours is missing the RS485 transceiver chip?"   I have looked throw the VFD and I am missing the "Multi-Output FC FA FB relay" and their is a location on the first board that is missing a surface mount semiconductor chip"  Do you or anyone know the location of the RS285 transceiver chip.  Another question is does any one have a schematic for this device?  I made the changes you suggested last night and Mach sent 01 03 01 08 F1 8E and received 7F 7E 7F.  Another interesting thing is a few seconds after pushing the spindle button I received a E-stop.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 17, 2010, 08:21:36 PM
What setting do you have for VFD register PD164?

The E-stop is normal plugin behaviour if the comms fails. If it doen't receive a confirmation of the message it sends, the safest thing to do is e-stop so the machine doesn't plunge the spindle into your wood if its not spinning.

I find it hard to believe that the "01 03 08 F1 8E" is all the plugin is sending. are you sure there isn't more data being sent?


Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 17, 2010, 09:33:50 PM
I am using the suggested setup
PD001 2
PD002 2
PD163 1
PD164 1
PD165 3

Thank you for your assistance.



Title: Re: Huanyang VFD controller plugin
Post by: Biggo1 on April 21, 2010, 08:40:07 PM
Hi Matty
I have tried many times to get your plug-in to work, but every time I try to put the plugin into Mach3, it comes up with a screen saying "Plugin defective - load again"
Needless to say, I have re-downloaded your zip file at least half a dozen times, and tried each time but with the same result.
I have tried 'saving'then unzipping the file, and 'run'from the download site - same result.
Has anyone else had this problem, or have any suggestions?
Cheers
Noel  ???


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 22, 2010, 07:24:28 AM
rtfm  :P
Requirements
In addition to the DLL, the plugin requires the Microsoft .NET 3.5 distribution. It can be downloaded here as full redistribution.
http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe (http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe)

that should fix your issue


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on April 22, 2010, 07:34:54 AM
bolingerbe, i'm not sure whats going on with your problem. It seems although your receiving a couple of bytes, i think that may just be noise or something (0x7,0x7E are 0b01111111 & 0b01111110). Double,triple check your baud rate, your wiring and VDF register settings. You need to get it working so that it displays the correct values for PD001 & PD002 in the setup dialog.


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 22, 2010, 09:05:58 AM
i think my set up is running ok now .
i plast some filters in the power input end keep the usb far away from the power supply.

i will test some more thing.


Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 22, 2010, 09:12:05 AM
Matty Zee,

Once again thanks for your assistance.  I made some voltage measurements with a volt meter, and O-scope and it appears that my converter dead out of the box.   I have a few more on the way that where posted as possible working converters.  I will post more when they arrive but they are on the slow boat from China.


Title: Re: Huanyang VFD controller plugin
Post by: Biggo1 on April 22, 2010, 09:16:21 PM
Many thanks Matty
Downlaoded 3.5 dis - now accepting your plugin OK.
Am about to now try connecting spindle to the 232/485 converter.
Cheers
Noel  :-*


Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 23, 2010, 01:10:15 PM
michel pet ,

Michel,  if you would please post what you found to make your USB device work.  Please include screen shots of your port setups.

Thank you,

Bryan


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 23, 2010, 02:10:41 PM
(http://94.100.114.121/935400001-935450000/935411301-935411400/935411377_5_AUlZ.jpeg)

vhd far away from the motor controller.

(http://94.100.121.198/935400001-935450000/935411801-935411900/935411856_6_WmZV.jpeg)

19200    data 8bit   stop 1

(http://94.100.118.175/935400001-935450000/935412201-935412300/935412218_5_6ROJ.jpeg)

com 3 also in the vfd.

(http://94.100.118.143/935400001-935450000/935412501-935412600/935412533_5_h5G3.jpeg)


(http://94.100.120.36/935400001-935450000/935413201-935413300/935413240_5_8yVX.jpeg)


(http://94.100.118.251/935400001-935450000/935413101-935413200/935413138_5_1rAY.jpeg)

i hope this wil help you.

(http://94.100.122.129/935400001-935450000/935412701-935412800/935412746_5_56Ge.jpeg)


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on April 23, 2010, 02:17:01 PM
from the usb to rs485 i just an normal usb cable keep the cable away from the power cables en from the 485 to the vfd i just an shielded cable with the ground on the 485 but not at the vfd.


Title: Re: Huanyang VFD controller plugin
Post by: bolingerbe on April 23, 2010, 06:35:53 PM
Well I think it is time to step back and then come back to this in a few weeks with a fresh mind.  I have 4 different types of USB-485 devices and no luck.  Almost the same results.  Now my head is hurting and I think it is time for a beer.  Thank everyone for your assistance I have not gave up just took a break before I get a big hammer out and have to buy a Hitachi VFD. :) ???


Title: Re: Huanyang VFD controller plugin
Post by: dangalbo on May 03, 2010, 01:17:05 PM
Well I think it is time to step back and then come back to this in a few weeks with a fresh mind.  I have 4 different types of USB-485 devices and no luck.  Almost the same results.  Now my head is hurting and I think it is time for a beer.  Thank everyone for your assistance I have not gave up just took a break before I get a big hammer out and have to buy a Hitachi VFD. :) ???

Take a look at Hitachi's X200 series

http://www.clrwtr.com/PDF/Hitachi/Hitachi-X200-AC-Drives.pdf


Title: Re: Huanyang VFD controller plugin
Post by: Sergio-k on May 18, 2010, 01:18:49 AM
Hi

I'm having trouble getting the plugin to work with my VFD.

The PD settings in VFD is :
PD001=2
PD002=2
PD163=1
PD164=1
PD165=3

I can start and stop the spindle and it's operation is fine when in manual control (PD001=0, PD002=0)
However when i switch the PD001 & PD002 to 2 i cannot start the spindle from the mach3, i always get the message "E-Stop button pressed- Emergency mode active".

In the plugins menu i entered : Com port 5 as this is my HXSP-2108G converter port from device manager, then i entered baud rate 9600
VFD address 1 i checked spindle Amps & speed DRO's but i always get a value of 99 in PD001 & 2.

Here's also my monitoring session to com port 5 using the Serial Port Monitor program, i changed it to .txt format but it's original extension is .spm

Any suggestions welcomed

Thanks
Sergio



Title: Re: Huanyang VFD controller plugin
Post by: Sergio-k on May 21, 2010, 07:49:07 AM
Hi Again

I managed to get the plugin to comunicate with my vfd.
I'm now receiving a value of "2" in my plugins PD001 and 002.

However when i press F5 the spindle starts and then immediately mach3 sends "external Estop requested"
and it goes in emergency state but the spindle is still running and i have to stop it from it's off button.
when i try to press RESET mach3 then goes into "no responding" and it gets frozen.
Only when i disconnect the usb cable it unfrezes.

Any help is welcomed
Sergio


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on May 21, 2010, 06:12:22 PM
Hi Sergio

Are you using a Smooth Stepper? What you decribe sounds like the problems I had with EMI from the VFD freaking out the SS. I got this under control by adding a line filter to teh AC in to trhe VFD and putting a feritte core on the usb line to the SS. These VFD's are VERY noisy (EMI) and you must have good shielding and grounding otherwise you will have problems.

Good luck.

Mark


Title: Re: Huanyang VFD controller plugin
Post by: Sergio-k on May 22, 2010, 02:24:25 AM
Hi Mark

No i don't use a smooth stepper.
But i have allready added an EMI filter to the AC feed of the VFD and a ferrite clip on the output to spindle.

Here are some pics of my setup.
(http://i802.photobucket.com/albums/yy309/sergio-k/SnapShot_050810.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/SnapShot_052510.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/SnapShot_052710.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/SnapShot_052810.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/SnapShot_050110.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/SnapShot_054410.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/VFD1.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/VFD2.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/VFD3.jpg)
(http://i802.photobucket.com/albums/yy309/sergio-k/VFD4.jpg)

Sergio


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on May 22, 2010, 04:51:06 AM
Hi Sergio

Noticed a couple of things:

You don't need Modbus spindle enabled (makes no difference on my setup)
Try putting some large values in the input debounce setting (top left in general logic configuration tab)

You could also try disabling as many inputs as possible that may be getting noise (estop, limits etc)

The fact that Mach locks up makes me thing the noise is getting back to the pc somehow... try to isolate it from the machine.


Only other thing I can see thats a bit different to my setup is that I'm usind R and S as the AC in terminls not R and T

Hope this helps

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: Sergio-k on May 22, 2010, 11:28:27 PM
Mark

I tried everything you said.

i entered some crazy numbers in the debounce box (100000000), also changed my connection from T to S,
disabled Modbus spindle, disabled all the other inputs but still nothing.
The only thing i noticed is that (and i don't know why) when i press F5 now thw spindle starts Mach3
doesn't freeze (i can turn on coolant for example), but when i press F5 again for stoping the spindle
i get this message and then Mach3 freezes again and i have to disconnect the usb cable to get back to normal.

this is the message i'm receiving
(http://i802.photobucket.com/albums/yy309/sergio-k/SnapShot_050120.jpg)

Could it be that my USB to RS485 cable is the G version and not the F ?
I mean the way i see it is that somehow i can send signals to the VFD but not receive.




Title: Re: Huanyang VFD controller plugin
Post by: Sergio-k on May 24, 2010, 01:06:22 PM
Update !!

Further to the actions above i completely removed my BOB from computer (25 pin cable)
and i had only connected the vfd through the usb cable but still the same problem.
This thing is driving me nuts  :'(


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on May 24, 2010, 03:11:26 PM
Hi Sergio

I just had a look at your monitor.txt file and can't make heads nor tails of it.

The plugin will put mach into estop if it does not get a proper response from the VFD however should not lock it up (ie freeze that requires you to restart the program)

Are you sure you are using the correct version of .net?

The comms strings are very basic and are easily recognizable as a string of 2 byte hex numbers (ie don't display the monitor data as ascii)

I'd take a step back and just use "spindle talker" (posted on the zone from memory... I'll dig up the post) or basic serial port software to send the strings outside of mach to ensure that this side is working properly first.

Good luck

Mark



Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on May 24, 2010, 03:16:30 PM
Here ya go ... was on a different forum:

http://www.woodworkforums.com/f170/tips-newbie-huanyang-vfd-users-96380/index8.html

Lots of good info here to

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on May 30, 2010, 10:33:56 PM
Ok my turn for a question.

I've posted this in general Mach also.

When the spindle is under Mach control using the plugin I get the following issue:

If I hit the reset button within Mach it appears to send a M5 command and the spindle stops however if I hit an actual physical estop (that is recognised by mach and sets the reset button flashing), the spindle continues to run.

I am purposely not cutting the power to the VFD when an estop is hit as it is far safer and faster to initiate a controlled stop as opposed to just letting the spindle "idle down".

Am I missing a setting in Mach or elsewhere? Does it do a similar thing on you setup...

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: rokag3 on June 18, 2010, 05:02:40 AM
Hello,

Is it the Huanyung?

http://www.aliexpress.com/product-fm/315357168-2-2KW-VARIABLE-FREQUENCY-DRIVE-INVERTER-VFD-3HP-10A-NEW-wholesalers.html

I must say that installing a VFD looks a litlle bit scary, ok i remember having the same fear with servos , you find difficult what you do not know but ?
There is something i do not understand :
You use a com/usb 485 ibut on my BOB break board sound Logic pc 2 rev 1.9 I have step dir. I was thinking that the step was in fact sending the pwm signal generated by mach3 through out 1 for step and out 2 for dir.
also i see that they speak about Sinusoidal Pulse Width Modulation but is this SPWM  a signal that must be send by mach 3 or we send a pwm signal which is transformed inside the VFD in SPWM?
Also is anyone that can give me VFD for the dumb (if any) document i can read ? Because actually more i learn and more it look confused.
Last I have a LAGUN FTV2 and i want to control the original 3 phases spindle motor of my mill so about 3000 RPM and not 24000 Am i on the corect thread?

Thank you
Lucien of Athens


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on June 18, 2010, 04:08:11 PM
Hi Lucien

It appears to be a Huanyang from the photos and the schematic shown.

 I think you are getting confused with the two different ways of controlling a VFD from Mach. In one case you talk via a serial port and RS485 converter to send commands directly to the VFD (ie no BOB just a  plugin). The other way is via a BOB and sending an analog 0 to 10vdc signal for speed and digital signal for direction, PWM is used by the BOB to create the analog signal from the pulse commands issued by Mach.

The VFD is not complicated but you do need to setup the parameters based on the spindle motor you have and the control method. You are not tuning it as in the case with a servo.

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: rokag3 on June 18, 2010, 08:41:58 PM
thank  you for the answear

" I think you are getting confused with the two different ways of controlling a VFD from Mach"
So only 2 ways 0-10V or  rj485 so it's going to br rj45 because we want a very precise speed regulation for tapping .

Last question is it a good buy for the price given by alibaba?


Title: Re: Huanyang VFD controller plugin
Post by: davy182 on June 24, 2010, 10:57:47 PM
Is there anyway to change settings to accomodate the xin ye Vfds that are being sent out with the spindles now days?


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on June 25, 2010, 01:38:34 AM
I think the easy answer is no. however if the VFd is fully modbus compliant then you don't need this plugin
'


Title: Re: Huanyang VFD controller plugin
Post by: BK on June 29, 2010, 06:01:24 PM
Hello All,
Hope you can help me with my communications problem between my Huanyang VFD and Mach3, Set up as indicated and can see data being sent to VFD but no responce back.
Just wondering if anyone has got this plugin to work with HXSP-2108G USB to RS485 or do I need to get the F version?
Thanks in advance,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: BK on June 30, 2010, 11:01:28 AM
Hello Again,
Sorry forgot to give details of comms, please see what mach3 sends via your plugin and below that responce ordered F version hopefully will be with me in a week but any help or advice would be greatfully received.
Port opened by process "Mach3.exe" (PID: 5404)

 01 05 03 00 00 00 CD 8E 01 05 03 00 00 00 CD 8E   ......Ž......Ž
 01 05 03 00 00 00 CD 8E 01 05 03 00 00 00 CD 8E   ......Ž......Ž
 01 05 03 00 00 00 CD 8E 01 05 03 00 00 00 CD 8E   ......Ž......Ž
 01 03 01 01 31 88 01 03 01 01 31 88 01 03 01 01   ....1ˆ....1ˆ....
 31 88 01 03 01 01 31 88 01 03 01 01 31 88 01 03   1ˆ....1ˆ....1ˆ..
 01 08 F1 8E 01 03 01 08 F1 8E 01 03 01 08 F1 8E   ..Ž....Ž....Ž
 01 03 01 08 F1 8E 01 03 01 08 F1 8E 01 03 01 08   ....Ž....Ž....
 F1 8E 01 03 01 08 F1 8E 01 03 01 08 F1 8E 01 03   Ž....Ž....Ž..
 01 08 F1 8E 01 03 01 08 F1 8E                     ..Ž....Ž


Port opened by process "Mach3.exe" (PID: 5404)

 7F 7D 7E 7F 7D 7E 7F 7D 7E 7F 7D 7E 7F 7D 7E 7F   }~}~}~}~}~
 7D 7E 7F 7E 7F 7F 7E 7F 7F 7E 7F 7F 7E 7F 7F 7E   }~~~~~~
 7F 7F 7E 7F 7F 7E 7F 7F 7E 7F 7F 7E 7F 7F 7E 7F   ~~~~~
 7F 7E 7F 7F 7E 7F 7F 7E 7F 7F 7E 7F 7F 7E 7F      ~~~~

Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 03, 2010, 03:27:09 AM
Hey Matty, guys,

I spent the entire day trying to get my VFD working with this application.
I managed to get connectivity working without issue. I see 2 & 2 for PD001 & PD002 in Mach3.

Problem: (This seems to be the same issue seen by Sergio in previous posts)

1. Start the spindle with M3 S1200
2. When I try to change speed say by setting S2000 i don't see anything
3. M5 also does nothing

As per Sergios posts, I get the error attached below when I hit the Estop or in some instances when I try to set different speeds or stop the spindle. In short nothing happens after the 1st command is issued.

I'll try to get a dump of the communications layer and post it on the forum tomorrow. I've had enough of this for today.

Additional question: I have the same RS485 converter as pictured by Matt, when I loaded the driver for this I used the RS485/422 Windows XP installer. I assume this is the correct driver for this unit?


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 03, 2010, 05:48:44 AM
Okay,

Couldn't wait to see some other ideas I had, so I went back into the shed and tried to simplify the operation.
I created a new profile which uses the Parallel port instead of the smooth stepper.
This is all based upon a PC with a freash build with SP3 and only Mach3 and Huanyang spindle drivers loaded.

So, I still see Mach3 lockup after commencing the spindle. I am sure this is not related to EMF as the hardware setup works fine when not using the RS485 interface.

I took a dump of Comms 3 for perusal and the 4 output screens are below:

Line View

[03/07/2010 20:33:24]
1  IRP_MJ_DEVICE_CONTROL - Request operates a serial port
   STATUS_SUCCESS
         IOCTL_SERIAL_PURGE - Request cancels the specified requests and deletes data from the specified buffers
           
----------------------------------------------------------------------------------
[03/07/2010 20:33:24]
3  IRP_MJ_WRITE - Request transfers data from a client to a COM port
   STATUS_SUCCESS
      01 05 03 0e 52 00 91 2d                            ....R.-
----------------------------------------------------------------------------------
[03/07/2010 20:33:24]
5  IRP_MJ_READ - Transfers data from a COM port to a client
   STATUS_SUCCESS
      01 05 02                                           ...
----------------------------------------------------------------------------------
[03/07/2010 20:33:24]
7  IRP_MJ_READ - Transfers data from a COM port to a client
   STATUS_SUCCESS
      0e 52 3d 51                                        .R=Q
----------------------------------------------------------------------------------
[03/07/2010 20:33:24]
9  IRP_MJ_DEVICE_CONTROL - Request operates a serial port
   STATUS_SUCCESS
         IOCTL_SERIAL_PURGE - Request cancels the specified requests and deletes data from the specified buffers
            Flags - 8
----------------------------------------------------------------------------------
[03/07/2010 20:33:24]
11  IRP_MJ_WRITE - Request transfers data from a client to a COM port
   STATUS_SUCCESS
      01 05 03 0e 52 00 91 2d                            ....R.-
----------------------------------------------------------------------------------
[03/07/2010 20:33:24]
13  IRP_MJ_READ - Transfers data from a COM port to a client
   STATUS_SUCCESS
      01 05 02                                           ...
----------------------------------------------------------------------------------
[03/07/2010 20:33:24]
15  IRP_MJ_READ - Transfers data from a COM port to a client
   STATUS_SUCCESS
      0e 52 3d 51                                        .R=Q
----------------------------------------------------------------------------------
[03/07/2010 20:33:25]
17  IRP_MJ_DEVICE_CONTROL - Request operates a serial port
   STATUS_SUCCESS
         IOCTL_SERIAL_PURGE - Request cancels the specified requests and deletes data from the specified buffers
            Flags - 8
----------------------------------------------------------------------------------
[03/07/2010 20:33:25]
19  IRP_MJ_WRITE - Request transfers data from a client to a COM port
   STATUS_SUCCESS
      01 03 01 01 31 88                                  ....1
----------------------------------------------------------------------------------
[03/07/2010 20:33:25]
21  IRP_MJ_READ - Transfers data from a COM port to a client
   STATUS_SUCCESS
      01 03 01                                           ...
----------------------------------------------------------------------------------
[03/07/2010 20:33:25]
23  IRP_MJ_READ - Transfers data from a COM port to a client
   STATUS_SUCCESS
      00 f0 48                                           .H
----------------------------------------------------------------------------------
[03/07/2010 20:33:34]
25  IRP_MJ_DEVICE_CONTROL - Request operates a serial port
   STATUS_SUCCESS
         IOCTL_SERIAL_PURGE - Request cancels the specified requests and deletes data from the specified buffers
            Flags - 8
----------------------------------------------------------------------------------



Terminal View

....R.-....R=Q....R.-....R=Q....1....H


Dump View

[03/07/2010 20:33:24] - Written data

01 05 03 0e 52 00 91 2d                            ....R.-

[03/07/2010 20:33:24] - Read data

01 05 02 0e 52 3d 51                               ....R=Q

[03/07/2010 20:33:24] - Written data

01 05 03 0e 52 00 91 2d                            ....R.-

[03/07/2010 20:33:24] - Read data

01 05 02 0e 52 3d 51                               ....R=Q

[03/07/2010 20:33:25] - Written data

01 03 01 01 31 88                                  ....1

[03/07/2010 20:33:25] - Read data

01 03 01 00 f0 48                                  ....H



Table View

0   03/07/2010 20:33:24   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   DOWN   STATUS_SUCCESS   08 00 00 00    
1   03/07/2010 20:33:24   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   UP   STATUS_SUCCESS      
2   03/07/2010 20:33:24   IRP_MJ_WRITE   DOWN   STATUS_SUCCESS      
3   03/07/2010 20:33:24   IRP_MJ_WRITE   UP   STATUS_SUCCESS   01 05 03 0e 52 00 91 2d    
4   03/07/2010 20:33:24   IRP_MJ_READ   DOWN   STATUS_SUCCESS      
5   03/07/2010 20:33:24   IRP_MJ_READ   UP   STATUS_SUCCESS   01 05 02    
6   03/07/2010 20:33:24   IRP_MJ_READ   DOWN   STATUS_SUCCESS      
7   03/07/2010 20:33:24   IRP_MJ_READ   UP   STATUS_SUCCESS   0e 52 3d 51    
8   03/07/2010 20:33:24   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   DOWN   STATUS_SUCCESS   08 00 00 00    
9   03/07/2010 20:33:24   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   UP   STATUS_SUCCESS      
10   03/07/2010 20:33:24   IRP_MJ_WRITE   DOWN   STATUS_SUCCESS      
11   03/07/2010 20:33:24   IRP_MJ_WRITE   UP   STATUS_SUCCESS   01 05 03 0e 52 00 91 2d    
12   03/07/2010 20:33:24   IRP_MJ_READ   DOWN   STATUS_SUCCESS      
13   03/07/2010 20:33:24   IRP_MJ_READ   UP   STATUS_SUCCESS   01 05 02    
14   03/07/2010 20:33:24   IRP_MJ_READ   DOWN   STATUS_SUCCESS      
15   03/07/2010 20:33:24   IRP_MJ_READ   UP   STATUS_SUCCESS   0e 52 3d 51    
16   03/07/2010 20:33:25   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   DOWN   STATUS_SUCCESS   08 00 00 00    
17   03/07/2010 20:33:25   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   UP   STATUS_SUCCESS      
18   03/07/2010 20:33:25   IRP_MJ_WRITE   DOWN   STATUS_SUCCESS      
19   03/07/2010 20:33:25   IRP_MJ_WRITE   UP   STATUS_SUCCESS   01 03 01 01 31 88    
20   03/07/2010 20:33:25   IRP_MJ_READ   DOWN   STATUS_SUCCESS      
21   03/07/2010 20:33:25   IRP_MJ_READ   UP   STATUS_SUCCESS   01 03 01    
22   03/07/2010 20:33:25   IRP_MJ_READ   DOWN   STATUS_SUCCESS      
23   03/07/2010 20:33:25   IRP_MJ_READ   UP   STATUS_SUCCESS   00 f0 48    
24   03/07/2010 20:33:34   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   DOWN   STATUS_SUCCESS   08 00 00 00    
25   03/07/2010 20:33:34   IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE)   UP   STATUS_SUCCESS      
26   03/07/2010 20:33:34   IRP_MJ_WRITE   DOWN   STATUS_SUCCESS      



After this request Mach3 locked up and I can use it any more.

I wonder if issues are because of versions of mach3 used? I'm using the latest V3.42.40

Note: I tried to load spindle talker on my machine, but it also errored and said there was a missing file or one of the associated files was missing. I'll have to capture this error next time as i didn't get a chance with my PC rebooting itself.

/Michael


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 03, 2010, 05:56:53 AM
Okay here is the spindle talker issue that I came across. I tried on my local PC and it spits out the same error. I downloaded this from the woodies forum where either Matty or Mark posted it as a ZIP file.

/Michael


EDIT:
I fixed this up by adding the missing file and running

regsvr32 c:\windows\system32\mscomm32.ocx

at Start - Run to register the file in the registry.

/M


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 03, 2010, 06:14:39 AM
Hi Micheal

That seems to me like a windows issue. Do you have that file in your c:\windows\system32 folder? 

I'm not a window guru but a quick google came up with few suggestions.

I'll try and get a better anwser next week when I'm back at work.



Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 03, 2010, 06:18:59 AM
Thanks Mark,

I did work it out and I posted the fix below in the previous post.

Q. How can you tell if the RS485 unit is a G or F version?

/M


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 03, 2010, 06:43:22 AM
So does spindle talker work now? Not sure on the versions of the 485 board but don't think that should really matter. If you can get spindletalker to work then at least you know that the comms are ok (it has no error checking like the plugin so its a basic test)

I've got a later revised version of spindletalker that allows you to read all the registers (wasn't interpreting hex addresses in the previous version so didn't recognise A-F) in advanced mode. This isn't the issue you are having so no need to confuse the issue with a newer version just yet.

Also don't know if this OCX file is needed by the plugin... maybe you fixed two things?

cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 03, 2010, 06:50:55 AM
Hello Mickie and All,
I tried the diagnostics and port monitor supplied with these cards and got the same results you did.
I downloaded a simple free port monitor from here,
http://www.serial-port-monitor.com/
The difference between and the G and F version seems to be G version is RS485 / RS422 compatible and F version is only RS485.
If you run the serial comms program I would be interested if you could please check if you get the same output and data received as I did above.
My wiring is RS- to T+/B and RS+ to T-/A I also found no difference if ground was connected between units or not.
Hope this helps I will let you know if F version cures the problem when my card arrives from China so could be over a week?
Just wondering if any one has managed to get G version working with this plugin?
All the best,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 03, 2010, 07:55:27 AM
Hi Mark,

Okay I can't let it lie and I went out to the shed and braved the cold.
SPindle talker fired up on my machine after installing the missing OCX file.
When I started spindle talker I could once again start the unit spinning, but it failed to do any other commands. In one instance the PC crashed and rebooted.

I think I have answered my question about versions. On the dongle is a G, so I have a G version I suspect.

BK,

I think you are on the right path with the F and G versions causing different output. I suspect the driver written for each unit is different in some way and the ST program is not able to receive feedback from the spindle. I am interested in seeing if you get it working when you get your F dongle.

I wonder if someone could post the driver for the F version on this site. I will download and update my driver with it and see if this fixes the issues.
BK, my capture is shown above in my previous posts so i'm not sure if it is similar to yours

/Michael


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 03, 2010, 05:06:57 PM
I don't have experience with the USB adapter you guys are using (I believe Matty did use one of these so it should work) mine is this one:

http://cgi.ebay.com.au/PC-USB-RS232-RS485-UART-TTL-Signal-Converter-New-/200490288429?cmd=ViewItem&pt=AU_Components&hash=item2eae27052d

There was a post earlier about how some chips don't automatically switch comms direction and maybe this is the issue with some convertors...

Matty Zee (the writer of the plugin) hasn't posted in any of the forums lately but he just had a kid so probably has his hands quite full.

good luck

Mark


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 03, 2010, 06:49:51 PM
Hello Mark,
Thanks for the information, I have ordered one of the converters you are using and will test all of them and give feedback to the group as soon as these arrive.
Looks like a great plugin just need to get it working on my setup.
All the best,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 03, 2010, 09:46:38 PM
Yeah it works great for me... however it needs a bit of tweaking still for some features I'd like to see. unfortunately Matty hasn't released the source code so I'm kinda stuck untill he surfaces again.  writing a whole lugin is beyond me but I have a few friends like the one who wrote spindle talker that could nut it out given the time.

My only issue I've found is that I can't intiate a "fast stop"when an estop is pressed... still working on a fix.

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 04, 2010, 04:25:04 AM
Hello Mark,
As you say great job by Matty, if he is willing to release sourse code, I have a full developement suite so would be happy to add extra features.
Then we can use the full potential of this VFD controller, it would be nice to expand types of RS485 supported and control on board relay etc.
Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 17, 2010, 12:57:01 AM
Well I bought the F version of the dongle and tried it out today.
I have also received a new VFD as the old one had issues with the display.

Of interest I originally had a HY01D523B (1.5Kw) instead of the 2.2Kw which I have now.

I swapped out all the power and spindle to the new unit and connected the new F Driver to Spindle Talk.

Results:
1. On my old VFD I can start and stop the VFD only (no motor, its on the new unit)
2. On my new VFD it does nothing at all. I have ensured each parameter that was on the original unit is in the new unit.

Previously:
3. On my old VFD, when the motor was attached i could start it and after a couple of seconds the comm port would lock up.

So my conclusion is that the current state of this program will either work or not work at all.
There is no discernible rhyme or reason (as far as i can tell) for this and you basically have to be lucky for your setup to work. I mean it partially works on one of my units and not at all on the other.

I'm going to park this until it is either developed further or just use the variable voltage control which I have proven to work previously.Too bad I liked the idea of this setup.

Best of luck guys getting your units going.

Michael




Title: Re: Huanyang VFD controller plugin
Post by: BK on July 17, 2010, 04:46:44 AM
Hello Mark / Mikie,

Mikie,
 Just tried my new F version today, made no difference some times get response back from VFD but not what Matty Zee's software expects.
Ordered Same RS485 unit as Mark has but arrived today as some programing tools for PIC processors so no help there.Can you tell me what version of Mach3 you are running please.

Mark,
As above still no luck will order another controller like yours hope I get the right one this time but 2 more weeks waiting, I will just use VFD via some other method for now could you please let me know what version of Mach3 you are using please.

Matty,
If you are listening any help or advice would be greatfully received.

Thanks,
BK.



Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 17, 2010, 05:37:35 AM
BK,

I'm only using spindle talker which is the basic version of the Mach3 plugin. If this doesn't work, MACH3 won't.
You can downlaod this from the wookworking forums CNC section.

I expect there must be some differences in the software between units.
My 1.5KW unit works a bit , but the new 2.2KW unit doesn;t communicate at all. I've gone through the manual today and it should work given the settings.

I mean, as long as the comms ports line up and 1/1/3 is set for PD 163/164/165, communication to the unit should work.
Of course 2/2 should be set for PD001/002.

I think there is a fundamental problem and I don't know how to send commands directly over the comms port as I don't know the command formats.
The idea would be to open a terminal session to the VFD and send this ON/OFF command over this terminal interface.

The other problem area I see is what drivers should be used for the converter.
When I look in the RS485 directory there isn't any other for the directory which is to remove the installed drivers? Go figure.

I then tried to install the drivers using the executable which is in the P???? directory. This caused a software error

In the end I used the drivers that were in the uninstall directory by browsing to it when you manually install the drivers.

I think if someone could advise me how they installed their driver it may help

/Michael




Title: Re: Huanyang VFD controller plugin
Post by: BK on July 17, 2010, 07:19:16 PM
Hello Michael,
Spindle talker is this a comms program for sending and receiving data from comms port?
Can you please send me a link for this software.
Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 18, 2010, 02:08:40 AM
BK,

Here is the link - http://www.woodworkforums.com/f170/tips-newbie-huanyang-vfd-users-96380/index8.html
It is the initial version of the plugin. You can manually control the spindle with it.

I downloaded a terminal emulator today and I can make the spindle work with the old VFD.I found a post from Mark with the Hex values. Love the fact he posted it, made life easy.
The new VFD does nothing. I don't see any response/reply from the unit at all.The comms seems to be okay to it, but then that is just an educated guess
I am now thinking the problem is with the unit or the software used in the unit.

I'm going to have to email CHAI (LinearMotion2008) who I got the unit from and get him to fix the problem - Hopefully.

/Michael


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 18, 2010, 02:23:33 AM
Hi Guys

Bit of a clarification... Spindle Talker was written by a friend of mine, not Matty (matty is forum friend...) and is just a vb script that makes generating the required hex strings easier. It has no relation to the plugin and does not used the same method to comunicate (ie it will not work within Mach)

Using Spindle talker is one step up from using any port sw and typing the strings in manually... if it doesn't work there is no point in trying the plugin.

Chai is not too good on the software comms side but good luck.

Start with first principles...

Check wiring and connectivity
Use another pc to set up a comms link with your converter (if you have 2) ie serial to 485 = 485 to serial
Test above with Spindle talker
Connect VFD and test (if all above works then the problem is in the vfd)
Success? then attempt using the plugiin, Note this is the LAST test not the first.

Still got problems ensure that all steps that are documented have been taken IE dot net version etc.


I'm using MAch version  and a smooth talker but doubt the proble is there... Take a few steps back and start with the flow chart I just described and maybe I can help you if I know exactly where it fails


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 18, 2010, 02:27:50 AM
Sorry thats Version R3.042.036


Title: Re: Huanyang VFD controller plugin
Post by: taras on July 18, 2010, 08:17:51 AM

I have also received a new VFD as the old one had issues with the display.

Results:

2. On my new VFD it does nothing at all. I have ensured each parameter that was on the original unit is in the new unit.

Best of luck guys getting your units going.

Michael


Hello
I bought the same VFD one month ago, and I have same problems as you have. User bolingerbe  has the same problems (he posted earlier in this thread)

I've wrote to chai from linearmotionbearings2008 and still no answers from him, I've wrote to huanyang co. (xwdnzyp@163.com) and still got no answers.

Maybe those who coined the proverb that "avaricious pays twice", know what they talked about.

I hope that the problem can be solved, but how?


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 18, 2010, 04:31:12 PM
Sorry to hear you guys are having dramas. The Plugin was just a patch to fix what should have been a standard Modbus interface but was obviously done incorrectly by the Huanyang Co. Did they release a new manual with the later model VFDs? Is it possible that they have modified or even fixed the Modbus interface firmware?
Can you use the Spindle talker in advanced mode and see what they are spitting out when you try and read or write registers.

Given the issues that many seem to be having I would probably spend a bit more and get a reputable brand VFD if I was to do it again. For now mine works so I'll use it till it dies then upgrade.




Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 18, 2010, 07:42:20 PM
Mark,

Do me a favour, drop me your tel number (via personal message) and I'll give you a call.
I would like to discuss some findings with you.

/Michael


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 20, 2010, 04:23:46 AM
Hello Michael and Mark,
Well not much luck at the moment and as with everyone finite time we can spend on these problems due to work commitments.
Tried to talk with VFD with spindle talker but no luck crashes out or does nothing, same with modbus on Mach3 well for me anyway.
As I said getting same replies from VFD with both G and F versions so know unit is replying at the moment just using Mack3 to switch spindle on and off and setting speed manually.
As soon as I have set up my new machine hopefully will find time to do some more work on this.

Mark,
Since your machine is working would you mind monitoring commands you send, Start stop etc and replies from your VFD so I can pass on a comparrison to my supplier as I buy lots from them maybe we can get an answer?

Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on July 21, 2010, 12:09:55 AM
Matty,
If you are listening any help or advice would be greatfully received.

Sorry, been off the Forum for a while and i didn't get an email saying there had been activity on this thread. Apologies for that. I'm at work at the moment but will have a read of your posts later tonight. PM me if you want and i'll send you my email address.

Cheers

matt


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 21, 2010, 03:09:51 AM
Good to see you back Matty. Hope you've been well and getting enough sleep :)

 BK I'm a bit busy for the next few days but am more than happy to do some tests as you suggest. PM me if you like and maybe between the three of us we can get to the bottom of the issues that are poping up.

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on July 21, 2010, 07:53:22 AM
@Mark
Thanks. Yeah i'm getting good sleep now. I got your email a while back but haven't had a chance to look at it.

@BK
Got your PM. Will send you an email.

@Mikie
The problem with your old VFD sounds suspiciously like a EMI/EMC noice issue. Do you get a Mach3 'reset' wehn trying to sop or change the speed? When i had noise issues, after the spindle got up to a certain speed, the speed data stopped being updated and VFD wouldn't get any stop commands. Once the noise issue was fixed the commands worked fine.

It seems like the new VFD may have a slightly different MODBUS implementation. Maybe a proper implementation?? :-)


Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 22, 2010, 02:50:28 AM
Hi guys, my first post on forum :)

I recently bought Huanyang VFD (1.5kW) controller from eBay with spindle. Don't know witch revision it is since there are no any markings. I have RS232 -> RS485 converter and can't get it to work. Maybe it is without necessary comm chip. Here is picture of board with display and cover off and marked in red position missing chip (U4). I also marked pins connected to RS contacts (10.3ohm each RS->pin connection).

(http://i1014.photobucket.com/albums/af270/ivanKare/PCB.jpg)

Matty, could you please check if you have that chip on your PCB and if yes post marking of chip. I could then solder that chip on PCB myself.


Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 22, 2010, 05:06:07 AM
I've done some more research and it seems that any standard RS485 -> TTL transciver IC would be OK. MAX485 or ADM485 for example. Both have identical pinout:

1 - RO
2 - /RE
3 - DE
4 - DI
5 - GND
6 - A
7 - B
8 - VCC

What i know for sure is that pins 5-8 match PCB. 6(A) is connected to RS+ and 7(B) is connected to RS- and I measured voltage on pins 5 and 8 and it is 5V so i would probably solve my problem by soldering MAX485 or compatible on PCB. But if anyone can confirm that it would be much appreciated.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 22, 2010, 05:19:14 AM
I'll check when I get home... 2hours

Cheers


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 22, 2010, 07:39:35 AM
Hit the nail on the head Kare... mines got this populated. My eyes are too stuffed to read this tonight but will get someone with better eyesight to read the chip spec.  Wonder how many others have the same issue.

BK can you check this on yours


Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 22, 2010, 09:10:20 AM
Great, thanks.

At least there is possible solution. When you guys check specs I'll solder the chip on PCB and test drive it. Hopefully that should do the trick.


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 22, 2010, 02:15:19 PM
Hello Mark and Kare,
Sorry had trouble logging on and also just finishing skimming my vaccum plate.
Ok had a look and yes that location is for RS485 chip mine has no markings, but you can use the MAX485, I'm sure you know but use an ESD strap.
While checking for identification marks on the chip noticed dry joints (poor soldering) and also same on a few other chips, so I have reflowed these and will let you know tomorrow as I have to cut a PCB for tomorrow.

Kare, hope this solves your problem one thing without that chip your system is useless as you rightly pointed out.

Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 22, 2010, 08:27:20 PM
This is great prgress guys, well done Kare. Good thinking to look for the RS485 chip. Bloody Chinese will do anything to save a cent.


So, given the feedback, does this imply that the RS485 chip is generic? Just wondering if the 2 chips identified are the only ones on the market?


Matty,

I did have EMF issues, but I have placed chokes everywhere. My unit has been running okay for a while now so i figured my effort to supress on the AC and on the 3 phase to the motor had worked. Maybe I have to get the CRO out and go over each and every point and look for noise.

PS: Congrats on the new little one!

/M


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 22, 2010, 10:30:22 PM
Ok I took apart my binoculars to get a decen magnifying glas and I read it as a 75176B from Texas Instruments which is one of these:
http://au.mouser.com/Search/Refine.aspx?Keyword=75176b

A differential bus tranciever... so that makes sense. Check the spec sheet and see if the pinouts make sense.

Others have had issues with poor soldering and other components are missing like relays and breaking resistor transistors...(thats one I would like to get the spec on just quiety.

Cheers



Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 23, 2010, 03:05:06 AM
Thank you all.
Anyone missing this chip can probably use any pin compatible transceiver IC (be sure to check on datasheet of 75176B to make sure, most important are voltage levels!!! These MUST be identical), but I personally prefer Maxim for comm IC. Unfortunately my local electronic store doesn't sell these so I ordered some samples directly from Maxim (it's free for anyone interested, you just need to register). Maybe my friend has some so I don't have to wait for these.

@BK
No worry I have long experience in electronics but good tip for all that will go through with this procedure.

For everyone who wants to do this:
If you don't have ESD strip make sure to at least discharge yourself before you grab IC by touching some grounded metal object like plumming pipes or something similar just make sure you touch unpainted surface. If you never done something like this ask someone who did!!! One beer is cheaper than any VFD ;)

@mikie
Well they mostly tend to reduce cost anywhere however the final price is also quite low. So I honestly didn't expect it to be state of the art since i payed for bundled VFD+motor 350$ (witch is less then what you would pay for equivalent power Danfoss VFD only) but missing parts is simply unbelievable since I lost 2 days blaming my converter, software, cables, port etc. and never considered that they would actually sell unfinished product.
There are many transceivers that are pin compatible with these so one can say that is generic design. Difference is mostly in quality, max speed and power consumption of the chip.
Here are datasheets for just 3:
http://datasheets.maxim-ic.com/en/ds/MAX1487-MAX491.pdf (http://datasheets.maxim-ic.com/en/ds/MAX1487-MAX491.pdf)
http://www.analog.com/static/imported-files/data_sheets/ADM485.pdf (http://www.analog.com/static/imported-files/data_sheets/ADM485.pdf)
http://www.datasheetcatalog.org/datasheet/texasinstruments/sn65176b.pdf (http://www.datasheetcatalog.org/datasheet/texasinstruments/sn65176b.pdf)

I'll post back when it's done and tested.
Cheers


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 23, 2010, 03:27:47 AM
I posted a theory on one of these forums that they may be either off a reject line or just really poor QC. Like you say you can't expect alot give the price.

The thing that I spent heaps of time doing just like you (blaming s/w, configs etc etc) was when i was trying to setup the braking resistor. The manual says it has this ability, Chai sent me the specs on the external resistor... and the end all the switching parts are missing! Had to totally dissassemble the unit to get to the lower board to see this. I'm just happy I didn't spend the $$ to get a high wattage dump resistor.

Ah its all part of the fun... Just keep repeating that and try to smile :)

Really want to see a few more working with the plugin... so far the only confirmed two sounds like me an Matty!



Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 23, 2010, 04:16:12 AM
Well so far there was no need for me to use braking so I don't know whether that is also missing or not. But I'll check if you want.

Obviously we had similar experience with brilliant engineering and multiple visions of standardization inside single device :)

Hope to join you two guys in using this mystical VFD evasive feature. And if possible help other poor souls trapped inside this engineering wonder :D

Cheers


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 23, 2010, 08:55:43 AM
Hello All,
Had a few minutes between jobs, tested VFD and get comms established amazing what poor quality soldering escapes QC in China.
Anyway just tried with small twisted pair and can switch on spindle but locks Mach3 due to noise (assumption).
Simple test is to leave speed at zero and switch spindle ON (Spindle CW F5 button on Mach3) display should stop flashing and display 00000, because no noise generated we can press again and VFD display should start flashing.
Will try to test properly this weekend and will post results.

Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 23, 2010, 09:15:25 AM
Hello Again,
Just a few points I hope you will find helpful.
If Mach3 locks up when starting the spindle just unplug USB to RS485 converter and Mach should recover, to test again close Mach 3 as normal and then plug USB in then restart Mack3.
Might be useful setting PD024 to 1 so you can switch Spindle Off via Stop Button on VFD.
Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 23, 2010, 05:34:09 PM
EMI noise is a big issue with these VFD's and I had lots of problems with my Smoothstepper lockups due to it. I seem to have fixed my issues with a line filter on the VFD (as close as possible to the unit) and putting a couple of wraps of the usb cable to the SS around a ferrite core. I have no suppression on the lines going to the Spindle and all my cables are sheilded with a single ground point

That great news BK.

Kare I wanted to implement a braking resistor so i can pull large bits up as fast as possible in the case of an estop situation. I don't agree with just dropping the power from the VFD as they will coast for a very long time compared to a controlled stop from the VFD.
 What I believe is missing is a comparitor/op-amp that monitors the buss voltage an a power transistor that bleeds some of this power off to the 75 ohm high wattage resistor. The other problem I have is actually getting a stop command to be sent to the VFD when an Estop is initiated. Since all the inputs seem to be disabled when you select comms control on the VFD t looks like I may need to cut into the stop button on the front of the VFD (it is still active)



Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 23, 2010, 07:14:09 PM
Well I have been had. My RS485 chip is missing too. Just checked and there are some nice little blobs only as per Kare's picture.

I think i'll sign up and get some Maxim chips sent out


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 23, 2010, 09:45:01 PM
Guys they cost like $1.37 AU at Farnells so is it really worth the hassle of trying to scam freebies?



Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 24, 2010, 12:30:06 AM
@mhasting2004
I don't just turn it off, I use deceleration slope and works perfectly for me since there is virtually no load load on motor shaft so it stops in set time.

You are absolutely right that it's hassle for us and for Maxim. But in Croatia there is minimum ordering price from Farnell. And at the time I don't need anything else so this is way I had to take. This is actually second time in my life to order samples so I pointed out this option for people in similar to my position. So people don't exploit do it only if actually necessary.

Cheers all :)


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 24, 2010, 01:13:31 AM
 Kare how do you get mach to turn off the spindle when you get an external estop? I've found that if I click the Reset button in Mach it acts like an estop and the drives and Spindle are issued with a stop command however if I hit my external estop (which mach recongnises and sets the reset button flashing) no spindle stop command is forth coming. Been playing with brains to see if I can fix this but ultimately I will hardwire the stop button to my Estop circuit to by pass software (never a good idea to trust s/w)

I'm really happy that we have found a definite answer to why some people are having so many issues with the plugin These things are never easy to diagnose especially "remotely"

Cheers


Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 24, 2010, 01:35:10 AM
mhasting2004 I wanted from a start to connect it via RS485 so at the time I do manually :). I have PD001=0 and PD002=1 - run and stop on VFDs buttons and speed over 10k pot. If you have spare contact on your external button you can use it to directly turn spindle off. You just have to set one of the inputs of VFD to be STOP. For example you can set PD044 (FOR contact) to 4 and that should do the trick. You send Mach info about stop and at the same time you do hardware stop (much safer than s/w as you pointed out).

Hope that's the answer you were looking for.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 24, 2010, 02:12:47 AM
What I and others have found is that when you setup the VFD for control via serial comms (ie rs485 and the plugin) it unfortunately ignores all the other inputs. I even set one of them to Estop hoping that this is an input it would not ignore... no luck. Please try it once you get yours communicating as it may be a missing bit on mine :)

Just in the process of pulling my VFD keypad apart to add an external stop connection.

Will post pics when done


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on July 24, 2010, 02:43:44 AM
Well I've found out why I couldn't program from the keypad recently... 3 of the surface mount buttons are not working ... might be time for me to run to Farnells and get some contact cleaner or a couple switches. Its obvious these were hand assembled by the poor component placement and dodgy solder job.

This fault however was a good thing in some ways... i'm getting my mate to modify Spindle talker to have a parameter backup facility and it also has convinced me that a secondary external stop button is a very good idea.

Cheers

PS I'll post the new Talker once its done.


Title: Re: Huanyang VFD controller plugin
Post by: mikie on July 24, 2010, 03:05:24 AM
It seems the keypads are all hand soldered. My keypad gave me erroneous outputs. 4 was a H, 1 was _1 and so on. I think there are a number of dry joints so i was considering soldering the driver again after buying new ones. Farnell should have all of it, just a matter of buying the right chips. Atleast i'll make up the minimum $10

Post a pic wwhen you finish mark.


Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 24, 2010, 05:55:45 AM
You could set PD001 to 1 so that it accepts external terminal command and PD002 to control speed. Maybe then Mach can be set to directly control Run, Stop and EStop commands and speed by plugin.
But I don't think that you can drive VFD directly with LPT since it is TTL level (5V) and VFD operates on 24V. You probably would fry the port.
Simple interface card with relays, buffer chip, optocouplers can help. I you are able to DIY:

(http://i1014.photobucket.com/albums/af270/ivanKare/Schematic.jpg)

If you have any question about circuit, shoot :)


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 24, 2010, 07:27:27 AM
Hello Kare and All,
If people are using opto coupled Breakout boards or any open collector output with external pullup resistor then all you need to do is remove Pullup resistor tying the output to 5Volts from the output you require and this will happily switch these inputs and if you have a multimeter you can isolate the resistor and remove it or as I have done just lift one side so I can put it back if required you can be up and running in 20mins.
I am using this setup at the moment using PD001 as 1 and PD002 as 0 as I posted earlier this allows me to switch run ON and will run at the frequency set in PD003 this allows you to increase or decrease speed from the VFD's keyboard.
Also just as a safety measure make sure PD024 is set to ! this allows stop button on VFD to switch spindle Off under controlled deceleration, this is useful if you are using these inputs or RS485 if Mach3 or your system locks up.
If you have any questions please let me know.
All the best,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: BK on July 26, 2010, 05:43:50 AM
Hello Kare,
Hope you don't mind me asking, but what software are you using to generate that schematic?
Really nice diagram.
Thanks,
BK.


Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 26, 2010, 07:36:57 AM
Thanks BK,
 it's made with Altium Designer (former Protel DXP).


Title: Re: Huanyang VFD controller plugin
Post by: Ullteppet on July 29, 2010, 03:10:22 PM
Hi all,
Got my self a vdf witout the com chip.
Any luck with solderin on a new chip Kare? anyone?
Just wondering so I don't waste money bying a chip thats useless.

Regards Ullteppet


Title: Re: Huanyang VFD controller plugin
Post by: Kare on July 30, 2010, 02:14:59 AM
Hi Ullteppet,
still waiting for chip to come. Will post results when it arrives.

Cheers


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on August 08, 2010, 08:14:38 PM
Hi,
After spending a considerable period of time reading through this thread, it was with some trepidation that I installed my usb to RS485 converter, that I had sitting on the shelf and connected it to the Huanyang VFD. I installed the plugin, set my com port and VFD as per the PDF included in the plugin, configured Mach3 as described, input 500rpm for the spindle and clicked start.

I nearly collapsed when it just worked!

The converter is the same as the photo that was previously posted.

A big thank you to the developer/s of this plugin.


Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: stephenmhall on August 16, 2010, 10:48:53 AM
My VFD also had no chip. I got 5 MAX485CSA from ebay http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=290463383670 shop icmarket2009 1 each. Not too hard to solder it in place, very small and my eyes aren't what they were for close up work  :( tinned the pads used tweezers to place and get it sat on all the pads and held down with the tweezers and just dabbed the legs on the pads.

Plugged the sucker in, installed the plugin in Mach, enabled it, programmed the VFD with

PD001   2   commands
PD002   2   frequency
PD163   1   VFD address
PD164   1   Baud Rate 9600
PD165   3   8N1 RTU

as per instructions

and tadaaaa.. nothing..
in the plugin config it just showed 99 in the PD001 and PD002 lines. ahhh

swapped my cables, tried again, 99. re-programmed FVD PD163 with 2 and changed plugin config VFD address to 2

nothing.. 99

swapped my cables back.... got a 2 in PD001 and PD002

hit the spindle start and got.. nothing, went into spindle calibration and still nothing.

loaded up some g-code set some safe zero's and hit start. IT'S ALIVE!!! 2460rpm shown on VFD for 2950 on Mach.

reset max revs on VFD P0144 to 3000 now getting 2949 rpm on VFD.

not haing used Mach controlled spindle before it was just set for zero rpm that had been the problem since I got the 2's showing in the plugin config.

yehaa.. so solder away, all should be shiny  :)



Title: Re: Huanyang VFD controller plugin
Post by: DrLove on August 16, 2010, 11:25:17 AM
Good news and good work!!


Title: Re: Huanyang VFD controller plugin
Post by: Ullteppet on August 16, 2010, 03:05:31 PM
Nice work!
I'm ordering the chip now :-D


Title: Re: Huanyang VFD controller plugin
Post by: mikie on August 16, 2010, 07:43:05 PM
I tried to get some support from Chai (Linearmotion2008) who I purchased the unit from on the fact that there was no RS485 comm on the new unit I bought.

He initially was responsive to emails and even asked the factory about the issue. when i suggested he needed to replace the board or unit he just stopped responding. All I can suggest to people buying units from the net is buy through Ebay and ensure you have the buyer protection.

I bought mine direct and paid using Paypal, but this does not provide buyer protection and he basically will not help me any further. I just bought some of the cips from the Ebay link, so if anyone within Aus needs a unit I can send one on via mail. I'll solder one to my unit as i would like to use the 485 plugin with Mach.

Well Chai has lost one customer. Next time i'll spend a little extra and buy a Siemens unit or something like that. I'm over buying Chinese goods and spending weekend after weekend fault finding crap products. Time with my kids is worth the extra cash.

Best of luck to the others that buy Huanyang.

/M


Title: Missing components on board
Post by: cleyte on August 17, 2010, 08:53:42 AM
I have just discovered that I have a Huanyang VFD with missing items on the board.  In addition to the U4, I notice that I am also missing the large component labelled CN1 (lower left on the board).   There is also a section in the top right that has a series of holes for another item but not sure if it should be filled or not.

Could someone with a WORKING vfd (with MACH plugin operational) post a picture of the entire board so that I and others can see what should be there.  I looked at the picture posted by Kare and can see the CN1 slot filled.  Can someone supply the specs on that?

Thanks


Title: Re: Huanyang VFD controller plugin
Post by: DrLove on August 18, 2010, 08:26:43 AM
Is there anyway to change settings to accomodate the xin ye Vfds that are being sent out with the spindles now days?

Hi all.

Looking forward to testing the plugin when I have bought my spindle/VFD.

But I'm a little worried that if I order my VFD say in 2-3 month I'll get a different type of VFD that is not compatible w/ this plugin or the Mach3 standard Modbus protocol, see quote above. Is this going to be a problem?

I can't find the seller Linearmotion2008 at eBay.com, does hi go under another name now?

Best price w/ shipping to Sweden for me would be this item:

http://cgi.ebay.com/WATER-COOLE-MOTOR-SPINDLE-2-2KW-AND-MATCHING-INVERTER-/230490523975?pt=LH_DefaultDomain_0 (http://cgi.ebay.com/WATER-COOLE-MOTOR-SPINDLE-2-2KW-AND-MATCHING-INVERTER-/230490523975?pt=LH_DefaultDomain_0)

or

http://cgi.ebay.com/WATER-COOLE-MOTOR-SPINDLE-2-2KW-AND-MATCHING-INVERTER-/260623436021?pt=LH_DefaultDomain_0#ht_11169wt_1137 (http://cgi.ebay.com/WATER-COOLE-MOTOR-SPINDLE-2-2KW-AND-MATCHING-INVERTER-/260623436021?pt=LH_DefaultDomain_0#ht_11169wt_1137)

Anyone know if it's the right VFD?

Best regards L.


Title: Re: Huanyang VFD controller plugin
Post by: cleyte on August 18, 2010, 08:44:36 AM
DrLove,

I purchased the same item from lovehappyshopping as you have indicated.  However, the VFD is missing some components.  It seems that several buyers have had this issue with the Huanyang vfd.  I am currently attempting to reach this seller and see if a replacement will be issued.  As yet, I have not received a reply to two attempts.

Clayton


Title: Re: Huanyang VFD controller plugin
Post by: DrLove on August 18, 2010, 10:34:18 AM
Thanks for the reply. But is it only the RS-485 interface that is missing it's all good, I'll just solder a chip in place, but if it's not even the same VFD that this plugin is made for it's another story :(


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on August 18, 2010, 09:33:15 PM
Hi Clayton

can you post a pic here of your board... My camera is dead and the phone pic is crap.

The lable CN1 is actually the big green terminal connectors ID the proper label is over the top of the relay which is some thing like BDQ1 or 80Q1.  Q2 is populated ... you don't need this to have a working VFD as its a optional multi output either KA or FA is missing.

Not sure what you are missing in the top right... pic will clear this up. there is a ribbon connector to the bottom board up there but nothing ould work if thats missing.

Cheers


Title: Huanyang 2.2KW VFD Board - Missing Components
Post by: cleyte on August 19, 2010, 09:10:31 AM
Hi Mark,

Thanks for the help and advice.  very much appreciated.

Here is the picture of my board.  The locations of the missing items are in red.

Top Left:   CN4     - a connector I assume

Bottom Left:  GDQ1   - a relay I assume,  GDQ2 is populated to the left of it.

Middle Right:  U4   - the 485 transceiver I assume


I read the specs off the GDQ2 and it reads NAIS JQ1P-24V.  I believe it is made by Panasonic.  I would like to have the specs from GDQ1 if someone can read it for me.

Thanks, Clayton
http://i826.photobucket.com/albums/zz187/cleyte/huangyang/board1.jpg
 (http://i826.photobucket.com/albums/zz187/cleyte/huangyang/board1.jpg)



Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on August 19, 2010, 05:44:46 PM
Hi Clayton

U4 is the only component that is different to my VFD. GDQ1 is a relay with a 12vdc coil from memory

Cheers


Title: Re: Huanyang VFD controller plugin
Post by: rognets on August 29, 2010, 06:28:25 AM
Hi There, have just spent all day trying to setup my new Chinese spindle and VFD.  I desperation started to read the forums and Thank heavens found this thread, now I will get some sleep tonight.

Am using a http://www.trycom.com.tw/TRP-C06.htm and getting the same results, no feedback from the VFD and Estop a few seconds after spindle start.

Is there an update coming to the Plug-in ???


Thanks Steve 


Title: Re: Huanyang VFD controller plugin
Post by: rognets on September 02, 2010, 02:46:25 AM
Well have learned a lot, got hold of the supplier and he says that buyers need to 'special order' from the factory prior to buying if you want Mach3 RS485 control.

I have purchased and fitted the MAX485CSA as suggested and all is working well. I did have to load some NC code to get it going, but I think that may have been because of the minimum start up speed issue? Will learn more no doubt!!! Thanks Alll for your guidance
_


Title: Re: Huanyang VFD controller plugin
Post by: cleyte on September 02, 2010, 05:47:09 AM
Hi Rognets,

Good to hear that the Max485 works as I am still waiting for mine to arrive so I can install it on the board.

BTW, can you check to see if tou have the two relays in the lower left corner of the board.  They are labelled as GDQ1 and GDQ2.  I am missing GDQ1 and would like the specs on it.

There is a link to a picture of my board and missing parts in a previous post.

Thanks, Clayton


Title: Re: Huanyang VFD controller plugin
Post by: rognets on September 03, 2010, 01:57:06 AM
Clayton

I have looked and there is one relay only, the one on the Right Hand side. The one to the left is vacant.

Steve


Title: Re: Huanyang VFD controller plugin
Post by: cleyte on September 03, 2010, 05:30:59 AM
Thanks.

The relay  on the right is missing from my unit.  I guess it doesn't matter as long as there is one????

Clayton


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on September 03, 2010, 05:48:14 AM
You don't need either for the VFD to function. They are for auxillary outputs.
One is a single throw double pole and the other a single throw single pole from, memory. Check the manual its clearly descibed and shown on the schematic.



Title: Re: Huanyang VFD controller plugin
Post by: cleyte on September 03, 2010, 05:58:30 AM
Thanks for the information - it is good to know that all is well with my VFD.  I will definitely take a closer look at the manual as you have indicated.

I am still waiting for the Max485 unit to arrive so that I cann complete the repair.

Clayton


Title: Re: Huanyang VFD controller plugin
Post by: mikie on September 05, 2010, 02:46:59 AM
My max485 chips have arrived so can someone tell me where pin1 is so I can work out which way to orientate the chip on the board

Thanks
Michael


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on September 05, 2010, 07:44:16 AM
Hi,
Here is a link to the datasheet, the pinouts are on page 18
Cheers
Dave
http://www.datasheetdir.com/MAX485+download


Title: Re: Huanyang VFD controller plugin
Post by: mikie on September 05, 2010, 06:25:42 PM
Sorry my question was not correctly worded. I'm after the orientation of the chip on the VFD board. Which way do I place it on there to solder it on. My assumption is the chip has a dot to indicate pin one.


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on September 06, 2010, 12:14:45 AM
I haven't got mine apart at present, but the rule for circuit boards is that all chips face the same way, so if there is another chip on the board, you with the same orientation, you should put this chip around the same way.
I'll take the cover off mine and check anyway in a little while.


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on October 31, 2010, 05:21:10 PM
hey guys

just wondering if my computer had a serial port on board can i just use a 9 pin solider on connector and solider 2 wires with the connector and attach them to the VFD ?

if i can do that do u know which pins i use ?

thanks

Justin


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on October 31, 2010, 05:33:31 PM
Normal PC serial poprts are RS232 ports, whereas the VFD needs a RS485 port. If you look back through this thread you will see some discussion on various options for converting from RS232 to RS485.
Or, just google or ebay RS485 converter

Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on October 31, 2010, 05:38:14 PM
yeh i have just ordered an adaptor on ebay just thought i might be able to work b4 i got the adaptor


Title: Re: Huanyang VFD controller plugin
Post by: mikie on October 31, 2010, 06:33:59 PM
The VFD uses RS485 and the interface from your PC is RS232. They are incompatible.
You need to either add an RS485 DB9 card or just use the USB interface to drive the RS485.


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on November 01, 2010, 05:21:21 PM
hi there guys

just wondering if anyone might be able to help me ..

when my VFD spindle is running my laptop mouse is all over the place and wont work .. but as soon as its stopped and the mouse works as per normal ..

do i need have to earth / ground something ? or a filter ? or something ?

thanks

Justin


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on November 01, 2010, 06:24:41 PM
Sounds like you need an EMI filter on the incoming power to the VFD, although if the mouse is your only issue, I'd try a different mouse first. A mouse is cheaper. It might just be that you have a poorly shielded mouse!
You can get EMI filters on ebay

Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on November 01, 2010, 06:30:26 PM
hey Dave

thanks for your quick reply mate

sorry when i meant mouse i meant the internal touch pad on the laptop .. ok i'll look for a EMI filter (are they easy to install) ?

thanks

Justin


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on November 01, 2010, 06:34:25 PM
so will one of these work ?

http://cgi.ebay.com.au/RF-EMI-POWER-LINE-FILTER-6-AMP-MALE-MAINS-IEC-SOCKET-/380258689485?pt=AU_Pro_Audio&hash=item58892f21cd

http://cgi.ebay.com.au/9mm-Cable-Ferrite-Snap-On-EMI-RFI-Noise-Core-Filter-x5-/390256670285?pt=AU_Television_Accessories&hash=item5add1c364d

is anyone better then the other ?

thanks

Justin


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on November 01, 2010, 07:14:16 PM
Yes, I think some are better than others, the one you mentioned is only 6 amps, which may not meet the current requirements of your VFD, try this one
http://cgi.ebay.com.au/EMI-Filter-Variable-speed-AC-drive-/320608802271?pt=AU_Gadgets&hash=item4aa5c615df#ht_500wt_1156

I recently bought 2 similar than these from the states and paid about $40.00 each, so this is a good price, and is designed for an AC drive.

Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on November 01, 2010, 07:20:21 PM
Hi Dave

thanks for that :)

so i just wire it between the AC input cable and the VFD ?

easy !!

thanks mate

nice work

Justin


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on November 01, 2010, 07:24:34 PM
If you are unsure about the wiring, get a sparky :)

Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on November 02, 2010, 01:38:37 AM
just reading thru my manual again .. and the whole "grounding" is confusing me .. i have Earthed the VFD box do i need to earth the motor ? coz i believe the 3 wires from the VFD to the motor are power wires .

i have ordered a EMI to wire in between the AC input and the VFD box to hopefully sort the laptop touch pad from going  crazy when the motor is spinning

thanks

Justin


Title: Re: Huanyang VFD controller plugin
Post by: justinc1981 on November 02, 2010, 07:13:39 AM
also does anyone know how to adjust the speed of the motor from the front panel of the VFD ?

i have seen some with a variable speed knob to adjust the speed mine has the place for one but it's not there

thanks

Justin


Title: Re: Huanyang VFD controller plugin
Post by: DrLove on November 05, 2010, 08:28:46 AM
Hi all.

Great plug in, but I get intermittent errors using it w/ my VFD.

I ger PD001&2 = 2 some times and some times I get 99/2 or 2/99 or even 99/99 w/o doing any thing, just open and closing the plugin settings page. Starting & stopping spindle works sometime but usually not 2 times in a row. I have checked all my wires and reinstalled the RS485 interface but no luck. When I can't stop the spindle I get an E-stop in Mach3 and if I try to open the settings page Mach3 crashes :(
Could my intermittent problems come from the plugin or a bad solder on the RS485 chip (I had to solder a chip in place, my VFD didn't have one)?

EDIT: I use a EMI-filter on AC-line and ferrite cores on the spindle cable.

Best regards L. Kull, Sweden


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on November 05, 2010, 08:23:55 PM
I have not had any of the issues you mention with the plugin. Your errors sound more like an RS485 comms problem, since it doesn't always read the registers on the VFD correctly. It could be an issue with the chip on the VFD, or cabling, or a problem with your RS485 convertor.

Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: vincent13 on November 11, 2010, 08:43:11 AM
hello all,

firstly a big thks for your work on mach3 plug in.

My huanyang is a hy03d023b and is now correclty controled by the plug in.
on/off and setting the speed are functional.

but The rpm speed is still to 0. (allthe options in the plug in config a on)
have I missed something ?


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on November 16, 2010, 05:17:29 PM
Hey,
RadiantHeat, don't yell at us, we are in the same boat as you. We are not the manufacturer / retailer of the VFDs, this is just a forum where people can volunteer to help each other, and share their experiences.

Particularly please don't complain about the modbus plugin, this was written by an end user and generously shared with us for no personal gain.

Personally I appreciate your frustration, but a situation like this is always a possibility when you buy virtually unknown products from an unknown manufacturer, for a substantially lower price than competing well known products.
In future you would be better to do some research before you buy. Google is your friend!

Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on November 16, 2010, 06:07:25 PM
I am very confident that nobody on this forum has any relationship with Huanyang whatsoever. As for you annoyance with the ebay reseller and Huanyang, please feel free to take out your frustrations however you want, but we are definitely end users just like you!


Title: Re: Huanyang VFD controller plugin
Post by: kankki on December 17, 2010, 04:47:37 PM
Hello I'm quite new here :)

Is this compatible with Windows 7? As soon as I add the plugin to Mach3 it says
"

XMLNetProfile

Warning - '(cross sign)', hexadecimal value 0x18, is an invalid character. Line 1567, position 19.

"


When I open and close Mach3


Any help would be appreciated!


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on December 21, 2010, 09:03:04 PM
RadiantHeat... if that is your real name!

Back off Matty Z!

 We all know what ASSUME stands for.
Matt and I, plus a mate of mine all contributed to create tools and a viable way of controlling these NON Modbus units and are just end users with a bit of community spirit trying to help out ourselves as well as others who KNOWINGLY bought cheaper (hence not plug and play) VFD's from various sources in China. Neither of us has any ties or kickbacks to any manufacturer.
 BTW they are in no way a Modbus unit and the chip some are finding missing is a RS485 comms chip.

Understand your frustrations but please refrain friom venting them to those who have offered help. If you are unable or unwilling to take the risk and experimentation involved with buying one of these units can I suggest you sell it on ebay and buy a brand name instead.

If you think I'm talking *********e... do a search on my user name and you will find it pop up all over the place on various forums on this and other issues with fixes not just rants.

Enough said!

Mark






Title: Re: Huanyang VFD controller plugin
Post by: RICH on December 21, 2010, 10:41:07 PM
Mark and Dave,
Thanks for restraint in your replies.
RICH


Title: Re: Huanyang VFD controller plugin
Post by: Vaffel on January 26, 2011, 03:08:58 PM
Hi Guys!

Thanks a lot for this plugin!!

BUT, Im having some problems, and Im not sure what to make of it.

I had a VFD without the RS485 chip installed. So today I soldered one in place. I hooked up R+/R- to the A/B on my RS485-to-USB converter, and setup everything according to manuals.

So in Mach3 on the plugin-window I get the PD001 and PD002 reading 2 and 2 as it should.

So I type in a speed of 6000, and the VFD correctly shows 100Hz on the display. And whatever speed I type in in mach3, the corresponding correct frequency is displayed at the VFD. YAY I thought, and pressed the Turn Spindle On-button, and the spindle fires up. If I press i.e. Zero X-button right after turning the spindle on - there is some lag, maybe 2 seconds before it actually zeros the X-axis.

So far, so good. When I now try to regulate the speed. I.e. to 8000rpms, mach3 freezes. The speed doesn't change on VFD or anything. When I finally can get mach3 to force-shutdown, I can't restart mach3 again. I have to restart the computer.
So the exact same thing happens if I press the Turn Spindle On/Off-button again to turn off the spindle. Mach3 freezes.

Sometimes I get the Server Busy-window up which I can't get out of. But usually it just freezes indefinatly.

So Ive tried a few things - Ive tried adjusting the kernel speed, changing USB-port of the USB-to-RS485-converter, even soldering on a new and fresh RS485 chip. All the same results.

Anyone have any ideas?

Ive got the CNC running by Gecko540, and the spindle is a 2.2kW water-cooled one with the corresponding VFD.
The PC is a quite new one running windows XP SP3





Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on January 26, 2011, 03:43:31 PM
I dont think this is related to the plugin itself, but rather the VFD is causing electrical noise which is freezing Mach3. Are you using a smoothstepper by any chance? These are very sensitive to noise.


Title: Re: Huanyang VFD controller plugin
Post by: Vaffel on January 26, 2011, 04:04:15 PM
I dont think this is related to the plugin itself, but rather the VFD is causing electrical noise which is freezing Mach3. Are you using a smoothstepper by any chance? These are very sensitive to noise.

That may be... Im not using the smoothstepper.

Is there an easy way to reduce the noise so I can see if it helps? If it does help, I can then invest in a decent filter of some sort (any ideas on a more permanent noise filter?).

But I would really like to try out first to see if this is really the problem.



Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on January 26, 2011, 04:08:47 PM
Just search this forum for emi and electrical noise, or google if you want, there is a mass of info out there.
Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: Vaffel on January 27, 2011, 03:51:16 PM
Bah!

So I've googled some, and I must say, I don't really understand the noise thing. Does the noise only or mostly travel through the cables? Or is it i.e. radiating noise from the spindle through air?

I tried maximising the distance between the VFD and the spindle, and changing the RS+/- cable to a shielded and twisted cable. However, without results.

It seems that as soon as I turn on the spindle, the modbus/mach3 freezes. Doesnt matter if I turn it on though mach3, or manually on the VFD (however, the RS+/- cables are still connected through modbus)

I see from earlier in this thread that people have had the same problems as me, but as far as I can see, there was no solution. Or at least none told about it here.

Anyone else have an idea that I can try? Or is the next step adding some ferrite donuts around the all VFD-cables?

I really want this to work :( :(

Thanks for any input!! Its greatly appreciated :)


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on January 27, 2011, 03:55:58 PM
You can buy an emi filter and put it on the AC input side of the VFD (not between the vfd and the motor). I got one from ebay. Use shielded cables for all signal lines and only earth one end of the shield, so that it acts like a faraday cage.
Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: Vaffel on January 27, 2011, 03:58:51 PM
You can buy an emi filter and put it on the AC input side of the VFD (not between the vfd and the motor). I got one from ebay. Use shielded cables for all signal lines and only earth one end of the shield, so that it acts like a faraday cage.
Cheers
Dave

Thanks! Ill order a filter right away. However, do you know the answer to my first two questions?
Does the noise only or mostly travel through the cables? Or is it i.e. radiating noise from the spindle through air?


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on January 27, 2011, 04:31:36 PM
That was only one question  ;) The answer is that it travels both in the air and down the cable, but the noise in the cables is usually what affects sensitive devices. Try reading some of the posts on smoothstepper electrical noise issues, since the solutions to those problems should help your noise issues as well.


Title: Re: Huanyang VFD controller plugin
Post by: Vaffel on January 28, 2011, 01:46:04 PM
That was only one question  ;) The answer is that it travels both in the air and down the cable, but the noise in the cables is usually what affects sensitive devices. Try reading some of the posts on smoothstepper electrical noise issues, since the solutions to those problems should help your noise issues as well.

Ok, I did as you said :) And I deviced a solution! So now everything works as it should, and no more freezing of mach3!

Thank you very much Dave for not letting go of the noise-theory! I should send you some flowers or something :)

For others that might run into the problem:
I used a shielded cable from the USB-RS485 to the VFD. The cable was actually a firewire cable, which is extensivley shielded. I soldered on a wire onto the shield in the cable, and grounded it. The I put the whole USB-RS485 inside my computer chassis (Im not sure if thats a good idea or not. At least its shielded against the very noisy VFD).

So the key is keeping the USB-RS485 away from the VFD, and to ground ONE end of the shield in the cable. As DMBGO says, gounding only one end of the shield will make a faraday cage!

Thanks again Dave / DMBGO :)


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on January 28, 2011, 06:08:32 PM
What a nice result! I cant take all of the credit, my knowledge has been gleaned from a variety of sources, and people on this forum such as Jeff Birt and others have spent a lot of time testing and finding solutions for electrical noise problems, but thanks for the compliments anyway.
I'll look forward to the flowers, it will brighten up the workshop :)

Cheers
Dave


Title: Re: Huanyang VFD controller plugin
Post by: Cmdr114 on February 02, 2011, 01:42:19 PM
Since installing this plug-in I have been suffering with similar problems to others with lockup when trying to switch off the spindle after being able to start it fine.
The cure for me turned out to be very simple, I just used two ferrite cable filters one on the USB cable close to the PC and the second just after the screw terminal
block on the RS485 interface.
The filters I used are similar to these http://www.leadertechinc.com/bisectedround.shtml (http://www.leadertechinc.com/bisectedround.shtml) I just happen to have a couple on some old network cables I had lying around.
I hope this might be helpfull to others.
John


Title: Re: Huanyang VFD controller plugin
Post by: Cmdr114 on February 04, 2011, 08:42:39 AM
I have also found that RS Components do these ferrites http://uk.rs-online.com/web/search/searchBrowseAction.html?method=getProduct&R=2224359 (http://uk.rs-online.com/web/search/searchBrowseAction.html?method=getProduct&R=2224359).
My Router spindle is really working well so many thanks to Matty for the plug-in.
John


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on February 09, 2011, 10:22:24 AM
I posted a theory on one of these forums that they may be either off a reject line or just really poor QC. Like you say you can't expect alot give the price.

The thing that I spent heaps of time doing just like you (blaming s/w, configs etc etc) was when i was trying to setup the braking resistor. The manual says it has this ability, Chai sent me the specs on the external resistor... and the end all the switching parts are missing! Had to totally dissassemble the unit to get to the lower board to see this. I'm just happy I didn't spend the $$ to get a high wattage dump resistor.

Ah its all part of the fun... Just keep repeating that and try to smile :)

Really want to see a few more working with the plugin... so far the only confirmed two sounds like me an Matty!



mhasting2004, I know you were interested in using braking resistor and discovered the missing parts on the lower board.
I also have a unit which was missing the RS485 chip (installed and working now) as well as the resistor switching stuff.  I decided to take a closer look at the braking resistor circuitry and it looks to me that the only part missing on mine is the power IGBT (FGA15N120 http://www.fairchildsemi.com/pf/FG/FGA15N120ANTDTU_F109.html (http://www.fairchildsemi.com/pf/FG/FGA15N120ANTDTU_F109.html))

I am using the drive on a 2HP BP mill and wanted to have braking for tapping operations.  The IGBT is only few dollars although no one has in stock except for one place which I got a RFQ into, so I am willing to try it.

Attached are few pictures of my drive boards.

Huge thanks to MattyZee for the plugin.



Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on February 09, 2011, 10:27:07 AM
BTW here http://www.practicalmachinist.com/vb/transformers-phase-converters-vfd/vfd-resistor-value-101354/ (http://www.practicalmachinist.com/vb/transformers-phase-converters-vfd/vfd-resistor-value-101354/) is a little more info about sizing of the braking resistor.  It is nothing special and can be had for under 10$.
This place here has a nice chart for sizing the resistor http://www.powerohm.com/pohmBrakingResistors.aspx (http://www.powerohm.com/pohmBrakingResistors.aspx)


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on February 09, 2011, 03:24:42 PM
Hi Sinij kot

I'll be very interested to see how you go. I put this on the back burner and its good to see someone else persuing in this... I'll have to revisit this again.

 One question ow do you know that the missing power transistor (or FET) Q23 is the same component as those that are on the other side? I asked Chai to get me specs of the missing parts but he was unable to at the time I was asking.


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on February 09, 2011, 10:18:40 PM
Here is the data sheet for the missing IGBT (Q23).
I assume it is the same as the drive IGBT's because the associated drive circuitry is the same and it would make sense to use the same component in that position.

I have also attached the data sheet for the IGBT driver chip (PC11).

The data sheets are free from http://www.datasheetarchive.com/ (http://www.datasheetarchive.com/)

The 2.2kW drive I have is missing Q23, PC11, D1 (on the back of the board) and the wire link from P+ to R8.
It also seems to be a slightly different board revision than Sinij kot's board. Pics and circuit to follow.

Hope this helps.
Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on February 10, 2011, 12:08:33 AM
So Phill are you saying that on your board they have a Sharp brand opto instead of the Toshiba TLP351 shown in Siniji's photo? Looking at the data sheet I cant see why they would short pins 6 and 7. I'll have a look at mine when I get a chance.

So who is going to be game to try it first? I'd suggest just testing without the braking resistor first to see that the IGBT switches. I's expect some PWM signal based on the current level feedback during decell.

Once I source the parts I'll have to borrow the scope from work to verify. RS here in OZ has the FGA25N120ANTD stock but still chasing the opto.

I agree that it would be logical to use the same drive components. I never got around to reverse engineering the circuit diagram of this area.


This actually really good timing as I was just sorting out my safe stop (as opposed to e-stop) circuit.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on February 10, 2011, 12:21:05 AM
Doing a quick compare the Sharp PC925L0NSZ0F seems like a better match for the Toshiba TLP351 and then the 6-7 pin short makes more sense.  Phill are you sure about the PC11 part number you posted?



Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on February 10, 2011, 02:19:02 AM
Quote from: mhasting2004
Doing a quick compare the Sharp PC925L0NSZ0F seems like a better match for the Toshiba TLP351 and then the 6-7 pin short makes more sense.  Phill are you sure about the PC11 part number you posted?

I can't be sure because mine is missing but it's my best guess, the accociated circuit is the same as the other drive opto's.

Quote from: mhasting2004
So Phill are you saying that on your board they have a Sharp brand opto instead of the Toshiba TLP351 shown in Siniji's photo?
Yep, I have the Sharp opto's on mine.

I've attached some pics of my board. I bought the unit about 3 weeks ago.

I thought the board might be a different revision because of the board shape and the missing track with the white line between PC11 and CN3 on my board compared to Siniji's photo.

You will notice that the link wire to P+ is missing and D1 on the back also in my photo's.

One of the questions I still haven't answered is why they have disabled the input power relay. It is wire linked (Q1) to be permanently on and the opto is missing (PC12).

The control electronics would get power through R8 if it was off and the drive power would be disconnect from the mains. I wonder if that switching feature is required to disconnect the drive power from the mains when in braking mode.
Just some thoughts.

Still working on the circuit drawing,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on February 10, 2011, 09:14:46 AM
Well I got some work done on the VFD circuit and have attached a smart PDF document.

As with all first revision documents, there may be errors. Hopefully not to many but if you spot something that does not make sense then let me know.

CN2 is for the 26 core cable connector between boards, I plan on making a duplicate with a breakout connector in the middle for probing while the drive is running. 
Don't hold your breath for any results with in the next two weeks though, I'm going to be a bit busy. I will try to post the results when I can.
I'm interested to see if the relay is signaled to open when the braking resistor is enabled and the drive is winding down.

I have attached a few more random pics of the boards as well.
It's worth noting that the IGBT's silicone heat-sink strip was half under the 3 phase bridge which would have caused a thick layer of paste next to it. Not great for heat conduction away from the bridge rectifier.
The other pic's are of the capacitor board and the control board, note the missing relay(near side) and RS485 chip (far side).

Cheers,
Phil


Title: Huanyang VFD controller plugin challenges
Post by: cncman172 on February 10, 2011, 10:29:08 PM
I finally got around to testing this plug in on my Huanyang 3KW VFD.  Well after four hours I have not been able to get it to communicate properly.

Symptoms.

The VFD is programmed as follows:

PD001 = 2
PD002 = 2
PD163 = 1
PD164 = 1
PD165 = 3

Using the Chinese USB to RS485 that Mark and many others have successfully got working, setup as COM2 using 9600 N81

The plugin loads fine and I have NET3.5 loaded as well.  Plugin is activated and when I fopen the plug in setting and set it to COM2 9600 VFD 1 I never get the two parameters to populate like many others. I setup a serial monitor and can see the commands go to the VFD and it responds immediately with7F 7F BF to both requests.  Another symptom when I setup the VFD after power on the display flashes all "0000" the Power light is on and the forward light flashes and the ROTT light is ON. I have a shielded cable to the VFD for control linkage and the VFD and spindle are 7 feet from the MACH3 computer.  I even installed and EMI filter on the power input to the VFD, none of this made any difference at all.

Any suggestions as I am scratching my head.  I am usually pretty good at troubleshooting these issues but not this time.  The VFD and SPINDLE work perfect if I program the VFD for operator panel interface.  The RS485 does not respond at all if I reverse the leads going to the RS485 unit.  Thanks

Russ




Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 11, 2011, 10:50:28 AM
Just a follow up note with a little more information.
I tried to put 120 ohm resistors across both ends of the RS485, which made no difference at all.

When I populated the Huanyang plugin dialog box and hit ok it disappears, so i do it again to see if the PD001 and PD002 have changed from 99 to 2, but no such luck.  I am not sure that is the correct procedure.

Using the serial monitor program you can see the plugin sends out two strings and gets two responses.

Request: 01 01 02 01 00 B8 6C
Answer: 7F 7F BF

Request: 01 01 02 02 00 B8 9C
Answer: 7F 7F BF

I also read up on RS485 attempting to understand potential problems.  When I attempt to measure the voltage on the RS485 with respect to ground they are extremely low.  One is maybe 0.35V and the other might be -0.24V, which seems to be under the minmums listed for RS485. 

Any recommendations guys?  Thanks

Russ


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on February 11, 2011, 10:57:46 AM
Sorry Russ,
I'm no help at this time, I just ordered all the missing bit for the RS485 and braking functions off E-bay.
It will be a couple of weeks b4 they arrive and I get to the stage that you are up to.

Keep posting what you discover though, it will help myself and any others that run up against the same problems.

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 11, 2011, 11:22:28 AM
Phil,

I plan to hook up a scope to see if the data is actually getting to the VFD.  Something seems to be going there because I am getting some kind of response.  I read from other others when you see 7F 7F BF as a response that is almost all 1's which usually indicates noise.  I have take so many steps to eliminate noise that seems strange.  The low voltage levels seem very strange to me, but if someone had one working that would be useful information.  I will hook up a scope this afternoon and see if I can actually see a data package actually getting to the VFD.  I might also open my VFD and look for other missing components.  I know that one relay near the terminal side of the board is missing and read about all kinds of other saying the MAXIM RS485 chip was missing.  Just unbelievable these guys ship this stuff with the missing parts.

I would also like someone to confirm the VFD should be flashing the "00000" the forward LED, and the ROTT led is on.  This might be normal but no one else has responded so I am pretty much in the dark.  Thanks for at least responding.  LOL

Russ


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on February 11, 2011, 12:26:40 PM
Sorry Russ,
I'm no help at this time, I just ordered all the missing bit for the RS485 and braking functions off E-bay.
It will be a couple of weeks b4 they arrive and I get to the stage that you are up to.

Keep posting what you discover though, it will help myself and any others that run up against the same problems.

Cheers,
Phil

majorstrain, good job on the schematic.
I came to the same conclusion that the IGBT would be the same because the drive circuit is the same.

Where did you find a IGBT part for sale? got a link?

My board seems to have everything populated except for the Q23.

Thanks


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 11, 2011, 01:41:31 PM
Another Update!

When I put an HP digital scope on the line leaving the USB to RS485 converter and tell the MACH3 plugin to bring up the plugin dialog box you can see two data requests fly across the link.  I checked both sideds of the line and they look good.  Seems like the data is getting to the VFD.  The VFD responds immediately two the two answers.  Not sure why it is not sending good data back.

I also opened the VFD to see if I had other missing components like so many have shared on the forum.  Well the only thing I see missing was one relay down near the connector with the screw terminals.  There is a spot for two relays I have one populated, which is  labeled as a JZC-33F 3A 30VDC.  Three contact pins C, NO, NC.  I saw several pictures on the forum of the boards inside the VFD.  The relay populated in mine is the relay near the outer edge of the board.  On other photos I see they populated the relay closer to the screw terminal strip.  Wow looks like a good deal of hand soldering took place inside the unit.  Clearly some design issues they added several capacitors after the fact which have not standard pads on the board.  They just soldered them between two other components.  I work in manufacturing and these boards would never pass our QA and we have boards built in China, Thailand, and Mexico.  Wow pretty surprising.

More testing is planned over the weekend, it would be great to get this thing to start talking to MACH.  :)

Comments, Suggestions, Welcome.  :)

Russ


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on February 12, 2011, 06:05:22 AM
Quote from: Sinij kot
Where did you find a IGBT part for sale? got a link?

My board seems to have everything populated except for the Q23.

I got the IGBT's from this seller http://stores.ebay.com.au/Asia-Engineer (http://stores.ebay.com.au/Asia-Engineer)
The direct link is http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=390221440577&ssPageName=STRK:MEWNX:IT#ht_839wt_905 (http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=390221440577&ssPageName=STRK:MEWNX:IT#ht_839wt_905)
Got a lot of 5 for $3 a unit.

The opto's I got from this seller http://stores.ebay.com.au/wonderco-buy79 (http://stores.ebay.com.au/wonderco-buy79)
The direct link is http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=130416767452&ssPageName=STRK:MEWNX:IT#ht_1504wt_905 (http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=130416767452&ssPageName=STRK:MEWNX:IT#ht_1504wt_905)
I bought 2 lots of 2 because the extra shipping was only $0.50

The 18V zeners I got from this seller in the USA http://stores.ebay.com.au/bigsmythe74 (http://stores.ebay.com.au/bigsmythe74)
The direct link is http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=400059707817&ssPageName=STRK:MEWNX:IT#ht_500wt_1156 (http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=400059707817&ssPageName=STRK:MEWNX:IT#ht_500wt_1156)
100 units for around $8

and lastly I got some RS485 chips from http://stores.ebay.com.au/yuqinguo47 (http://stores.ebay.com.au/yuqinguo47)
The direct link is http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=320619204147&ssPageName=STRK:MEWNX:IT#ht_1191wt_1139 (http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=320619204147&ssPageName=STRK:MEWNX:IT#ht_1191wt_1139)
60 units for $15.

Just a note for Australian and NZ members.
If you want a couple of zenners and/or a Max485 chip, just PM me. I'm thinking if you send me a self addressed and stamped envelope I'll send it back to you with the parts inside.
Other countries could do the same thing but it would probably be cheaper buying them direct.


Quote from: cncman172
When I put an HP digital scope on the line leaving the USB to RS485 converter and tell the MACH3 plugin to bring up the plugin dialog box you can see two data requests fly across the link.  I checked both sideds of the line and they look good.  Seems like the data is getting to the VFD.  The VFD responds immediately two the two answers.  Not sure why it is not sending good data back.

I also opened the VFD to see if I had other missing components like so many have shared on the forum.  Well the only thing I see missing was one relay down near the connector with the screw terminals.  There is a spot for two relays I have one populated, which is  labeled as a JZC-33F 3A 30VDC.  Three contact pins C, NO, NC.  I saw several pictures on the forum of the boards inside the VFD.  The relay populated in mine is the relay near the outer edge of the board.  On other photos I see they populated the relay closer to the screw terminal strip.  Wow looks like a good deal of hand soldering took place inside the unit.  Clearly some design issues they added several capacitors after the fact which have not standard pads on the board.  They just soldered them between two other components.  I work in manufacturing and these boards would never pass our QA and we have boards built in China, Thailand, and Mexico.  Wow pretty surprising.

That's good news that all the required parts are there Russ. It might just come down to a setting issue.
Did you catch this post by stephenmhall on page 13, I'm not sure if it's relevant to your issue.
http://www.machsupport.com/forum/index.php/topic,14182.msg105213.html#msg105213 (http://www.machsupport.com/forum/index.php/topic,14182.msg105213.html#msg105213)

For the guys that have the diode D1 installed (under the bottom board), could you let me know the part number? I just want to confirm that it is a standard diode and not a zenner for some reason.

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 12, 2011, 08:56:02 AM
Phil,

Hope your weather down under is better than we are having it up North.  It has been well below freezing for weeks, we are ready for spring.  LOL

OK, I did some more testing after reading your post and went back and read the other post "again" that you suggeted.  The only thing he did was change the VFD to #2

Well here are my results from both attempts:

VFD#1                                            VFD#2
request: 01 01 02 01 00 B8 6C           02 01 02 01 00 FC 6C
answer: 7F 8F BF                               BF FB FD
request: 01 01 02 00 B8 9C                02 01 02 02 00 FC 9C
answer: 7F 7F BF                               BF FB FB

Changing the VFD address in both places did change the output coming back from the VFD and looking at the data closely it almost seems like it is inverted.

BF FD in binary is 11011111 1111101 so if we invert it we get 00100000 00000010 and back to HEX is 20,02

I had a very lold Tektronics 338 logic analyzer which has not been used in probably 20 years and I could not find the user manual but was going to use it to read the output and input on the Texas Instrument 75176B the differential bus transceiver.
Pin 1 on the device is "R" the data coming from the PC in digital form, and pin 4 is "D" the data being send from the VFD back to the PC.  If I can get the logic analyzer or scope to capture this data at least I would know what the VFD is seeing and sending in digital format.  If this was correct then it could have something to do with the converter but right now I don't know.  I tried to play with the logic analyzer for an hour last night and started searching for a manual online to no avail.

More testing planned for today.  This has been very painful process.

Russ




Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 12, 2011, 10:41:07 AM
VFD Update: Well I spent two hour reading the 20 pages in this topic yet again, looking for some grain in data that I might have overlooked on how to establish communcations with the VFD.

I am using the 3KW VFD and Spindle which I purchased probably close to two years ago.  It works on the bench fine and just got busy with other projects so it never got installed on the mill.

I am using a USB to RS485 converter which uses the Prolific PL-2303HX chip, just like the one with photos and details at this link.

http://cgi.ebay.com/USB-RS-485-Converter-Adapter-RS485-New-17-/180612321384?pt=LH_DefaultDomain_0&hash=item2a0d555068

My cable between the converter and the VFD is connected in the following manner:
VFD RS-  >>> T+/B (DB9-2) and VFD RS+ >>> T-/A (DB9-1)
I have tried ground, no ground, and no difference.   One note when I measure the voltage on the TI 75176B differential chip on the VFD it measure 5VDC as expected, if I measure VCC to DCM on the VFD which is suppose to be DC Common I only get about 3.4VDC with respect to Pin 8  (vcc) of the 75176B chip.  However, if you measure between V0 and Pin 8 you get the full 5VDC.  DCM is not really the common DC side with respect to the IC's on the upper VFD pc board. Anyway I tried to use the V0 ground as a reference back to the PC usb RS485 converter again the same responses.

At this point I am not sure if the USB to RS485 converter I am using has been successfully used to control the VFD.  Hope this info helps someone else or highligths something that someone else has noticed that might point me to a solution.  I might blow another $30 on a different USB to RS485 converter.

I did noticed after reading these 20 pages of posts several times that Bryan "Bolingerbe" had the exact same issue and responces from his VFD but he disappeared and had not posted in a long time.  I know he was also frustrated and talked about get a different VFD fully modbus compliant.  I hate to go that route until this one dies because I already spent the money. 

Comments or Suggestions are welcome.  Thanks

Russ



Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 13, 2011, 05:01:39 PM
Yet another update!  I must be the only one attempting to get the RS485 running on the Huanyang VFD.

Well as a result of frustration I took the unit apart and pulled the top board containing the processor so I could trace some of the circuit.  I really wanted to see if data was getting past the 75176B differential bus transceiver.  After a good deal of circuit tracing I discovered that some of the key signals can be tested from on unpopulated connector CN4 a ten pin connector.  Pin 1 of this connector with the small white square is true ground with respect of the microprocessor and the 75176B.  Numbering counterclockwise from pin 1 you have the following key pins.  Pin 4 is the DATA OUT lead from the processor to the 75176B, this is held high via a 10K resistor R102.  Pins 5&6 tie directly to VCC (5vdc).  Pin 7 is READ DATA from the PC and goes directly to the 75176B and the data pin is held high via R101 a 10K resistor.  Finally, the enable leads on the 75176B are tied together and are held high via R40 a 10K resistor, and then attach to Pin 8 of CN4.

Attaching a HP 100Mhz digital scope to "R" the data pin coming from the PC RS485 I can see one 10uS pulse and that is it.  Nothing follows, which is strange as you would expect a good deal of data to come on this input pin to the processor in the VFD.  When I measure the Enable pins on the 75176B they stay low the entire time when I initiate the plugin.  This indicate the VFD never tries to write to the VFD.  I know this pin works because during a power cycle the pin starts high and then the processor takes it low. Again, this seems to indicate the VFD did not really get any kind of message it needed to respond to from the PC.

In addition if I put the scope on "D" the data output that comes to the 75176B this stays high the entire time again indicating that the VFD never attempts to send any data at all.  When I put the scope on the differential input pins A or B on the 75176B you can see a burst of data coming from the PC when I initiate the plugin.

What does all this mean?  Well I am now highly suspect of the 75176B, it was clearly hand soldered and I did reflow it using a precision repair station, but when data comes in the differential inputs it should translate to a stream of data on the R pin of the 75176B and I only see one 10uS low pulse.  Open to comments on my testing.

Another thing to keep in mind when it comes to the Free Serial Port Monitors.  While my scope clearly showed no data leaving the VFD processor the serial monitor was spitting out data.  My guess is this is nothing more than reflections of the data sent by the PC, could be all wet here but that is the only thing that makes any sense.  I will probably order a MAXIM replacement chip tomorrow and then seen what happens with a new chip. 
Hope these experiments help someone else.  If I can get time I will post a partial schematic on the RS485 interface on the VFD.  The interface looks traditional with pull up on the A pin (RS+) and a pull down on the B pin (RS-).

Russ Larson


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on February 13, 2011, 07:44:36 PM
That's great info Russ,
It does seam like you are the only one fighting with the RS485 at the moment, I'll be going down that trail in a couple of weeks when I get the chips.
Regarding the pin numbering on the unpopulated IDC socket (If I'm thinking of the same connector as you) see that attached pictures. I should have included this numbering information with the schematic I made up for the power board also.

On a diferent note, I tried hard late last night to blow my VFD sky high, with no success.  ;D
I have had mine stripped down and rebuilt several times during the reverse engineering process. When I reassembled it late last night and tried to run it I got the E.O.C.A error.
Not being able to read the Chinese manual, I slipped onto the net to find the meaning of the error. (Over current during ramp up). A bit unusual I thought because I had had it running b4 with no problems.
In my mind I put it down to maybe wiping the EEPROM during probing the board. (Very unlikely, but it was past midnight and my brain is not noted for it's clarity at that hour)
It was then that I saw the problem. Sitting on the desk next to my mouse were the two silicone insulation strips that go under the IGB's.  :o

Well you can say one thing, the output short circuit protection works.  ;)


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 14, 2011, 11:01:21 AM
Final Update.  I did this update last night but for some reason it did not show today.

SUCCESS, SUCCESS, SUCCESS

I decided to remove the 75176B chip and only had a MAX3485 which is the 3.3V version of the MAX485 chip.  I read the spec sheet and it said it was 5V tolerant and when I read the VCC rating it showed a MAX of 7V.  I used a SMT repair station with a iron and hot air pump to remove and install the new part.

When I hooked the unit back up and connected the scope I could still not see all the data expected.  As a last resort I decided to switch the two leads RS+ and RS- and suddenly I got the infamous "2's" populated in the plugin.  I became so excited after such a struggle to get to this point so I decided to try and turn on the spindle.  Well it did not respond so I remember reading someone just tried some Gcode and their spindle came to life.  Well I tried this and SUCCESS, the motor starting coming up to speed.  I was extremely excited at this point. 

I tried to overrride the spindle speed and the system crashed and I could not control anything and Mach e-stop was flashing.  I then recalled reading on the forum you might need a EMI choke on the USB line to the RS485 converter.  I found a USB cable with a removable choke and looped my USB cable through it and SUCCESS.

I can now control the spindle motor and not crash MACH3.  I love this plugin and the ability to control the spindle speed and on/off.  More testing to come but at least I discovered the root of my issue was a bad 75176B chip.

Hope this is helpful to others.

Russ


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 14, 2011, 04:15:00 PM
Majorstrain,

Your probably correct on the formal numbering of the unpopulated connector.  I did not have a connector like the one you have picture which would have numbers on the plastic, so I just used the standard counterclockwise IC number scheme.

Using your numbering scheme the pins of most importance are as follows and it would be nice to have this in a schematic.  Hopefully, I will get a little more time later in the week to pull my part together in Eagle or something.

Pin#1 is Ground (tied to the 44-pin processor labeled  "0260R8A" probably a mask version of a Microchip part.
Pin#6 is Direction Enable on the MAX485 chip.  Defaults to Low for reading and high for writing to the PC
Pin#7 is VFD Data Out to the PC
Pin#8 is READ data from the PC
Pins#9,10 are VCC (5vdc)

Another note that "DCM" or DC Common on the screw terminals is not directly died to Pin#1 ground listed above.  This DCM screw terminal actually connects to one of the corner pins on the 26-Pin ribbon cable going to the board in the lower level of the VFD.  The "V0" also is not tied directly to the ground on Pin#1 it actual goes through opto isolator PC1 to ensure the it is isolated from noisy areas in the VFD.  The only reliable way to take readings is by accessing the pins on the unpopulated connector.  Hope this helps someone.

Russ


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on February 14, 2011, 04:47:14 PM
Congratulations Russ,

Mate, your a legend.
Lots of great info in your posts that will definitely help me when my chips arrive and I run this plugin.

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: DrLove on February 17, 2011, 04:07:08 PM
Hi all.

Any one know how I get the actual RPM to show in MachStdMill add on w/ this plugin? I can't get it to work.

Best regards /L


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 18, 2011, 11:57:24 AM
DrLove,

I assume your talking about the brand new screen set which is suppose to be part of MACH4 if that happens?  I have not tried that new screen set have heard some good things about it, but I can tell you that using the standard 1024 screen set that comes with MACH the VFD does read correctly inside of MACH3.  I added nothing extra other than the Huanyang VFD plugin and when the VFD reads 6000 then MACH reads 6000.  I have found some small variation depending on the actual speed requested but it is always very close.  For example sometimes I request 8500 and it will come back 8480 or something like that so not sure why but close enough for my needs.

Russ


Title: Re: Huanyang VFD controller plugin
Post by: DrLove on February 18, 2011, 12:06:42 PM
Thanks Russ.

I get 0 RPM.
Where/how can I check what DRO # to use in the plugin for spindle speed? Maybe theres another # for the machstdmill screen set?

Best regards L


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 18, 2011, 01:48:14 PM
DrLove,

Well the problem is we are using a Plugin for the Huanyang VFD unlike those that can implement the RS485 link using standard modbus and a brain.  The plugin actually pulls the requested RPM and sends it over the RS485 link and the VFD sends the actual RPM back over the same link.  Mach gets updated via the plugin again.  I am not certain which DROs he is using so the only way to modify the plugin to work with the new screen set would be to talk to the design of the screen set who would probably be able to provide a switch when using this plugin as many people use this plugin for the VFD.  Or if Matty Zee could modify the plugin or provide the sourcing so people could make the required changes.

You might want to contact the screen company first they might be able to provide a quick fix.

Russ :)


Title: Re: Huanyang VFD controller plugin
Post by: Cmdr114 on February 18, 2011, 02:40:33 PM
Isn't that what the plugin config box already has?
The two text boxes marked Spindle Amps DRO and Spindle Speed DRO addresses allow them to be set to what ever you need.
Or am I missing something?


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 18, 2011, 03:16:46 PM
Cmdr114,

You are absolutely correct my mistake.  The plugin initialization screen has two boxes at the bottom:

Spindle Amps DRO  1001
Spindle Speed DRO 1002

So you are correct you can change the DRO fields required.  Apparently, the new screen set must have moved them or requires different addresses.  I have not used that screen set so can not comment on the required addresses of the DROs required.

Thanks for keeping me straight Cmdr114   :)



Title: Re: Huanyang VFD controller plugin
Post by: DrLove on February 18, 2011, 04:30:25 PM
I don't know much about Mach3 (new user) but afaik the adress for Spindle RPM is 39? I have used the screen editor to look at the # and both the 1024 and machstdmill screens have the same # (39). Is that what I should put in the plugin??

Best regards /L


Title: Re: Huanyang VFD controller plugin
Post by: Cmdr114 on February 21, 2011, 04:22:38 PM
I did try changing the DRO addresses but for some reason they always revert back to 1001 and 1002.
So it looks like something is not right.
 
My Spindle is working well and the VFD displays the speed I request in Mach3 except when I request the minimum speed, 6000 RPM in my case, it always displays 6600 RPM. ???
I just am also having problems displaying the reported speed from the VFD in a DRO as are others it seems.
Has anyone any ideas on how to fix this?

John


Title: Re: Huanyang VFD controller plugin
Post by: DrLove on February 22, 2011, 04:31:01 AM
I can't change the DRO in the plugin either. But if I use a screen editor and change the DRO in the RPM field to "1002", IT WORKS!!! So happy!


Title: Re: Huanyang VFD controller plugin
Post by: Cmdr114 on February 22, 2011, 04:48:41 AM
DrLove,
Thanks for that, I will give that a try.
John


Title: Re: Huanyang VFD controller plugin
Post by: Cmdr114 on February 22, 2011, 03:20:36 PM
Here is a 1024 Screen Set in which I modified / added the RPM and AMPS DRO's to the Program Run and MDI screens.
I have tested them and they seem to work OK.

John


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on February 22, 2011, 04:59:54 PM
Update and an issue.  Good news is that VFD is working great as it should.  I had some one way communication problems which mysteriously went away and it has been solid since.
Now warning:  When I first took the unit apart to see what the IGBT par number was I fatigued the capacitor bank connecting wire which later burned off and I am surprised that the unit survived.  It actually ran for a while and then started sparking, shut off and went into error mode anytime I tried powering it.  The connecting wire is a solid copper wire which must have been fatigued cause I was careful.  Anyway, replaced it with a multi-strand wire and things are good.

I also installed the Q23 IGBT but while doing so I realized that my unit is missing the opto as others have reported, so I'll have to get that and give it a try.


I do have another problem that I don't know how to troubleshoot I thought maybe it is VFD related. 
I milled few parts yesterday with VFD without any issues, it is nice to have automatic spindle control, set the speed turns it on and off; less stuff to remember.  Today I wanted to try taping cycles and ran into a problem. I'm air cutting, the tap goes down properly, at the bottom spindle stops, tap comes up some fixed height, spindle starts up in reverse direction mach waits for the spindle to spin-up and this is where the stepper on the z-axis starts buzzing and sits in one spot as if it was mechanically blocked.  I am completely stumped. 
This is what I have done so far in trying to troubleshoot the problem.
Disabled VFD plug-in and run the program with spindle at standstill, the z-axis goes up and down as expected.  It seems that running the motor in reverse somehow corrupts stepper drive. It sort of behaves like stepper gets both forward and reverse signals.
Is this VFD noise getting into my stepper drives?
I also tried shielding the VFD to motor cable and the VFD it self, also added ferrite clamp to the drive powwr line without any difference.
Is there any way that MACH is issuing wrong command to the stepper drive when the plug-in is enabled?


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 22, 2011, 05:41:12 PM
Sinij kot,

It sounds like to me you are getting noise in your system.  It almost sounds like the signal lead controlling direction is getting interference so it bounces around and gets confused which way to go.  What can I do?  How are you connected to the VFD?  If you are connected with a USB cable you need to loop the USB cable to the RS485 converter through a couple of ferrit cores.  You can sometimes find USB cables with the removeable cores and just move them to your cable.  I have many strange things going on in my Servo system and it seemed to be working but sometimes a request to change speed or something would crash my system and suddenly MACH would be into estop.  This all completely disappeared as soon as I added a couple of those ferrit cores to the USB cable right as it enters the computer.

If you do not have a shielded printer cable going to your breakout card that is another area you can get interference very easy.  I had a monitor power cable a couple of inches away from the parallel cable and it took me hours to figure out what the heck was wrong.  Moving the AC line made it all work again. 

Hope this helps.

Russ


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on February 22, 2011, 07:11:05 PM
Russ, I like your suggestion abut parallel port cable.  I'll put a ferrite clamp on that and see how it does.

BTW I'm using serial port into a borrowed opto-isolated RS485 converter, I will be switching to the USB type soon for cost reasons.  I don't think VFD control is the problem it communicates just fine, I would say it is the VFD noise getting back into the drive system.  A parallel port noise would explain what I'm seeing.


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 22, 2011, 09:12:37 PM
Sinij kot,

Another thought in addition to the parallel port cable.  Do you have an EMI filter on the power coming into the VFD.  The 220V line single phase that is feeding the VFD can cause all kinds of noise.  If you put an EMI filter right before it enters the VFD you can remove a great deal of noise that will tend to get into everything. 

If your parallel cable is picking up noise then you can try moving it as far away as possible from all AC type noise and see if things improve.  This would help determine if your on the right track.

Russ


Title: Re: Huanyang VFD controller plugin
Post by: DaveCVI on February 23, 2011, 03:03:57 AM
Hi,
I'm the author of MachStdMill (MSM) - here's some info:
MSM uses DRO 39 as does the 1024 screen set - that is the DRO mach updates with the true spindle RPM.
DRO 39 is updated by Mach - neither MSM nor 1024 have a hand in determining the DRO value. it's just on a page and mach updates it's value as mach does all the other DROs.

With the plug-in my impression is that the RPM data comes from the VFD and the plug-in then displays it in a user DRO (at least that's what the plug-in manual seems to imply to me).

Does the author of the Plug-in hang around here?
I'd be happy to talk with him as to what his plug-in is doing etc.
If the plug-in will route the RPM data from the VFD to DRO 39, then I'd think all would be well.

Dave

I don't know much about Mach3 (new user) but afaik the adress for Spindle RPM is 39? I have used the screen editor to look at the # and both the 1024 and machstdmill screens have the same # (39). Is that what I should put in the plugin??

Best regards /L


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 23, 2011, 11:30:02 AM
DaveCVI,

Thanks for the information.  The guy who wrote the Huanyang plugin is Matty Zee, and I have not seen any posts on the forum from him in sometime.  I know he has a young family and had family responsibilities. 

It would be awesome if you guys could connect and support the plugin in your screen set or vise versa.  Lots of people use the Chinese VFD by Huanyang and unfortunately when they designed the VFD they must have not understood the Modbus standard.  This is what drove the effort by Matty Zee to create the plugin.  Several developers offered to enhance the plugin but apparently Matty did not provide the source.

Anyway everyone loves being able to control the Chinese spindle via MACH3.  The only other option is to buy a more expensive VFD like Hitachi amoung several others that have implemented Modbus per the published standards.

Thanks

Russ


Title: Re: Huanyang VFD controller plugin
Post by: Cmdr114 on February 23, 2011, 12:18:55 PM
Dave,
As one of your customers it would be good if you supported this VFD in MSM.
As the cost of these spindles and VFD make all the effort worthwhile.
Mine appears to be running very well in the tests I have been doing although I have yet to use it on a real job.
As Russ has said Matty did a good job of getting this plug-in working so its all thanks to him.
John


Title: Re: Huanyang VFD controller plugin
Post by: DaveCVI on February 23, 2011, 01:01:13 PM
Hi,

From reading the short plug-in manual, It is not clear to me what the the real situation is. The manual says something along the lines of "the plug-in should update dro 39" ... and then it goes on to say that this doesn't work on the author's system.  ???

w/o access to the plug-in source, there is no way to see what the real issue could be. That leaves "poking at the plug-in as a black box" to see how it reacts - usually a frustrating approach.  Alas, I can't even do much that way as I don't have a Huanyang VFD.

Can someone point me to an English version of the Huanyang manual?
I have another odd Chinese VFD, and while I know this has to be a real long shot, I'd like to compare the Huanyang comm sequences to my VFD manual....

If the plug-in is updating a user space DRO (as I think I read somewhere - please excuse me for not having read all the posts in this thread), then it is easy for one to customize MSM to use the plug-ins user DRO instead of DRO 39.
That I can help with if someone wants to do that.

Dave


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 23, 2011, 01:29:12 PM
DaveCVI,

I have an english version of the Huanyang VFD manual at home.  Tonight when I get home from work I will upload the PDF.  It is posted someone on the forum either here or on CNCzone but I will save you the trouble if someone else does not beat me to it today.

Yes, we certainly understand your challenge as well as ours.  Without the plugin source we can not actually have it modified to add other fuctions, etc.  Matty did an amazing job on the plugin and it really does work.  If you have worked with Modbus you will quickly understand what they did on the implementation and how they did not apparently follow the standard.  Matty basically took all this information and would send the messages to the VFD and read information from the VFD using the information in the manual on how to format commands.  Normally this is accomplished using Modbus and a Brain or two to pull the data requested and send commands to the VFD.

As John said this is a very popular VFD because it is often bundled with the air cooled or water cooled spindles which have become so popular.  The big draw is they do not sound like the engine on a 747 aircraft. LOL


Maybe Matty Zee if pop into the forum and comment.  Thanks


Russ



Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 23, 2011, 04:41:21 PM
DaveCVI,

Just got home and found the Hunyang VFD manual but it is like 16M.  I do not have a website to host it do you have someplace I can upload it or something.  I can ask a friend of mine who I think might have a hosting site.  This is the latest manual which is much better than the earlier versions it has all the details.

Russ
rdlarson@wowway.com


Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on February 23, 2011, 04:54:31 PM
There is a quite recent version  of the manual here: http://www.jinlantrade.com/ebay/invertermanual.pdf

Regards
Dave M


Title: Re: Huanyang VFD controller plugin
Post by: DaveCVI on February 23, 2011, 05:36:09 PM
Hi,

DMBGO: thanks, I'll look at that.

CNCMAN172: If your copy is the same as the link DMBGO posted, I can get it from his link. Otherwise, if you want and you can can email it, I should be able to recv it (my email accounts have large size limits).

Dave




Title: Re: Huanyang VFD controller plugin
Post by: DMBGO on February 23, 2011, 06:11:07 PM
I have about 6 versions of this manual, most are missing the last section with the diagnostic error codes, this one is the most recent, and is the only one that is actually from Huanyang
Cheers
Dave M


Title: Re: Huanyang VFD controller plugin
Post by: cncman172 on February 23, 2011, 06:11:19 PM
DaveCVI,

That is the same version I have as well.  It is very current and is the best version I have seen on the Huanyang VFD.  If you need the older version I can send that if required.  Thanks

Russ


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on March 02, 2011, 04:11:50 PM
Well I found my problem with stepper stalling on Z axis.  Turns out it has nothing to do with VFD or noise as I suspected.  I'm still working on it but it has to do with motor settings.
The VFD has been working great but I have another issue.
I added proximity sensor to the top of my QC spindle  on a series 1 BP mill.  In Mach I have pulley #1 set up for 500 - 5200 rpm with varispeed setting sitting at 3300rpm.  The issue is when I switch to LO gear and spindle pulley #2 (50-499rpm) the index becomes 1/9th of actual index.  Mach just drives the motor at rpm of pulley 2 and uses "ratio" to display new rpm.  So the motor spins at 50 to 499 and the spindle is at 1/9th of that.
Is there a way to setup Mach to drive motor 0 to 100% in LO gear instead of 0 to 10% ?  Or is this a limitation of the plugin?
It seems to me that when speed is set for LO gear range mach should rescale according to the ratio in the pulley setup.  Maybe it does and instead the VFD pulgin is not using the correct data?
Any input is appreciated.

Thanks


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on March 07, 2011, 07:40:10 AM
Hi Guys,
The parts have arrived and I finally got around to putting them into the VFD. The good news, no smoke!
The parts were the Max485 chip, the opto-isolated IGBT driver, a 1N5408 diode, two 1N4746A zener diodes, and the IGBT.   
I also replaced the solid capacitor wires with larger stranded wires to avoid the fatigued breakages that Sinij kot experienced.

With the Max485 chip installed I found that the plugin works a treat, I had no major issues setting it up. I haven't played with the DRO's yet but can set the direction and speed with M3,M4 commands and stop it with M5.

I haven't installed a brake resistor yet, but did probe the connection between the control board and the power board on pins 15 and 19. With the right setup I can see the signal change when the DC bus voltage increases to 370V while decelerating.
The change only happens on the quickest deceleration setting (0.1sec) and only for a short time due to the low spindle inertia. You can hear the drive go into coast stop when the voltage reaches 370V.
I'll have more to report when I fit a brake resistor.

I think the resistor pair R8a,b and the relay K1 were meant to be in rush protection for the capacitor bank, but it should have been inline between the bridge and the positive side of the capacitors to be effective. That's why the relay has been hard wired to be energized all the time. To get around this error the have probably used high ESR capacitors in the bank.

Here are some pics of the component installed. All except the opto which I put in after the pics.
I have also amended the schematic buy putting a part number with the diode D1.

pic1 - max485 chip installed
pic2 - zener diodes installed on outer legs of IGBT, center connection raised away from the board for isolation
pic3 - IGBT installed
pic4 - side view of IGBT installed don the heat sink

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on March 07, 2011, 07:55:02 AM
Here are some more pics, and the PDF

pic1 - new capacitor wires
pic2 - new silicone heat sink pads
pic3 - Installed the missing 10way IDC header for probing signals
PDF1 - Updated circuit diagram.

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on March 15, 2011, 09:37:13 AM
Just a quick note,
The RS Components part number for the missing control board relay (either GDQ1 or GDQ2) is 5330845. The manufactures part number is PCH-124D2H and they are made by Tyco Electronics.
Cost is about $4 AU plus shipping
http://australia.rs-online.com/web/search/searchBrowseAction.html?method=searchProducts&searchTerm=5330845 (http://australia.rs-online.com/web/search/searchBrowseAction.html?method=searchProducts&searchTerm=5330845)

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: sebba on March 24, 2011, 08:08:12 AM
hello,

I'm new in this domain and I bought a 1.5kw water-cooled metal spindle + vfd from china.
The VFD is a Fuling DZB200B model (2.2kw).

Is it possible to control it with this plugin? 

Thanks



Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on March 24, 2011, 09:30:28 AM
Hi Sebba,
I had a quick glance of the RTU protocal for both the Huanyang and Fuling VFD's.

The Huanyang protocal seams to include a length byte between the CMD and DATA bytes that the Fuling does not have in it's RTU protocal.
I seam to remember that the Huanyang does not us true MODBUS protocal and that's why this plugin was written.

The Fuling might be able to use the included Mach spindle controls, but that I can't help you with.
Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: sebba on March 24, 2011, 02:00:46 PM
hello majorstrain, and thank you for your fast reply.

I 'm starting to understand now, I'll try to learn more about modbus. Thanks


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on March 24, 2011, 11:08:18 PM
Hi Sebba,
I should have added that there is no harm in trying the plugin. It may just work.
Good luck.
Phil


Title: Re: Huanyang VFD controller plugin
Post by: sebba on March 25, 2011, 01:50:27 AM
that I supposed, too, but I think should be "rewrite" to read the corresponding Fuling's parameters for PD001 and PD002 which are F0.01 and F0.03.
I think this could be the reason for this plugin not working with Fuling inverter. Maybe a future release will work with Fulings, too


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on April 01, 2011, 04:02:37 AM
Looking good Phil

I'll be very interested in how you go with the braking resistor if you end up doing it.

Sebba, Phil is correct in saying the plugin was written specifically for the Huanyang (by Matty Zee) as it has its own non compliant (to true Modbus) way of communicating and this is the work around.

One thing that you may come across with the plugin is that if it looses comms with the VFD for a significcant time (I believe it makes 3 attempts) it will issue an estop. On my setup I have had this happen after running a lengthy bit of code (Lithophane) and it has been unable to get the VFD to recognise a stop code. In this case the spindle is still running and the machine is in estop. The only way to re-establish comms is to exit Mach and re enter however I would strongly suggest you configure the VFD to still accept the stop button on the keypad so you can manually stop the VFD if this occurs.

Its a rare occurance on my setup but has happened so word to the wise. I might try and look into the code to see if the comms error recovery can be imprioved but its not something I'm working on or have expertise in so no promises that it will happen.

On re starting mach manualy issue a M5 first otherwise it will not do a M3 or M4 (thinks its still running even though it is in fact stopped)

Aside from these minor incovieniances the plugin has worrk very well for me.


Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on April 04, 2011, 10:31:37 AM
Hi Sebba,
Sorry I didn't get back to you, I've been a bit busy and sick at the same time.
You might want to check out this thread that I came across tonight.
http://www.machsupport.com/forum/index.php/topic,17192.0.html (http://www.machsupport.com/forum/index.php/topic,17192.0.html)
It deals with controlling a VFD through Modbus and Brains. I thinks it will be what you are looking for.

Mark,
The braking does work but not as I expected it to.
 
I have a Danfoss VFD on my Bridgeport and with the brake resistor enabled it improves the deceleration considerably from the moment it starts slowing down.

With the brake resistor enabled on the Huanyang and the deceleration time set to the minimum 0.1sec (calculated from 50Hz I think) the slow down rate is not a whole lot different to NOT having it enabled.
The resistor is not used to dump energy until the bus voltage exceeds the max of about 375VDC (don't quote me on that but it's close) which is in the last 10% or so of wind down.
The deceleration time from 24000 rpm (400hz) with a 6mm end mill in the collet is around 5 seconds. Nothing like the setting of 0.8 seconds that the setting implies.  ::)

So with the deceleration set to 0.1sec and the resistor NOT plugged in, the VFD lets go of the spindle (coast stop) when the bus voltage gets too high in that last 10%.
With the resistor plugged in you do get an increased deceleration over normal but only in that last 10% and only till the bus voltage drops below the maximum again.

In summary,
I think that my 2.2kw high speed spindle does not have enough inertia to make any use of the breaking function with an external resistor attached.
You can reduce the deceleration time and get some improvement of deceleration without a resistor. If you drop it too much and the bus voltage goes too high the VFD will just disconnect from the spindle until the bus voltage drops again. (as it should)

If I used the Huanyang on the Bridgeport with it's increased inertia it may work as expected, but that is 380V 3 phase and the Huanyang is only 240V rated.

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: sebba on April 05, 2011, 11:31:12 AM
thanks Phil, I have to dig from now! :)


Title: Re: Huanyang VFD controller plugin
Post by: DrLove on April 09, 2011, 10:26:55 AM
...

The braking does work but not as I expected it to.
 
I have a Danfoss VFD on my Bridgeport and with the brake resistor enabled it improves the deceleration considerably from the moment it starts slowing down.

With the brake resistor enabled on the Huanyang and the deceleration time set to the minimum 0.1sec (calculated from 50Hz I think) the slow down rate is not a whole lot different to NOT having it enabled.
The resistor is not used to dump energy until the bus voltage exceeds the max of about 375VDC (don't quote me on that but it's close) which is in the last 10% or so of wind down.
The deceleration time from 24000 rpm (400hz) with a 6mm end mill in the collet is around 5 seconds. Nothing like the setting of 0.8 seconds that the setting implies.  ::)

So with the deceleration set to 0.1sec and the resistor NOT plugged in, the VFD lets go of the spindle (coast stop) when the bus voltage gets too high in that last 10%.
With the resistor plugged in you do get an increased deceleration over normal but only in that last 10% and only till the bus voltage drops below the maximum again.

In summary,
I think that my 2.2kw high speed spindle does not have enough inertia to make any use of the breaking function with an external resistor attached.
You can reduce the deceleration time and get some improvement of deceleration without a resistor. If you drop it too much and the bus voltage goes too high the VFD will just disconnect from the spindle until the bus voltage drops again. (as it should)

If I used the Huanyang on the Bridgeport with it's increased inertia it may work as expected, but that is 380V 3 phase and the Huanyang is only 240V rated.

Cheers,
Phil


Hi.

Good work w/ the implementing of the breaking resistor!!

So you mean that I could set my deceleration time to the lowest (0.1) even w/o the resistor and the VFD will be ok w/ it? I don't know what I use today but stop time from 24000rpm is like 12 sec or more.

Any one know what would be a safe acceleration time for the Huanyang VFD w/ 2.2 kw water cooled spindle?

Best regards L.


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on April 10, 2011, 06:43:36 AM
G'day L,
Yep you can decrease the braking time even without a resistor or associated circuitry. It you go too far the VFD will just let go of controlling the spindle speed until the DC bus voltage level drops again. You can hear when this happens.
If you increase the acceleration too much it will just tell you with an over current warning on ramp-up. Should be no risk of damage, just back off the settings until everything is happy again.

On a sadder note, :'( my VFD has fallen to the fabled over-voltage error on startup >:D. Ran great for a 3hr operation but powering up after a 3 day layover I get the error.
When I reset to defaults, my max current is set to 1.5amps and the error still remains.
I'm working on the issue now, and as a true glutton for punishment I'll fork out another $150 for a new one and have a unit I can compare voltages with. I think it will be a hardware fault, well see. If not, I hope they didn't lock the code on the processor, I may be able to read the from good and transfer to the bad.

I won't bother fitting the braking circuitry to the new one, I don't think it is worth it.

Just a quick note. This braking set-up has nothing to do with DC braking. It can be confusing. DC braking is a voltage applied to the motor when it is stopped or very nearly so to hold the motor in one position. ie not able to turn.
If you do that for too long the motor will generate a lot of heat.

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: rhtuttle on April 26, 2011, 04:44:02 PM
I ordered one of these last week.  First off, let me say that I am electronically challenged.  The Ebay site said that the VFD was modbus compliant.  Does anyone know if they have fixed this or if they just mean that you can communicate over the RS45? 

It sounds as if these are pretty hastily put together and I might be spending a lot of time seeking help.  I have read most of this thread and some of the other ones on cheap chinese spindles but it is all I can justify spending on an already too expensive hobby.

Hope I don't have to bug you guys too much.


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on April 27, 2011, 09:59:45 AM
Hi,

From reading the short plug-in manual, It is not clear to me what the the real situation is. The manual says something along the lines of "the plug-in should update dro 39" ... and then it goes on to say that this doesn't work on the author's system.  ???

w/o access to the plug-in source, there is no way to see what the real issue could be. That leaves "poking at the plug-in as a black box" to see how it reacts - usually a frustrating approach.  Alas, I can't even do much that way as I don't have a Huanyang VFD.

Can someone point me to an English version of the Huanyang manual?
I have another odd Chinese VFD, and while I know this has to be a real long shot, I'd like to compare the Huanyang comm sequences to my VFD manual....

If the plug-in is updating a user space DRO (as I think I read somewhere - please excuse me for not having read all the posts in this thread), then it is easy for one to customize MSM to use the plug-ins user DRO instead of DRO 39.
That I can help with if someone wants to do that.

Dave


I've been having issues with Mach and pulley set up / reverse / spindle calibration.  Everything was working o.k. until I decided to readjust my pulley set up this was with R3.043.022  I ended up upgrading to the R3.043.035 development version and now the RPM DRO is not working correctly.
If I have both checkboxes selected for Spindle Speed DRO, I get a zero rpm reported, if the box on the right is unchecked I get requested RPM repeated but not actual rpm.
I think what happened is during the upgrade to R3.043.035 the screen set was replaced.  It seems that plugin is overwriting the RPM DRO, how do I make this DRO display actual speed from index sensor?  If I uncheck both boxes I still get zero I believe, I'll double check that.

Thanks

BTW did anyone actually tried contacting MattyZee and got a response "No, I will not release source code" or was there no response at all?


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on April 27, 2011, 10:02:07 AM
I ordered one of these last week.  First off, let me say that I am electronically challenged.  The Ebay site said that the VFD was modbus compliant.  Does anyone know if they have fixed this or if they just mean that you can communicate over the RS45? 

It sounds as if these are pretty hastily put together and I might be spending a lot of time seeking help.  I have read most of this thread and some of the other ones on cheap chinese spindles but it is all I can justify spending on an already too expensive hobby.

Hope I don't have to bug you guys too much.

Did you mean communicate over RJ45 or RS485?
The answer is, it can communicate over RS485 but the ModBus protocol is not standard.  There is no RJ45 connector on this drive.


Title: Re: Huanyang VFD controller plugin
Post by: DaveCVI on May 01, 2011, 12:35:05 PM
Hi,

I've received some more information about the DRO 39 situation to pass along.

First, I'm not sure this helps, but the problem is not unique to the Huanyang plug-in.   ;)

With both the Huanyang VFD plug-in and the VIstaCNC tach plug-in, no index pulses appear on any input pin to mach. Hence Mach sets the value of DRO 39 to 0. Further, DRO 39 is "special" in that it is normally (almost always) is set by Mach - so if the plug-ins attempt to update the DRO from plug-in code, Mach will often overwrite the value the plug-in wrote.

Which code (mach or plug-in) will be the last to update each time thru the mach 1/10 sec refresh loop, is indeterminate (I'm told mach runs this loop as as a timing race condition). This is also why some people can see the Huangyang plug-in work with the 1024.set screen but not with MSM and (Some other screen sets) - the way mach fires of threads internally and hence when they get run within this race condition are different between the screen sets.

There is a way for a plug-in to take over DRO 39 and update it - however, currently, a plug-in which attempts to do so must be a full motion plug-in - i.e. it must be handling all motion for mach (otherwise mach's motion code, including the code that updates DRO 39) is still being run.

Neither the Huanyang VFD plug-in or the VistaCNC tach plug-ins are "full motion" plug-ins. Therefore they are unable to update DRO 39.

The requirement that only a full motion plug-in can update DRO 39 may change in a future version of mach, but that ability does not exist in mach as of today.

To muddy the waters a bit more, it may have been possible for a non-full motion plug-in to update DRO 39 with some older versions of mach (it changed when art did some changes to how the mach driver determines timing) - this is likely the reason that the plug-in authors think they have seen it work in the past.

In any case the mach versions where that may be possible are not mach versions that can support MSM.

Until Mach is revised and a change makes it into a mach release, the only option is to have the plug-in update a user space DRO # and for the user to edit MSM to change the RPM DRO # from 39 to that #.

Some "RPM plug-ins" already offer the ability to update an user space DRO instead of DRO 39.

Because a) different plug-ins use different alternative user DRO#s, and b) mach does not provide support dynamically altering a screen DRO # at run time, MSM can't automate this for the user.

If you are using a plug-in to derive RPM, then you will need to customize MSM for use with that plug-in.

The good news is that this works fine as this is what several Huanyang plug-in users have successfully done to integrate MSM and the Huanyang plug-in.

Dave

   


Title: Re: Huanyang VFD controller plugin
Post by: Sinij kot on May 02, 2011, 09:18:38 AM
Dave, that's good info.

I couldn't wait any longer to make this drive work as i needed so I got a replacement Hitachi X200 (fighting with that now  ::) ).

I understand the DRO issue but I also had a problem with reverse check box in the pulley set up not making a difference in spindle rotation.  I posted about this on the yahoo board and was told by Brian that the reverse should be working but the plugin might be what's causing the check box to be ignored.  Brian suspects that when plugin was originally written it was made to work with version of Mach witch had the check box problem, so Matty Zee probably inverted the check box.  Now that the check box issue has been fixed in the development version of Mach, there is a double inversion which makes the check box transparent.  This is not an issue for people not needing the reverse.

Someone is going to get a deal on my Huanyang VFD.  PM me if interested.


Title: Re: Huanyang VFD controller plugin
Post by: rhtuttle on May 02, 2011, 12:20:41 PM
Majorstrain, thanks for posting the pictures.  I just got my cheap VFD today and even though I know nothing about electronics I was able to tell that my 485 chip is missing from all of the info posted here.

would this chip work?
  http://www.wvshare.com/product/MAX485CSA.html

There is nothing in the CN4 holes.  What is supposed to be there?  Do I need it?

PC1 and PC2 have nothing soldered to them.  Is there supposed to be something there?  Do I need them

TIA

RT


Title: Re: Huanyang VFD controller plugin
Post by: majorstrain on May 02, 2011, 08:02:27 PM
Hi RT,
The MAX485 chip looks like it will do the job. PC1 and PC2 are part of the motor drive circuit, you will need to get some chips that are the same as PC3 through to PC6.
I would class it as unfit for its intended service with out them because they are essential components.
It might be worth checking to see if the hassle and cost of getting a replacement VFD is worth it, or just getting the parts and having a friend or local electronics repair shop put them in for you.
You can always have a go at installing them yourself if you like. Sounds like you got one that was assembled a day or two before Chinese New Year.

Cheers,
Phil


Title: Re: Huanyang VFD controller plugin
Post by: rhtuttle on May 04, 2011, 09:57:04 AM
Okay, seller is going to send the chips and I will get someone competant to solder in place. 
Next questions.

What gauge wire is everyone using from the VFD to the spindle, 12 or 14 stranded? 

Shielded, correct?

What method is best for the connections at the spindle? 

TIA

RT



Title: Re: Huanyang VFD controller plugin
Post by: Joemac on June 03, 2011, 12:42:00 PM
I have been playing with my new controller here and am having a lot of fun  with it.  ;) It is the 2.2kw motor and controller. I see the serial chip is missing and I am going to order one and install it. Thanks to everyone who has tracked this all down and done so much for the group.

My question is the RPM readout:

It is only getting up to 12000 or so. Should I be changing PD143 "Motor pole number" and PD144 "Rated motor revolution"? What RPM do these motors actually turn at?

Regards,
-Joemac


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on June 03, 2011, 05:13:36 PM
Hey Joemac

They run up to 24000 rpm and I've verfified mine with a tacho.


Title: Re: Huanyang VFD controller plugin
Post by: Joemac on June 03, 2011, 06:06:22 PM
Hey Joemac

They run up to 24000 rpm and I've verified mine with a tacho.

Thanks for confirming that M...

I have set my PD144 to 30000 and it now reports 24000 at full speed. Fun thing to play with if you have a bit of time.

Regards,
-Joemac


Title: Re: Huanyang VFD controller plugin
Post by: pietvr on June 06, 2011, 01:22:06 AM
Hi

Anybody interested in my Delphi program that runs the Huanyang VFD's without having any alterations done such as chip soldering via the RS584 - F version USB-Serial? It is not a plugin yet, it runs while MAch3 is running to control the spindle.

Let me know and I will post a link to download.

Cheers

Piet


Title: Re: Huanyang VFD controller plugin
Post by: Joemac on June 06, 2011, 12:06:02 PM
Hi

Anybody interested in my Delphi program that runs the Huanyang VFD's without having any alterations done such as chip soldering via the RS584 - F version USB-Serial? It is not a plugin yet, it runs while MAch3 is running to control the spindle.

Let me know and I will post a link to download.

Cheers

Piet

Very very very interested Piet, I appreciate the offer,

Regards,
-Joemac


Title: Re: Huanyang VFD controller plugin
Post by: nadiel on June 06, 2011, 01:18:00 PM
Thanks, Matty Zee for this great plugin. Today we received the order converter, RS-232 to RS-485, the cheapest on ebay, does not need power, I installed the DLL, I put a two-wire shielded cable, 25 m long, (for test) and voila! works perfectly at any speed. My congratulations and thanks again.


Title: Re: Huanyang VFD controller plugin
Post by: pietvr on June 06, 2011, 06:30:19 PM
Hi Joemac

Here are two versions of the software controllers for the USB->RS485 (Ver F) I have written and use to control the spindles on machines I sell.

VFD Controller - EXE is a program that runs the spindle without Mach3 and Controller_VFD - DLL runs the spindle via Mach3 using the M3, M4 and M5 calls together with the S calls for speed setting "M3 S20000".

Both these programs runs spindle speeds between 6000 and 24000RPM

If you want lower than 6000RPM let me know and I will change the program for you to run at lower speeds.

Hope you find it worth the effort.

Piet


Title: Re: Huanyang VFD controller plugin
Post by: Joemac on June 07, 2011, 12:33:04 AM
Hi Joemac

Here are two versions of the software controllers for the USB->RS485 (Ver F) I have written and use to control the spindles on machines I sell.

VFD Controller - EXE is a program that runs the spindle without Mach3 and Controller_VFD - DLL runs the spindle via Mach3 using the M3, M4 and M5 calls together with the S calls for speed setting "M3 S20000".

Both these programs runs spindle speeds between 6000 and 24000RPM

If you want lower than 6000RPM let me know and I will change the program for you to run at lower speeds.

Hope you find it worth the effort.

Piet

Thank you Piet, I have just downloaded the files.

Your previous post indicated no soldering needed, but as I understand in the RS485 chip is missing from my inverter. I was going to order one today but stopped and decided to ask first.

Thanks for you effort on this, I am looking forward to trying it out as soon as I have this missing chip bit sorted out.

Regards,
-Joemac


Title: Re: Huanyang VFD controller plugin
Post by: pietvr on June 07, 2011, 12:40:37 AM
Hi Joemac

Here are two versions of the software controllers for the USB->RS485 (Ver F) I have written and use to control the spindles on machines I sell.

VFD Controller - EXE is a program that runs the spindle without Mach3 and Controller_VFD - DLL runs the spindle via Mach3 using the M3, M4 and M5 calls together with the S calls for speed setting "M3 S20000".

Both these programs runs spindle speeds between 6000 and 24000RPM

If you want lower than 6000RPM let me know and I will change the program for you to run at lower speeds.

Hope you find it worth the effort.

Piet

Thank you Piet, I have just downloaded the files.

Your previous post indicated no soldering needed, but as I understand in the RS485 chip is missing from my inverter. I was going to order one today but stopped and decided to ask first.

Thanks for you effort on this, I am looking forward to trying it out as soon as I have this missing chip bit sorted out.

Regards,
-Joemac

Joe, these should work without the chip soldered in. Some of my VFD has no chips and some has, but it still works. You need the USB->RS485 convertor though.

Just a note to remember that the DLL version works with a screen set I have made where the Stop and Reset buttons are calling script to stop the spindle. Without that the spindle will not stop when you press reset or stop.

Test it with the EXE version before working with DLL

Piet


Title: Re: Huanyang VFD controller plugin
Post by: Joemac on June 08, 2011, 12:31:48 AM
Piet,

No joy, it did not work. I went through the setup for the VFD three times and your diagram for the hookup was bulletproof. Just to make sure I monitored it in a serial port monitoring program and could see your program sending data but nothing coming back.

The missing chip I am talking about is the RS485 chip. I am not sure if you have gone all the way through this discussion... it is quite long. There are other components missing here and there which would not affect communications but surely I must need the 485 chip???

Let me know what you think and I'll give it a try, but think I need the chip myself..

Thanks for the help, I would love to have that little programs running...

Regards,
-Joemac


Title: Re: Huanyang VFD controller plugin
Post by: spiyda on June 17, 2011, 05:46:24 PM
Hi Joemac

Here are two versions of the software controllers for the USB->RS485 (Ver F) I have written and use to control the spindles on machines I sell.

VFD Controller - EXE is a program that runs the spindle without Mach3 and Controller_VFD - DLL runs the spindle via Mach3 using the M3, M4 and M5 calls together with the S calls for speed setting "M3 S20000".

Both these programs runs spindle speeds between 6000 and 24000RPM

If you want lower than 6000RPM let me know and I will change the program for you to run at lower speeds.

Hope you find it worth the effort.

Piet

Piet,

are these controllers suitable for using the VFD to control 1400 and 2800 rpm motors..  (lathe spindle)

in which case I'd want to go down to very low rpm

Chris


Title: Re: Huanyang VFD controller plugin
Post by: jafc76 on June 24, 2011, 04:26:39 AM
I was reading the post about the VFD plugin. It takes long time!!!

I received my VFD and it didn't have the RS485 IC so I had to buy one and solder it, then I was testing Mach3 with the plugin and with a modified screen and I can control the speed and see the RPM and current of the motor.

Until here everything was ok, but now I have the problem that when a limit switch is activated, everything stop less the spindle motor.

I was reading that using the RS485 plugin, the VFD inputs are not working.

How can I stop the spindle whith an e-stop or limit switch?

Thanks in advance


Title: Re: Huanyang VFD controller plugin
Post by: jafc76 on June 24, 2011, 10:36:22 PM
I reply to myself!! :)

Its working well, now I'm using the plugin controlling the speed by RS-485 communication and the inputs to start and stop the spindle with an output of the breakout board that is connected to a relay board.

I use the NO contact of the relay to start and stop the spindle so now it stops with an external e-stop and a limit switch.

I can control the speed and see the RPM and current.

Juan


Title: Re: Huanyang VFD controller plugin
Post by: brazza66 on June 25, 2011, 11:09:00 PM
Hey how is everyone, I brought a 2.2kw vfd/spindle combo from lovehappy-shopping earlier this year to add to my rf45 mill after it's cnc converted
and i have also got a 3ph 2hp motor for my mill that i was hoping to control with the same vfd. I have been using it manualy and it has been
working fine, but recently i decided to get it ready for mach 3 control utilizing the Rf485 port and came across this thread. I opened it up and
it has the 485 chip installed :) but it apears to be missing the components labeled PC1 and PC2 , considering it has been working fine manualy
Does anyone think that this could be a problem without them?
here is an attached picture.
 
 :) Cheers Brayden


Title: Re: Huanyang VFD controller plugin
Post by: jafc76 on June 26, 2011, 05:34:36 AM
I don't have those components and it's working with the RS-485 plugin so no problem.

Juan


Title: Re: Huanyang VFD controller plugin
Post by: robbert on July 27, 2011, 12:33:24 PM
hello dear
  Very much to you, please, please help set up the inverter, it accelerates very slowly, please tell me what setting in charge of typing speed spindle speed?
thanks in advance


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on August 17, 2011, 03:59:03 PM
when do we get a update fore mach3 with the complete control of the vfd in mach3


Title: Re: Huanyang VFD controller plugin
Post by: BulletMaster on August 22, 2011, 02:55:02 AM
got mine working today after soldering the new IC onto the VFD board. Works a treat. Thanks heaps for writing the plugin software. The only thing I can't sort out is the actual RPM display. Also the VFD seems to be reading the RPM incorrectly.


Title: Re: Huanyang VFD controller plugin
Post by: jjj123 on August 31, 2011, 11:19:15 AM
HI, I'm Joe. I was previously using Delta VFDs. Never had a problem with them connecting using RS485. And then last week I got an offer for a Chinese spindle along with a controller at "Hard to believe" price on ebay. The spindle is a 2.2kW water cooled and came with a Huanyang HY02D223B VFD.

Thanks to friends here and at woodworkforums I have set up the VFD and the spindle now works like a charm. But the RS485 comm is starting to make me go bald ??? . My VFD has all the parts (RS485 Chip and the relays n everything. No parts are missing) I could start, stop, increase/decrease speed using Spindle Talker. But somehow the Mach3 Huanyang Plugin just won't connect.

    .net Framework 3.5 is installed
    plugin is installed as per the manual and Mach3 restarted (It is showing the config window but the parameter values are both 99)
    VFD settings are as folows:

    PD001 - 2
    PD002 - 2

    PD163 - 1
    PD164 - 1
    PD165 - 3

Does anyone have a condition similar to this where Spindle Talker works but the plugin wont?

I have another doubt. Maybe I'm wrong but the drive kinda looks "Legit" . I mean It has stickers with the company name and rating and even a hallmark and also came with the latest Huanyang Manual. Most of my friends who had got VFDs from china earlier got them with just a small sticker saying "2.2kW" and most of them had atleast one part missing. So does this mean this is a newer VFD from the same manufacturer with probably a different firmware?

Please Advice!

Joe!  :)


Title: Re: Huanyang VFD controller plugin
Post by: some3 on August 31, 2011, 12:49:28 PM
hi my first post and problem.

I have  2.2kw spindle+vfd and it is connected via usbrs485 adapter to the spindle (as usualy)

spindle starts normali at the rpm that I want but when I want tu stop it it does not stop eaven mhit E stop and I get an error window.


can somebody say something to this .

tnx
(http://)



If I click switch to...    start opens

If I click retry nothing happens the same windows open agen


Title: Re: Huanyang VFD controller plugin
Post by: michel pet on August 31, 2011, 12:58:55 PM
i have the same problem.


Title: Re: Huanyang VFD controller plugin
Post by: some3 on September 01, 2011, 06:14:28 AM
and I forogt my pc also does not want to shut down after this error apers :(


Title: Re: Huanyang VFD controller plugin
Post by: Dan911 on September 09, 2011, 05:48:31 AM
Received my rs-485 converter and was running my spindle through Mach 3 in less than 30 minuets thanks to this thread!!! I came across a few bugs that have to be worked out but spindle on/off and spindle speed works great. Thanks for the great plugin Matty!

Dan


Title: Re: Huanyang VFD controller plugin
Post by: Dan911 on September 10, 2011, 08:25:44 AM
I think I discovered what's causing most of the users of this plugin problems. If your at the point where Mach is communicating( pd001=2 pd002=2) with plugin and problems begin with start of spindle, than go to your ports and pins/ inputs and disable( mainly Estop and limit switches or any active high signal Mach is continually searching for) all for testing.

I think most will find everything working without a glitch and this is where the trouble is. If your at this point post back and we can discuss my work around or a possible fix.

Dan

BTW this is the RS-485 converter I'm using, and it cost less than $6.00

http://www.ebay.com/itm/190539776031?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on September 16, 2011, 10:39:09 AM
Received my rs-485 converter and was running my spindle through Mach 3 in less than 30 minuets thanks to this thread!!! I came across a few bugs that have to be worked out but spindle on/off and spindle speed works great. Thanks for the great plugin Matty!

Dan

Which one did you use and anyone tried this one?
Ebay  280710974429
Nosmo


Title: Re: Huanyang VFD controller plugin
Post by: Dan911 on September 16, 2011, 12:13:00 PM
Which one did you use and anyone tried this one?
Ebay  280710974429
Nosmo
[/quote]

The link is in post, here it is again.

http://www.ebay.com/itm/190539776031?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on September 16, 2011, 01:38:49 PM
I see, that is RS232 though and I am looking for USB-RS485.
Thanks.
N.


Title: Re: Huanyang VFD controller plugin
Post by: Dan911 on September 16, 2011, 02:51:57 PM
Oh sorry, I guess I was lucky to have a serial port on my comp. I think any converter to RS-485 should work like Matty said in the beginning of thread. I suspect the problems some were having with this plugin had nothing to do with which converter they were using or electrical noise.


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on September 24, 2011, 02:04:55 PM
Does anyone that has been monitoring the data able to clarify the functions in the Data string?
The Chinese manual does not appear to show anything on the RS485? I found a one in Word that seems to have errors.
 The main question I have is based  on what I have so far is that the data string consists the following:
1st byte VFD add, 2nd byte read/write/freq func, 3rd byte the data length followed by the actual data bytes, lastly the CRC.
What indicates the individual parameter addressed?
  Nosmo.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on September 24, 2011, 07:04:54 PM
Nosmo you will find it on Page 55 onward

http://www.cnczone.ru/forums/index.php?act=attach&type=post&id=4180


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on September 25, 2011, 10:29:24 AM
Thanks, I have that, but it appears the parameter address does not appear in the command string?
After re-reading and experimenting, it  appears that if using a write, it will apply to either start, stop and freq write?
Nosmo.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on September 25, 2011, 08:25:26 PM
Here ya go


Start CW    01 03 01 01 31 88            (VFD address 01, write control data 03, data length 01. data 01, checksum 31 88)
Start CCW  01 03 01 11 30 44
Stop          01 03 01 08 F1 8E
Set Speed  01 05 02 9C 40 D0 3C         (05 is write frequency control data (2 bytes))  9C 40 Hex =  40000 or 400.00 = 24000rpm



Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on September 26, 2011, 10:21:19 AM
Thanks, but I have that, it is the issue of how the parameter is addressed?
For example the plug in first detects whether PD001 and PD002 is set to 2, by issuing a read of  01 01 02 01 00 CRC  followed by 01 01 02 02 00 CRC.
After some re-reading it appears to be worded poorly. A 01 or 02 in the Function position apparently reads or writes to a Parameter whose address is in the data bytes, 03 & 04 write and read control data.
Or so I interpret it.
Nosmo.
  
  


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on September 26, 2011, 03:32:59 PM
Yep that's it. and yes it is VERY poorly written. took ages to decipher what they were trying to say.
Experimentation found that data of 1-5 all were CCW start commands and 9-D were CW start commands. 8 was stop and it appears that these are the only 3 control datra commands that can be written.

I was going to ask my mate Wayne to add a function to spindle talker that would read and store all the PD values and also restore them from backup but have yet to get around to that.

To read what the current draw is or the actual rpm then a 04 (read control status) is used as shown on page 57.


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on September 26, 2011, 04:37:15 PM
Thanks alot, also what I need is the nature of the VFD reply to parameter read/writes and command writes etc.
Getting there slowly!
Nosmo.


Title: Re: Huanyang VFD controller plugin
Post by: mhasting2004 on September 26, 2011, 05:00:00 PM
You can see the response in spindle talker, in most cases it will reply by repeating with the same info.


Title: Re: Huanyang VFD controller plugin
Post by: bapou on October 05, 2011, 03:38:28 PM
Is it possible to control two Huanyang VFD's out of MACH3?
I would like to drive my normal and a Highspeed spindle.

One way would be to manually switch the RS485 between both spindles... is there a more elegant way?

Thanks
Thom



Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on October 07, 2011, 07:00:11 PM
Does anyone happen to  have the correct VFD response to the plug-in request for the read of  PD001 & PD002, after the plug in sends  01 01 02 01 00 CRC  followed by 01 01 02 02 00 CRC. to the VFD?
Thanks
Nosmo.


Title: Re: Huanyang VFD controller plugin
Post by: SpaceCase on October 20, 2011, 11:46:25 AM
I tried to search with no luck for the answer so I hope by posting this I'll get it figured out.  I was using the plugin but on occasion the spindle would not start then I'd get a pop-up saying the application was unresponsive and there was no way to end it.  It would prompt with a Switch To or Retry but neither one would do anything.  It would lock Mach 3 up and required a reboot.  It would sometimes happen when trying to start the spindle and other times in the middle of the cut.  I disabled the plugin and have had no further issues.  Does anyone have any ideas?


Title: Re: Huanyang VFD controller plugin
Post by: alexd on October 25, 2011, 04:23:55 PM
Went through a lot of pages on this forum and others like cnczone but couldn't find solution.
My problem is following:
1. I'm using 1.5kW VFD connected via 232-485 DIY adaptor to PC running Mach3 with "Huanyang VFD controller plugin" from this thread (many thanks to Matty Zee!!!)
2. I can start spindle from Mach3 clicking "Spindle CW F5" or F5 key
3. I can change spindle speed typing it or clicking + or - in "spindle speed" section.
+++ 4. I cannot stop it clicking on  "Spindle CW F5"
+++ 5. I cannot stop it pushing my red EStop button (hardware).
+++ 6. Spindle doesn't stop at program and.
7. I can stop it only clicking "Reset" (sooftware, in Much3)
+++ 8. I cannot see real RPM in "RPM" field in "Spindle speed" section
 
RS-232 - is native port on motherboard (not USB-232 adaptor). 232-485 adaptor is made by myself using ADM485+ADM232. Checked by oscilloscope - all signals go in right way.
In settings I can see "2" and "2" in PD001 and PD002 fields. "Spindle speed DRO" is checked, "1002" - unchecked at right.


How can I solve +++ items?

thanks,
Alexey


Title: Re: Huanyang VFD controller plugin
Post by: alexd on October 31, 2011, 03:49:18 AM
may be it'll help somebody:

Here you may find working 232-485 adaptor (http://www.vovka.sv19.com/index.php?vs=11&idp=71) . I didn't use LEDs and SPs. So total cost ~2.5$

Sorry to say - I forgot to uncheck "disable spindle", and now I can start/stop/change RPM from mach3. Spindle stops when program ends.
But hardware "EStop" button still doesn't stop spindle. Thinking to make double wire directly to VFD.

Using screen designer (http://www.machsupport.com/MachCustomizeWiki/index.php?title=Screen_Designer) changed "RPM" field's OEM code to 1002 and now I can see in this field real RPM coming from VFD.


Title: Huanyang VFD controller plugin
Post by: jafc76 on October 31, 2011, 04:38:08 AM
You should use an output of the BOB with a relay to start and stop, I explained it in this post.


Title: Re: Huanyang VFD controller plugin
Post by: mikemaat on December 07, 2011, 03:09:48 PM
New member. Got my VFD today. Came with a decent engrish manual complete with error codes. Also had hot glue dabs on the sides of the ribbon connectors to make sure they stayed put. Looks like pretty good quality. I took a picture of my board and it looks like I have the RS485 chip and the relay on my board unlike many other ones. The slot for "CN4" is missing something, but it appears to be missing on every VFD pic ive seen. Will this be an issue for RS485 communication?

Also, I have my computer motherboard, stepper power supply, and stepper drives in a big 24x24x10 control box. Will I have major noise issues mounting the VFD inside it with them, or will some EMI snap on filters take care of that? Id prefer to mount the VFD in the box and keep everything together if I can do so without too much noise. Gonna have to rearrange the box a bit though. Pics attached..

(http://i.imgur.com/E7NyB.jpg)
(http://i.imgur.com/64UCH.jpg)
(http://i.imgur.com/8C0IZ.jpg)
(http://i.imgur.com/TMY8O.jpg)


Title: Re: Huanyang VFD controller plugin
Post by: Matty Zee on December 08, 2011, 06:13:56 AM
From my experience, the EMI from these VFD's are transmitted along the wires. Physical separation has little effect. Make sure you have a decent toroidal ferrite on the motor wires. I wouldn't rely on those clip-on ones but i think some people have got them to work. I think you should be fine putting it on the same box. Heat/thermal issues may be a different story.
Again, this is just form my experience....

Cheers
Matt


Title: Re: Huanyang VFD controller plugin
Post by: mikemaat on December 08, 2011, 12:02:02 PM
Sounds good, thanks. Im waiting on the RS485 converter, then ill get this stuff mounted and try it out. Will post up here on how I make out.

Also, is that missing item on CN4 an issue or is that normal? The rest of the board looks complete.


Title: Re: Huanyang VFD controller plugin
Post by: EVguru on March 29, 2012, 11:03:04 AM
I think the resistor pair R8a,b and the relay K1 were meant to be in rush protection for the capacitor bank, but it should have been inline between the bridge and the positive side of the capacitors to be effective. That's why the relay has been hard wired to be energized all the time. To get around this error the have probably used high ESR capacitors in the bank.

Just been reading through this thread as I've been looking into adding the braking components.

My take on the relay and resistors is that they're part of a shorted power stage detect. If one of the half bridges has shorted out, then the resistors limit the fault current.


Title: Re: Huanyang VFD controller plugin
Post by: cncezee on June 07, 2012, 07:13:51 AM

Has anyone managed to get this VFD to stop correctly from within Mach3

If you could post the solution it would be greatly appreciated

Roger



Title: Re: Huanyang VFD controller plugin
Post by: cncezee on June 08, 2012, 06:13:10 AM
Ooops!!!
just uncheck  stop spindle box!!

all working now


Title: Re: Huanyang VFD controller plugin
Post by: Donald Lawler on July 20, 2012, 09:40:03 AM
I'm sorry I'm new to this but I hsve aHuanyang Inverter #HY03D023b this does not have an rs485 connector. I was wondering if you could tell me how to wire it direct. thanks Don


Title: Re: Huanyang VFD controller plugin
Post by: EVguru on July 20, 2012, 10:40:17 AM
As far as I'm aware they ALL have RS485 connections, they're the RS+ and RS- terminals.

Were you looking for some kind of special connector? There are no standards for RS485 connections (or far too many depending on how you look at it).

What may be an issue is that they often don't have the RS485 driver chip (surface mount) fitted and you'd need to solder one in.

I had to add optocouplers for the auxillary outputs (part of an inlerlock system on my cylindrical grinder).

For those who've been thinking about adding the braking components; I've got my lathe set to 0.1s decelleration time but with PD118 (Over-voltage Stall Protection) set active (0). That gives me a pretty fast stop even from high motor rpm in top gears. You can hear the decelleration cutting in and out as the VFD limits the bus voltage.


Title: Re: Huanyang VFD controller plugin
Post by: Donald Lawler on July 20, 2012, 11:09:00 AM
OK that helps it has the rs+ and rs-. I was looking for the Ethernet plug connection. Guess I will have to do a trial and error run to see which wires are the send and receive from the Ethernet connection from the CPU. Thanks Don 


Title: Re: Huanyang VFD controller plugin
Post by: Donald Lawler on July 20, 2012, 10:49:28 PM
Hello all.
I down loaded the plugin to a flash drive then copied it to the cpu that runs my cnc with 2002 windows XP. 
Then when I open Mach 3 I get a notice that reads [PluginDLL Defective Reload].
Will this run on 2002 windows XP? Oh I did try to open it on my lap top [that I down load it on first
and it opens fine.It has windows 7 do I need to up date to windows 7 or look for another cause? I also turned off the fire
wall that did not help. Thanks for any help Don


Title: Re: Huanyang VFD controller plugin
Post by: jshonk on September 18, 2012, 07:57:09 PM
Huanyang VFD Mach3 Plugin
 It works good untill a tool change then I GET A FAULT (This action cannot complete because the other program is busy. Choose Switch to to actuate the busy program and correct the problem.) The only way it will shut down is to unplug the USB to rs485 cable.
I cannot figure out how to fix this.


Title: Re: Huanyang VFD controller plugin
Post by: jshonk on September 25, 2012, 11:12:31 AM
The Huanyang VFD controller plugin is working Mach 3 sees it and when I try to run a program it will start to work The spindle will run at the right rpm and it will start to cut. When I get to the tool change M05 it stops Mach 3 NOT THE SPINDLE. I check and Mach3 doesn't see the controller any more (99 and 99). In order to get it to go I have to turn off Mach3 unplug the usb to the controller and start all over. Can this be fixed?


Title: Re: Huanyang VFD controller plugin
Post by: jshonk on October 05, 2012, 11:09:31 AM
I don't know how to work this post thing. But I did get this problem fixed I dumped the whole thing and added extunnal controlls. All is good


Title: Re: Huanyang VFD controller plugin
Post by: shobley on October 30, 2012, 06:16:47 AM
Wow, what a long thread.

Just installed my new spindle, and checked the board for the 485 chip. Everything seems good, but the one thing I can't find is which USB <-> RS485 board I should buy.

There are plenty of examples of the ones I shouldn't  ;D

If I read correctly I want a board that handles the switching of receive to transmit automatically, as the plugin keeps RTS high the whole time - is this correct?
Nearly all the boards I look at seem to have RTS driven switching, so these won't work...?
E.g. https://www.sparkfun.com/products/9822

Slight confused, any guidance on making a purchase in the US greatly appreciated.

Thanks,
Steve


Title: Re: Huanyang VFD controller plugin
Post by: EVguru on October 30, 2012, 06:28:43 AM
I've used these on work projects;

Trouble free and isolated too at a sensible price.

http://kksystems.com/english/html_files/product_pages/usb485.htm



Title: Re: Huanyang VFD controller plugin
Post by: shobley on October 30, 2012, 06:36:20 AM
Thanks for the reply - that's an overseas (UK) company* and I'd really like to deal with a US supplier if possible.

Steve

*Ironically I am British - but I've been living in the midwest for 15 years.


Title: Re: Huanyang VFD controller plugin
Post by: shobley on November 13, 2012, 08:06:02 PM
OK so I just hooked up the spindle to the plugin - it seems to be working (kind of) when I load a toolpath and run it spins up and then spins down when I hit E-stop.
Front panel does not function while under Mach3 control - but I suppose that's to be expected.

The only problem is the speed of the spindle is too low - would this now be under the control of the G-code program?
Or is there a manual way of controlling the RPM via the Mach3 interface?

Thanks,
Steve


Title: Re: Huanyang VFD controller plugin
Post by: royaumedeole on November 14, 2012, 05:56:00 AM
Hi shobley,

maybe you're facing the same problems as I.
That's why i wrote my own plugin. (subject: A new Huanyang VFD plugin)
Some  people have tested it and it seems to work pretty well.

Maybe it could solve your problem dealing with bad RPM.

Seb





Title: Re: Huanyang VFD controller plugin
Post by: foush1982 on November 18, 2012, 07:13:09 PM
pls. send anew link for bay the  RS485 communication port.
thank you


Title: Re: Huanyang VFD controller plugin
Post by: Wasteofspace on January 19, 2013, 09:12:43 PM
I obviously haven't read all the posts in this section but wonder if anyone can help me?

I recently bought a Huanyang HY03D023B inverter, which is a 220v input 3.0 KW output VFD.

I could not get it to work, and told the supplier in China that it was a dud. After many days of measuring and them assuring me that it was a minor problem that they could fix easily, they finally said that they couldn't fix it and that they would send me a new inverter (I have to pay another $35 freight >:(.

The thing that is wrong with it seems to be nothing at all on the output side. It measures very high resistance between all terminals:
The resistance measurements are:
U-V = 4.7 Megaohms         (4M7)
U-W = 12.44 Megaohms     (12M44)
V-W = 4.82 Megaohms         (4M82)

and then, when power is applied:

Measurements across the U-V terminals was 10.6v, Then after pressing start it was 11.1 then after pressing stop it was 10v

Measurements across the U-W terminals was 4.3v, Then after pressing start it was 4.0 then after pressing stop it was 2.6v

Measurements across the V-W terminals was 8.5v, Then after pressing start it was 8.3 then after pressing stop it was 10.6v

As soon as I press the start button I get a fault dL which according to the manual is an output short circuit.
Their suggested course of action for this fault is:
1) Check whether the connection wire of the motor has a short circuit. (The motor is not connected)
2) Check whether the insulation of the output wires is good. (No output wires attached)
3) Send for repair.

So, does anyone have a circuit diagram for this inverter, or better still can anyone advise me what component has failed?

The manual also says that the VFD is fuse protected. I cannot find a fuse anywhere in the box.

Your replies would be much appreciated.


Title: Re: Huanyang VFD controller plugin
Post by: Cnc-Prosjekt on January 25, 2013, 03:01:27 PM
Hello! I use this plugin file HuanyangVFD.dll but will not lower a 7200 RPM
I write s 7200 or lower then the RPM not lower a 7200 RMD what's wrong


Title: Re: Huanyang VFD controller plugin
Post by: Daywalker2003 on February 16, 2013, 03:07:52 PM
Hello,

I have the plugin here on the internet and wanted to try this happy.I have therefore bought a USB to RS485 adapter, installed, configured and tested plugin.
But as soon as I press spindle start or stop, or change the speed, freezes my Mach3 a briefly.

Have been various attempts, but no success.

Mach3 version:
Version R3.043.066
With German Schmidt screen.

Would be grateful for any tip.

greeting
Udo

P.S. Sorry, my English is bad, that's why a translator = /


Title: Re: Huanyang VFD controller plugin
Post by: royaumedeole on February 16, 2013, 05:00:01 PM
@Daywalker2003,

May have some explanation, but not sure!

This plugin is using .net framework. This framework consumes some CPu and  may lead to brief freeze on 'small' (in term of power) computer.
I have written another plugin, in C++, which aims at consuming less CPU.

Maybe you could try it...you'll find the thread  by looking for "A new Huanyang VFD plugin" on this forum.





Title: Re: Huanyang VFD controller plugin
Post by: uhmgawa on February 27, 2013, 04:41:24 PM
If not, I hope they didn't lock the code on the processor, I may be able to read the from good and transfer to the bad.

Has anyone determined what uC/dsp type for U7?  Your post suggests this may be
known.  I doubt the code would be unlocked however.


Title: Re: Huanyang VFD controller plugin
Post by: MBR89 on April 13, 2013, 10:43:33 AM
Hi,

we're using this converter:

DELOCK Adapter 1 x USB 2.0 zu RS-422/485 Seriellen

http://www.delock.de/produkte/G_62406/dokumente.html?setLanguage=en (http://www.delock.de/produkte/G_62406/dokumente.html?setLanguage=en)

For troubleshooting we're using this tool:

Modbus Tester
http://www.modbus.pl/node/10

The HY01D523B responses with "00"

And the plugin won't work.



Title: Re: Huanyang VFD controller plugin
Post by: MBR89 on April 14, 2013, 05:47:05 AM
Microsoft Windows 7 Professional (32bit)

Mach3 R3.043.066


Title: Re: Huanyang VFD controller plugin
Post by: MBR89 on April 14, 2013, 05:51:47 AM
ftser2k.sys

FTDI Ltd.
2.08.14 built by: WinDDK


ftcserco.dll

FTDI Ltd.
2.01.03.1 built by: WinDDK


ftserui2.dll

FTDI Ltd.
2.08.14 built by: WinDDK


Title: Re: Huanyang VFD controller plugin
Post by: MBR89 on April 14, 2013, 07:43:27 AM
Hi Joemac

Here are two versions of the software controllers for the USB->RS485 (Ver F) I have written and use to control the spindles on machines I sell.

VFD Controller - EXE is a program that runs the spindle without Mach3 and Controller_VFD - DLL runs the spindle via Mach3 using the M3, M4 and M5 calls together with the S calls for speed setting "M3 S20000".

Both these programs runs spindle speeds between 6000 and 24000RPM

If you want lower than 6000RPM let me know and I will change the program for you to run at lower speeds.

Hope you find it worth the effort.

Piet

Thank you Piet, I have just downloaded the files.

Your previous post indicated no soldering needed, but as I understand in the RS485 chip is missing from my inverter. I was going to order one today but stopped and decided to ask first.

Thanks for you effort on this, I am looking forward to trying it out as soon as I have this missing chip bit sorted out.

Regards,
-Joemac

Also won't work for us.


Title: Re: Huanyang VFD controller plugin
Post by: MBR89 on April 14, 2013, 08:12:54 AM


http://www.ftdichip.com/Products/ICs/FT232R.htm (http://www.ftdichip.com/Products/ICs/FT232R.htm)

Key Hardware Features:
Auto transmit buffer control for RS485 applications.

http://www.nxp.com/documents/data_sheet/74HC_HCT10_Q100.pdf

http://pdf1.alldatasheet.com/datasheet-pdf/view/80659/SIPEX/SP485REN.html


Title: Re: Huanyang VFD controller plugin
Post by: cleyte on April 15, 2013, 12:06:00 PM
Mach3 latest version, Ethernet Smooth Stepper, Hexin USB - RS485 adapter, and Huanyang Plugin by royaumedeole

I have the plugin working but I suspect EMI is causing all of my problems.  I have different levels of reliability and unpredictability when a change to wiring and EMI protection is done.  I have given up and plan to use the spindle manually until I purchase a new USB-RS485 converter

A contributor on the Mechmate forum has done extensive testing with a similar adapter but to no avail.   All of his problems were solved with the purchase of an industrial adapter with opto-isolation.  See here:  http://www.mechmate.com/forums/attachment.php?attachmentid=11042&d=1295434719



Title: Re: Huanyang VFD controller plugin
Post by: Damokkk on April 17, 2013, 07:06:21 AM
Hi All,

I too was having major issues with the same setup until I rewired my spindle with shielded cable.  I also earthed everything back to a single star point and now I could not be happier.  I was getting false stops and Mach3 would hang as soon as the spindle started.  I shielded both ends of the spindle cable and added an earth to the spindle, PC and controller box in a star configuration.  I also cut some small ferrite cores of an old VGA cable and added one to each end of the RS 485 cable.  Please also ensure that you also use a shielded twisted 2 core cable for the RS 485.  I also added an EMI filter on the input of the VFD which connects in series between the 240v outlet (Aus) and the mains plug on the VFD.  I completed all of this at the one time, so I can't be sure which part was the most effective but it is now a totally stable and usable machine.  Please also don't forget to uncheck the 'Disable Spindle Relay' checkbox if you haven't done so already as it will prevent some of the spindle M commands from operating.

Regards,
Damon


Title: Re: Huanyang VFD controller plugin
Post by: MBR89 on April 17, 2013, 08:29:29 AM
I thing i just noticed and i have no idea if it makes a differece. Your adapter similat to mine is the G version, mine is the F version. I wonder if this affects the ADDC TopNotch mentioned. I haven't heard back from him in a while.
http://www.hexin-technology.com/USB_to_Serial_Converters-Subcatalog-84.html

Try your other one that Michel has working. Mut as Mark suggested check that Maxim chip is pressed into the socket properly.

I'm gonna buy this one ...

http://www.hexin-technology.com/USB_2.0_To_RS-485_Converter-Product-255.html


Title: Re: Huanyang VFD controller plugin
Post by: MBR89 on April 17, 2013, 02:31:11 PM
T/R- to RS-
T/R+ to RS+

... and it finally worked  ;D


Title: Re: Huanyang VFD controller plugin
Post by: cleyte on April 17, 2013, 10:11:19 PM
It appears that my setup has stabilized.   It appears that the noise being generated was causing problems for the Dell N7010 laptop that I was using.  My daughter has just given up on a Compaq Presario R3000.  I did a complete format and installed XP Pro and Mach3.  Fired it up and have no issues since.  Go figure!!!



Title: Re: Huanyang VFD controller plugin
Post by: renatom on May 02, 2013, 07:04:52 AM
Hello Everyone,
I am currently using a Galil controller. I have a few issue using the plug in. The home switch are being ignored when plug in is activated, but if i remove the huanyang plug in the home switches works perfect. Does anyone have the same problem. Thanks in advance


Title: Re: Huanyang VFD controller plugin
Post by: Breastfed on June 20, 2013, 04:45:34 AM
Hi,
out of interest how much extra do you pay for the mach3 RS485 "special order" VFD ?

I to was a RS485 victim with my HY 1.5kw VFD, so I ordered the MAX485CSA from ebay for like $2.07 + free shipping for 10pc's, eventually they arrived after 40 days from HK to Thailand.

Anyway I soldered the MAX485 IC onto the PCB, plugged it all back in without any smoke and with a couple of changes to VFD settings and a few more for setting up of the MODBUS in Mach3 and so far it seems to work just fine so a BIG thank you Matty Z for the Plugin and everyone else who helped figure out this issue.

Breastfed


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on June 20, 2013, 08:52:59 AM
There is an updated plug-in here http://www.machsupport.com/forum/index.php/topic,22806.20.html
N.


Title: Re: Huanyang VFD controller plugin
Post by: sgaugetrains on June 30, 2013, 09:29:14 PM
I need some help, when I try to start my spindle, the motor starts to turn, but the resey button then starts to flash and I get the message that the EM stop has been activated. I checked and all my setting seem to be ok.


Title: Re: Huanyang VFD controller plugin
Post by: novaguardian on August 08, 2013, 01:52:29 PM
The EM stop is being activated because of the EStop Threshold limit is being reached in the VFD plugin configuration. You can try to raise the number or just leave it blank and that should stop the EStop from being activated.


Title: Re: Huanyang VFD controller plugin
Post by: jalvim on September 02, 2013, 09:58:57 AM
Hi!
I'm trying to use the pluggin to control my huanyang VFD 1.5kw and spindle from Mach3. Here's my problem, I followed all the instruction and my spindle runs up to 200rpm listed 3.33 rotations per second on my vfd display. more than that and I get an E/stop and 'driver watchdog trigered' message.
Can anyone help?

Also if I go to the 'spindle callibration' menu I can't control the spindle and it doesn't recognize when the spindle is running!

by the way thanks for all the great posts


Title: Re: Huanyang VFD controller plugin
Post by: Cnc-Prosjekt on September 30, 2013, 12:27:59 PM
The file to Matty Zee so one can only regulate the g-code S8000 to S24000

Wish it could have been fixed to the S3000 to S24000

Who can fix it, assume it is info in the file (HuanyangVFD.dll)


Title: Re: Huanyang VFD controller plugin
Post by: vre on January 17, 2014, 05:14:37 AM
I got a Huanyang SL-440EE 380V 4KW and some componets are missing.
I have marked the the missing components with red color in photos.
I know in 1 photo that the missing ic is a max485 but what are doing the other missing parts ?
Also what doing the missing components in 2 photo ?
thanks.


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 03, 2014, 02:28:15 PM
Mark,
Did you ever find an answer to this?  I experience the same issue.  Pressing the reset button turns off the spindle, but if I hit a limit switch for example, mach's reset is flashing but the spindle continues to run.

Richard


Ok my turn for a question.

I've posted this in general Mach also.

When the spindle is under Mach control using the plugin I get the following issue:

If I hit the reset button within Mach it appears to send a M5 command and the spindle stops however if I hit an actual physical estop (that is recognised by mach and sets the reset button flashing), the spindle continues to run.

I am purposely not cutting the power to the VFD when an estop is hit as it is far safer and faster to initiate a controlled stop as opposed to just letting the spindle "idle down".

Am I missing a setting in Mach or elsewhere? Does it do a similar thing on you setup...

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: MoserLabs on February 05, 2014, 06:40:23 PM
Downloaded the plugin, and once I configured the VFD correctly, it worked like a champ!  Spindle talker was a HUGE help to test as well!

Problem I face:  When I click the F5 key to start, it starts.  I click it again and it stops, but clicking it another time it doesn't do anything.  I have to click the reset to engage a E-Stop, and then reset it back to normal before it will accept another spindle engage.  Is this normal?


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 05, 2014, 07:30:32 PM
Nevermind, I wrote a Brain that checks to see if Mach is in Reset AND if the Spindle is on and if so then turn it off.
Initial test show it works fine but I need to do some more testing on it.

Richard

Mark,
Did you ever find an answer to this?  I experience the same issue.  Pressing the reset button turns off the spindle, but if I hit a limit switch for example, mach's reset is flashing but the spindle continues to run.

Richard


Ok my turn for a question.

I've posted this in general Mach also.

When the spindle is under Mach control using the plugin I get the following issue:

If I hit the reset button within Mach it appears to send a M5 command and the spindle stops however if I hit an actual physical estop (that is recognised by mach and sets the reset button flashing), the spindle continues to run.

I am purposely not cutting the power to the VFD when an estop is hit as it is far safer and faster to initiate a controlled stop as opposed to just letting the spindle "idle down".

Am I missing a setting in Mach or elsewhere? Does it do a similar thing on you setup...

Cheers

Mark


Title: Re: Huanyang VFD controller plugin
Post by: denmark219 on February 05, 2014, 10:43:52 PM
Super stupid question. I know how to wire from my rs485 converter to my VFD. But do I use a USB cable to connect to my computer? Or do I connect the serial end? My serial connector on my adapter says rs232 so I'm assuming I connect the USB port to my PC. this is the adapter I have. http://img.auctiva.com/imgdata/1/3/5/1/1/0/9/webimg/349216805_tp.jpg


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 05, 2014, 11:59:13 PM
No, the USB connects to your PC.  The DB9 connector can be RS232 or RS485, depending on what you purchased.  Since your link is nothing more than a picture it's hard to determine what it is.
If it is RS485, then you must pay attention to the pin out of the DB9.  It can be RS422/RS485 which means you need to follow the instructions to use it on 485.  Mainly the Data + and Data - or A & B.  There is no standard on how exactly it should be labeled.

Richard

Super stupid question. I know how to wire from my rs485 converter to my VFD. But do I use a USB cable to connect to my computer? Or do I connect the serial end? My serial connector on my adapter says rs232 so I'm assuming I connect the USB port to my PC. this is the adapter I have. http://img.auctiva.com/imgdata/1/3/5/1/1/0/9/webimg/349216805_tp.jpg


Title: Re: Huanyang VFD controller plugin
Post by: denmark219 on February 06, 2014, 08:36:58 AM
Aha, so on my board I have a DB9 connector that is an RS232 port. I'm guessing then that the pins with the A,B,GND and VOD are the 485? Which means I connect the USB to my computer, and then the R-/R+ pins from my VFD to the A/B pins on my converter board. Sound about right? Thanks for the help guys This is the one I have:

http://www.ebay.com/itm/PC-USB-to-RS232-RS485-UART-TTL-Signal-Converter-/360850506092?pt=LH_DefaultDomain_0&hash=item54045dc16c


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 06, 2014, 09:16:47 AM
Yes, A&B and Grd are the 485 and they connect to the VFD.
Let me know how that little converter works out.

Richard

Aha, so on my board I have a DB9 connector that is an RS232 port. I'm guessing then that the pins with the A,B,GND and VOD are the 485? Which means I connect the USB to my computer, and then the R-/R+ pins from my VFD to the A/B pins on my converter board. Sound about right? Thanks for the help guys This is the one I have:

http://www.ebay.com/itm/PC-USB-to-RS232-RS485-UART-TTL-Signal-Converter-/360850506092?pt=LH_DefaultDomain_0&hash=item54045dc16c



Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 06, 2014, 09:19:04 AM
Be sure to set your jumpers to 485 on the USB to 485 converter.

Richard

Aha, so on my board I have a DB9 connector that is an RS232 port. I'm guessing then that the pins with the A,B,GND and VOD are the 485? Which means I connect the USB to my computer, and then the R-/R+ pins from my VFD to the A/B pins on my converter board. Sound about right? Thanks for the help guys This is the one I have:

http://www.ebay.com/itm/PC-USB-to-RS232-RS485-UART-TTL-Signal-Converter-/360850506092?pt=LH_DefaultDomain_0&hash=item54045dc16c



Title: Re: Huanyang VFD controller plugin
Post by: denmark219 on February 06, 2014, 09:21:33 AM
good call. Is it obvious what the jumper configuration is? It didn't come with a manual.


Title: Re: Huanyang VFD controller plugin
Post by: denmark219 on February 06, 2014, 01:07:11 PM
There is a transmit and a receive section of the jumpers. I'm guessing that if I'm using USB -> converter -> VFD  I should have the receive jumper set to 232, and the transmit jumper to 485? Thanks again for the help guys.


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 06, 2014, 01:24:27 PM
Both go to  the 485 jumper pins.


Title: Re: Huanyang VFD controller plugin
Post by: mikezl78 on February 19, 2014, 10:46:24 PM
I have been running the HangyangVFD plugin by Matty Zee on my CNC for the past year without any problems. I recently had a (Blue Screen of Death) from my Windows XP operating system and had to completely reinstall everything. I got everything working again but cannot get the Hangyang driver to be recognized by the Mach3 software. I get the following errors when I load Mach:

Plugin DLL Defective. Reload.

Then

HuanyangVFD.dll-Defective Plugin found..ignoring..

I cannot see the plugin at the Mach plugin config screen. I tried re-downloading the driver and erasing the old one but no dice... Anyone know how I can fix this???

I am running Mach3 version: R3.043.022
I am current on Windows XP service packs and all updates.

Thanks in advance on assistance. Need to figure this out fast as I have a couple jobs on hold because of this issue.


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 19, 2014, 11:04:44 PM
Did you happen to remember to download the VC 2008 redistributables?
http://www.microsoft.com/fr-fr/download/details.aspx?id=5582 (http://www.microsoft.com/fr-fr/download/details.aspx?id=5582)

Richard


Title: Re: Huanyang VFD controller plugin
Post by: mikezl78 on February 19, 2014, 11:06:48 PM
Did you happen to remember to download the VC 2008 redistributables?
http://www.microsoft.com/fr-fr/download/details.aspx?id=5582 (http://www.microsoft.com/fr-fr/download/details.aspx?id=5582)

Richard

Yes, I reloaded these.


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 19, 2014, 11:08:16 PM
How did you make out with the 485 converter and the VFD?

There is a transmit and a receive section of the jumpers. I'm guessing that if I'm using USB -> converter -> VFD  I should have the receive jumper set to 232, and the transmit jumper to 485? Thanks again for the help guys.


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on February 19, 2014, 11:10:06 PM
Sorry then, I have no other advice.  Anytime I have seen that error with this plugin it was because that the VC files were missing.
Maybe someone else can chime in with some help.

Richard

How did you make out with the 485 converter and the VFD?

There is a transmit and a receive section of the jumpers. I'm guessing that if I'm using USB -> converter -> VFD  I should have the receive jumper set to 232, and the transmit jumper to 485? Thanks again for the help guys.


Title: Re: Huanyang VFD controller plugin
Post by: mikezl78 on February 23, 2014, 01:57:52 PM
Thanks for the advice.

I completely updated windows framework to 3.5, updated the V++2010 distributable's and updated Mach to latest version R03.043.066. 
Combination of these aloud me to load the Hangyang plugin and reconfigure it.

However, now when I try to run a g-code file Mach3 will randomly freeze in the code every single time and lock the entire PC up.  Anyone have any ideas on what would be causing this?

Thanks for the help.

Mike


Title: Re: Huanyang VFD controller plugin
Post by: Gianni55 on March 11, 2014, 12:39:57 PM
Hello to all.
I searched the forum but did not find.
When I try to configure the plugin Huanyang-rs485, the message "Configuration Screen Are Now Accessed throuth tThe 'Plugin Control Menu'," and do not see the configuration window.
I tried 3 different PCs, and it is always so.
Has anyone had the same problem?.
Thank you, Giovanni


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on March 11, 2014, 03:08:22 PM

I searched the forum but did not find.

Did you find http://www.machsupport.com/forum/index.php/topic,22806.20.html
N.


Title: Re: Huanyang VFD controller plugin
Post by: rwskinner on March 11, 2014, 03:38:45 PM
Try the Menu item called "Plugin Control".

Hello to all.
I searched the forum but did not find.
When I try to configure the plugin Huanyang-rs485, the message "Configuration Screen Are Now Accessed throuth tThe 'Plugin Control Menu'," and do not see the configuration window.
I tried 3 different PCs, and it is always so.
Has anyone had the same problem?.
Thank you, Giovanni


Title: Re: Huanyang VFD controller plugin
Post by: Gianni55 on March 11, 2014, 04:31:39 PM

Everything OK.
Thanks for the link


Title: Re: Huanyang VFD controller plugin
Post by: jhovel on April 20, 2014, 07:32:05 AM
Anyone here ever completed the retrofitting of the braking circuit in a Huanyang VFD and got it to work?
 want to use my mill for threading and need it to stop REAL quick when it hits my limit switches. Using a braking resistor is the only sensible way. My VFD is missing the usual components (see page 19). I can get them easily enough, but haven;t heard any reports of any retrofit success....
Cheers,
Joe in Oz


Title: Re: Huanyang VFD controller plugin
Post by: sag40 on April 24, 2014, 12:58:46 PM
Has anyone had a issue where the spindle turns on but wont shut off till you hit the emergency button?  Stop button or limit switchs dont turn it off.  I am very new to this stuff and I cant stop learning new things to do with this program.  Thanks


Title: Re: Huanyang VFD controller plugin
Post by: jhovel on May 18, 2014, 07:32:17 AM
Just to complete the cycle of enquiry to outcome on the forum, I can report success with retrofitting the braking circuit components to Huanyang VFDs, Along with a braking resistor fitted, this made a huge differents to the deceleration of my milling machine spindel.
All in all a very successful outcome adapting the work of members of this forum - see page 19 onwards.
Here is a littel videa of my test which shows the effects on just the inertia of the mill drive. When actually cutting, the spindle stops instantly. I intend using this purely as an emergency stop at this stage and use the amusingly called e-stop option of Huanyang as my normal coasting stop for ordinary operation.
<iframe width="560" height="315" src="//www.youtube.com/embed/cOMjNhSRAe0" frameborder="0" allowfullscreen></iframe>


Title: Re: Huanyang VFD controller plugin
Post by: jhovel on May 20, 2014, 01:00:59 AM
Blast, the Youtube link failed to embed here...
Here is the direct link: http://youtu.be/cOMjNhSRAe0 (http://youtu.be/cOMjNhSRAe0)
Hope this works...


Title: Re: Huanyang VFD controller plugin
Post by: planctons80 on October 19, 2014, 08:56:38 AM
hi my first post and problem.

I have  2.2kw spindle+vfd and it is connected via usbrs485 adapter to the spindle (as usualy)

spindle starts normali at the rpm that I want but when I want tu stop it it does not stop eaven mhit E stop and I get an error window.


can somebody say something to this .

tnx
(http://)



If I click switch to...    start opens

If I click retry nothing happens the same windows open agen

(http://www.machsupport.com/forum/index.php?action=dlattach;topic=14182.0;attach=27739;image)


Some one can helpe me?



Title: Re: Huanyang VFD controller plugin
Post by: DecadoPL on February 13, 2015, 05:30:38 PM
at the beginning i want to apologize for my bad grammar.
I have big problem with my inverter. Seller send me not working one and he dont want to send me new one or to do anything.
My problem is like that:
I connected 230V to R and T. And the only thing that try to work is fan. It starting and after one second it stops, and its loop. LED display is not working, nothing more happens.
Can someone help me with my problem?


Title: Re: Huanyang VFD controller plugin
Post by: crashnDC on August 13, 2015, 05:34:07 PM
I realize it has been a long time since this thread was active. I'm a new user of this plugin and after getting it working, i want to contribute back to all those posts and help as it may be of help to others.

1) I ordered a RS232-485 converter, a male/female dongle with small circuit board and 5 or 6 terminal clamps.  Did not work. I wanted to go this way to use the onboard 232 and save a USB, so much for that.
2) Ordered the cheaper USB to 485.  Wired it, no luck. Reveresed the wires, presto!
3) I had the same estop issue as a lot of people.  Estop would not stop the spindle.  What I did to fix it was actually use a Normally Open relay on a second bob, port 2, pin 14, set PD001 to 1 (PD002 to 2), the NO relay connected to FOR and DCM on the VFD, tell Mach3 to use spindle relay on that output port and tada!  Mach3 starts/stops the spindle, can set the speed and on estop, stops the spindle (by opening the relay)!  I know somewhere there is a warning to disable spindle relays, but for me it works, and works just how I want it.

thanks to all those who have posted both help and problems, the knowledge is great.

Cheers


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on August 13, 2015, 10:52:08 PM
3) I had the same estop issue as a lot of people.  Estop would not stop the spindle.  
Cheers

Did you try this plug in?
https://www.machsupport.com/forum/index.php/topic,22806.0.html
N.


Title: Re: Huanyang VFD controller plugin
Post by: crashnDC on August 14, 2015, 06:11:51 AM
Nosmo,
Yes, I saw that one also, but had already started down this path.  Now that this is working, I will give that otherone a shot, looks like some improved functionality and some settings are brought out to fiddle with.  Thanks!


Title: Re: Huanyang VFD controller plugin
Post by: EVguru on March 24, 2016, 11:09:05 AM
I know this is an old topic, but I thought I'd add some up to date information about the braking components.

I've recently bought another Huanyang VFD with the intention of fitting the braking components and upgrading the VFD on my lathe. Having taken the new VFD apart, it's clear they've done a partial re-design of the PCB.

(http://www.compton.vispa.com/VFD/IMAG0033.jpg)
(http://www.compton.vispa.com/VFD/IMAG0034.jpg)
(http://www.compton.vispa.com/VFD/IMAG0035.jpg)

The new board has two individual current sensors on the ouput, rather than a single sensor on the DC bus. There is no longer any provision for the braking IGBT or gate drive, however the P+ and PR terminals are still there and the holes for the wire link.



Title: Re: Huanyang VFD controller plugin
Post by: tgdavies on April 12, 2016, 11:37:32 PM
Has anyone used this plugin successfully on Windows 10?

If so, which runtime libraries did you need to install?

Thanks,
  Tom


Title: Re: Huanyang VFD controller plugin
Post by: tgdavies on April 13, 2016, 06:57:47 PM
To answer my own question: Yes it works with Windows 10, but you need to install the correct DLL (A C++ runtime, I think) Unfortunately, I installed a bunch of programs at once, one of which must have installed the required runtime, but I don't know which it was :-(


Title: Re: Huanyang VFD controller plugin
Post by: mike_sharp on May 28, 2016, 09:09:36 AM
This one has me stumped...

I've been trying to debug why I can't talk to the controller at all.  After a lot of experimenting I hooked up a logical analyzer to the 75176 bus transceiver.  Pin 2, RE (read enable), which is active low (0) according to the data sheet, is constantly held high (1).  None of the communications settings seem to toggle this low, so the data I'm sending never makes it past the transceiver to wherever it should be going.  I've tried numerous factory resets (see below) with power cycle after reset, after loading the settings, and before testing just to be sure the state is correct, and with and without a mysterious "J9" jumper installed just in case the J9 is acting as a pull-up on this line.

[aside: anyone know what J9 is suppose to do?  It looks to be related to the pull up resistors.  Its at the left end of the bottom most line of these just above the REV terminal.]]

The VFD label says its a HY01D523B
PD181 (software version) ur1.0
PD182 (Manufacture date) 50424
PD183 (Serial Number)  65535

Any thoughts on how to proceed would be *greatly* appreciated. 

Here are the VFD settings I'm using:

Factory Reset: then.

PD001 is set to 2
PD002 is set to 2
PD003-004-005 are set at 400Hz
PD006 is set to 3
PD008 is set to 220
PD009 is set to 15
PD010 is set to 8
PD011 is set to 120
PD070 is set to 0
PD071 is set to 20
PD072 is set at 400Hz
PD142 is set to 7
PD143 is set to 02
PD144 is set to 3000
PD163 is set to 1
PD164 is set to 1
PD165 is set to 3


Title: Re: Huanyang VFD controller plugin
Post by: Daman691003 on June 10, 2016, 06:18:20 AM
Hey guys I have the 2.2kw spindle and vfd eBay combo.  I got it all working with Mach 3 perfectly.  For a couple weeks it was fine. Then all of a sudden I start up Mach 3 and am getting error on startup xmlnet profile warning and it's not working anymore. B


Title: Re: Huanyang VFD controller plugin
Post by: NosmoKing on June 14, 2016, 10:07:07 AM
There is also free trial RS232com at http://www.viddata.com/
Different options, they also have the bi-directional capture pgm.
Nosmo


Title: Re: Huanyang VFD controller plugin
Post by: cmilner on November 14, 2016, 09:42:09 PM
Hi All
I have the Huanyang VFD and spindle which works fine manually. I set up and followed the Royaumedeole method of connecting the VFD to Mach3 (is this the best way to go??). I triple checked all connections and ohm checked for shorts and polarity as well. The USB to RS485 converter is the one shown on the Royaumedeole instructions.

The problem is that when I turned the power on to the VFD (with the USB converter plugged IN to my PC) there was a slight pop from the VFD and all my power went off due to a trip of the houses earth leakage circuit breaker? Both the VFD and the USB converter are now U/S

There is a label on the front of the VFD that says 'CAUTION - confirm that output or control wires are not grounded'. I am aware that a USB port case is grounded as is one of the pins. I had checked that there were no shorts to earth before powering up. Funny thing is that if I plug the USB lead into the PC (with a new USB converter) while the VFD is powered on there is no problem. I again tried to power the VFD on WITH the USB connected to the PC and the lights went off again. Another fried USB converter!! There doesn't appear to be any shorts in the VFD on the power in or out or between them and the control terminals.

I have now purchased a new VFD and USB converter but am most reluctant to try again. I would appreciate any advice or suggestions.



Title: Re: Huanyang VFD controller plugin
Post by: Ageraluon on December 07, 2016, 07:00:26 PM
Hey all,

Yesterday, my Huanyang inverter (2.2kW) started smoking. I was able to identify some of the parts that are broken. However, the relay K1 of the schematic that I found in this post (see attached) is so deformed that I can't decipher its type number. Does anyone here have a hint for me what the identifier is? Specifically, what current does the load circuit of the relay have to bear?

Any help is appreciated. Thanks!

https://www.machsupport.com/forum/index.php?PHPSESSID=td6qk7ut5gtcugtfbp7amk6un3&action=dlattach;topic=14182.0;attach=25459 (https://www.machsupport.com/forum/index.php?PHPSESSID=td6qk7ut5gtcugtfbp7amk6un3&action=dlattach;topic=14182.0;attach=25459)


Title: Re: Huanyang VFD controller plugin
Post by: mikeribs on February 22, 2017, 10:04:56 PM
oh my lord this has got me scratching my head! so i get the spindle to turn but when it starts i get a quick jolt to the z axis stepper not sure why , also it seems that i cant get it to go above 3000


Title: Re: Huanyang VFD controller plugin
Post by: Wilde Racing on March 10, 2017, 05:29:48 AM
Will the plugin work with the 4kw version?


Title: Re: Huanyang VFD controller plugin
Post by: swets on July 23, 2017, 02:16:08 PM
is it also possible to see the current  like this: 0,0 A ?


Title: Re: Huanyang VFD controller plugin
Post by: rutager on October 16, 2017, 08:11:31 PM
Hello,

Im getting an error with the plugin. "Warning hexadecimal value 0x18 is an invalid character. Line 1, position 418"

Im able to control my spindle via spindletalker, so im confident the hardware is fine. Mach just doesnt seem to like the plugin for some reason.

Any suggestions?