- Posts: 75
- Thank you received: 0
Help with hy_gt_vfd
2 years 6 months ago #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 "
I am thinking I need to install the component somehow? can someone please help me I am lost.
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 "
Attachment not found
I am thinking I need to install the component somehow? can someone please help me I am lost.
Please Log in to join the conversation.
2 years 6 months ago #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?
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 to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
2 years 6 months ago #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
Also, it is not HY anything, it is Dinverter 2B, the big one in the picture
Attachment not found
Please Log in to join the conversation.
2 years 6 months ago #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?
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 to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
2 years 6 months ago #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)
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 to join the conversation.
2 years 5 months ago #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 to join the conversation.
2 years 5 months ago #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 to join the conversation.
2 years 5 months ago #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 to join the conversation.
2 years 5 months ago #300174
by COFHAL
Replied by COFHAL on topic Help with hy_gt_vfd
You have el manual tbe your VFD.
Please Log in to join the conversation.
2 years 5 months ago #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
Attachment not found
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.260 seconds
