Help with hy_gt_vfd

More
27 Apr 2024 19:14 #299203 by Craig E
Help with hy_gt_vfd was created by Craig E
Hi all, I am still struggling with controlling my VFD over Modbus with a USB to RS485.  I had an older Huanyang VFD that worked great using the hy_vfd component.  Now I have a GT model that does not work I see that there is a component for the GT series hy_gt_vfd.  but it does not work for me I believe if followed the directions and have the VFD and the custom.hal setup correctly.  but I get this error, "Debug file information:
Note: Using POSIX realtime
./custom.hal:5: waitpid failed hy_gt_vfd hy_gt_vfd
./custom.hal:5: hy_gt_vfd exited without becoming ready
2722 "
 

File Attachment:

File Name: custom_2024-04-27.hal
File Size:1 KB

I am thinking I need to install the component somehow?  can someone please help me I am lost.  
Attachments:

Please Log in or Create an account to join the conversation.

More
29 Apr 2024 12:11 #299312 by Craig E
Replied by Craig E on topic Help with hy_gt_vfd
loadusr -W hy_gt_vfd -t 1 -d /dev/ttyUSB0 -p none -r 38400

setp hy_gt_vfd.enable 1


net spindle-vel-cmd-rpm => hy_gt_vfd.speed-cmd
net spindle-cw spindle.0.forward => hy_gt_vfd.spindle-forward
net spindle-ccw spindle.0.reverse => hy_gt_vfd.spindle-reverse

net on spindle.0.on => hy_gt_vfd.spindle-on

net spindle-speed-fb => hy_gt_vfd.spindle-speed-fb
net spindle-current <= hy_gt_vfd.output-current
net spindle-comm-ok <= hy_gt_gt_vfd.hygtcomm-ok


net spindle-at-speed <= hy_vfd.spindle-at-speed

Here is what I have for my custom.hal
Is there anything wrong in here?

Please Log in or Create an account to join the conversation.

More
29 Apr 2024 12:43 #299314 by tommylight
Replied by tommylight on topic Help with hy_gt_vfd
Sorry, but i have yet to use a VFD with RS485, it is still sitting on a shelf in the shop, waiting....
Also, it is not HY anything, it is Dinverter 2B, the big one in the picture
Attachments:

Please Log in or Create an account to join the conversation.

More
29 Apr 2024 22:11 #299347 by Craig E
Replied by Craig E on topic Help with hy_gt_vfd
That looks cool!  I have not seen anything like that before.  
If the hy_vfd component works on with my old YH vfd,  why would the hy_gt_vfd fail with this error, "waitpid failed hy_gt_vfd hy_gt_vfd" 
call is "loadusr -W hy_gt_vfd -t 1 -d /dev/ttyUSB0 -p none -r 38400" does that at least look correct? 

Please Log in or Create an account to join the conversation.

More
29 Apr 2024 22:18 #299348 by tommylight
Replied by tommylight on topic Help with hy_gt_vfd
No idea...well i have ideas from experience with serial ports, so first thing i would check is the serial comm parameters, speed, parity and stop bit.
You have to check those on the new VFD, make a note on what they are set to, and change the loadusr line accordingly.
In case you can not get those numbers, i would try
loadusr -W hy_gt_vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600
then increase the speed gradually (see google for standard serial port rates)

Please Log in or Create an account to join the conversation.

More
07 May 2024 23:06 #300075 by Craig E
Replied by Craig E on topic Help with hy_gt_vfd
@tommtlight.  That did not work.  I am not a coder so this may sound like a stupid question but, is there a way I can see the addresses that is being used for the hy_gt_vfd function?  Or do you think I should give up and try the MB2HAL function to try to control the VFD? 

Please Log in or Create an account to join the conversation.

More
08 May 2024 00:38 #300083 by COFHAL
Replied by COFHAL on topic Help with hy_gt_vfd
I have a DZB280 VFD and when checking the manual, it has the same addresses as the HY GD control registers. Therefore I think that it can be controlled the same as with the VFDMOD component and with MESA MODBUS, in case you use a MESA ELECTRONICS card.

Please Log in or Create an account to join the conversation.

More
08 May 2024 21:56 #300162 by Craig E
Replied by Craig E on topic Help with hy_gt_vfd
Thank can you please share your setup.  I was not able to get the VFDMOD component to run when I tried it but maybe I had the address wrong.

Please Log in or Create an account to join the conversation.

More
09 May 2024 00:10 #300174 by COFHAL
Replied by COFHAL on topic Help with hy_gt_vfd
You have el manual tbe your VFD.

Please Log in or Create an account to join the conversation.

More
09 May 2024 19:59 #300240 by COFHAL
Replied by COFHAL on topic Help with hy_gt_vfd
These are my configurations to control my VFD FULING DZB280, I think it is similar to the GT, they can serve as a reference

File Attachment:

File Name: VFD_ZDB280.zip
File Size:27 KB

File Attachment:

File Name: VFD_ZDB280...A_MB.zip
File Size:67 KB
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds
Powered by Kunena Forum