YL620-H VFD control over Modbus help

More
10 Apr 2024 22:37 - 10 Apr 2024 22:41 #297969 by Craig E
Hi all, 
I am stuck and hope someone can help me to get my VFD working.
I had a Huanyang 1.5KW VFD working perfectly for years and I wanted to upgrade to a 4KW spindle. I bought what I thought was a at the time was another Huanyang but it turns out to be a knockoff and it will not run with my current Modbus setup.  The VFD Manual says it is a YL620-H It has a "Standard Modbus" and a "Non Standard Modbus" Modbus setting I assume that I should use the "Standard Modbus RTU" setting.  
My setting are as follows:
P0-02 = 2
P0-03 = 9
P0-10 =300
P0-12 = 300
P0-22 = 2
Pd-00 = 6 (19200BPS)
Pd-01 =3 (8 N 1)
Pd-02 = 1
Pd-03 = 5ms
Pd-04 = 0
Pd-05 = 1 (Standard Modbus RTU)
Pd-06 = 0 (current resolution 0.01a)
My Custom HAL is:

loadusr -W hy_vfd -t 1 -d /dev/ttyUSB0 -p none -r 19200

 setp hy_vfd.enable 1

 net spindle-vel-cmd-rpm => hy_vfd.speed-command 
 net spindle-cw spindle.0.forward => hy_vfd.spindle-forward
 net spindle-ccw spindle.0.reverse => hy_vfd.spindle-reverse
 
 net on spindle.0.on => hy_vfd.spindle-on

 net spindle-speed-fb => hy_vfd.spindle-speed-fb
 net spindle-current <= hy_vfd.OutA
 net spindle-comm-ok <= hy_vfd.hycomm-ok

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

When I start LinuxCNC i do not get any errors but no VFD function.
any suggestions on how to see what is going on? 

the VFD manual is attached. 
Is there anyway to test to see where the issue is?  I did not change my USB to RS485 adaptor, and it appears to be working, at least communicating with the PC. 

 

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:
Last edit: 10 Apr 2024 22:41 by Craig E.

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

More
13 Apr 2024 20:10 #298197 by zmrdko
Hi,
i would say hy_vfd component is very specific for huanyang vfds.
I would recommend using generic modbus component, where you specify required basic commands for running your VFD.
github.com/aekhv/vfdmod

BTW I had the same, but modbus comm failed to work for me for no reason (parameters set up correctly but no comms.
So the pricy advice would be getting some proper VFD, or you can try with what you have if it works.

also check this thread: forum.linuxcnc.org/24-hal-components/391...modbus-communicaiton

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

More
13 Apr 2024 22:11 #298205 by Craig E
Yep I tried both vfdMod and MM2HAL nether one worked.  I did not intend to buy it I thought it was Haunang like I had woking perfectly I just wanted to upgrade my spindle.  I have given up on this POS.  Thanks for the suggestion.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum