Hello Guest it is October 15, 2019, 10:16:44 AM

Author Topic: Huanyang VFD controller plugin  (Read 442416 times)

0 Members and 2 Guests are viewing this topic.

Re: Huanyang VFD controller plugin
« Reply #280 on: September 24, 2011, 08:04:54 PM »
Re: Huanyang VFD controller plugin
« Reply #281 on: September 25, 2011, 11: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.
Re: Huanyang VFD controller plugin
« Reply #282 on: September 25, 2011, 09: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

« Last Edit: September 25, 2011, 09:33:38 PM by mhasting2004 »
Re: Huanyang VFD controller plugin
« Reply #283 on: September 26, 2011, 11: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.
  
  
Re: Huanyang VFD controller plugin
« Reply #284 on: September 26, 2011, 04: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.
« Last Edit: September 26, 2011, 04:41:46 PM by mhasting2004 »
Re: Huanyang VFD controller plugin
« Reply #285 on: September 26, 2011, 05: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.
Re: Huanyang VFD controller plugin
« Reply #286 on: September 26, 2011, 06:00:00 PM »
You can see the response in spindle talker, in most cases it will reply by repeating with the same info.
Re: Huanyang VFD controller plugin
« Reply #287 on: October 05, 2011, 04: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

Re: Huanyang VFD controller plugin
« Reply #288 on: October 07, 2011, 08: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.
Re: Huanyang VFD controller plugin
« Reply #289 on: October 20, 2011, 12:46:25 PM »
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?