trying to talk to Huanyang VFD using runhal
18 Mar 2017 21:28 #89868
by jcloase
trying to talk to Huanyang VFD using runhal was created by jcloase
I could not get hy_vfd working. I decided to use halrun to talk to the vfd. I entered this and got the error shown. Does anyone have further insite concerning the error. I have tried everything I can think of cable, different 485 devices, checked vfd settings at least 10 times. I'm beginning to think the vfd communication port has failed. The vfd works fine otherwise.
halcmd: loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyS0 -p none -r 9600 -s 1
halcmd: show pin
Component Pins:
Owner Type Dir Value Name
5 float OUT 0 spindle-vfd.ACV
5 float OUT 0 spindle-vfd.CNST
5 bit OUT FALSE spindle-vfd.CNST-bracking
5 bit OUT FALSE spindle-vfd.CNST-command-rf
5 bit OUT FALSE spindle-vfd.CNST-jog
5 bit OUT FALSE spindle-vfd.CNST-jogging
5 bit OUT FALSE spindle-vfd.CNST-run
5 bit OUT FALSE spindle-vfd.CNST-running
5 bit OUT FALSE spindle-vfd.CNST-running-rf
5 bit OUT FALSE spindle-vfd.CNST-track-start
5 float OUT 0 spindle-vfd.CNTR
5 float OUT 0 spindle-vfd.Cont
5 float OUT 0 spindle-vfd.DCV
5 float OUT 0 spindle-vfd.OutA
5 float OUT 0 spindle-vfd.OutF
5 float OUT 0 spindle-vfd.Rott
5 float OUT 0 spindle-vfd.SetF
5 float OUT 0 spindle-vfd.Tmp
5 bit IN FALSE spindle-vfd.enable
5 float OUT 0 spindle-vfd.freq-lower-limit
5 float OUT 0 spindle-vfd.frequency-command
5 bit OUT FALSE spindle-vfd.hycomm-ok
5 float OUT 0 spindle-vfd.max-freq
5 float OUT 0 spindle-vfd.rated-motor-current
5 float OUT 0 spindle-vfd.rated-motor-rev
5 float OUT 0 spindle-vfd.rated-motor-voltage
5 float IN 0 spindle-vfd.speed-command
5 bit OUT FALSE spindle-vfd.spindle-at-speed
5 float IN 0.02 spindle-vfd.spindle-at-speed-tolerance
5 bit IN FALSE spindle-vfd.spindle-forward
5 bit IN FALSE spindle-vfd.spindle-on
5 bit IN FALSE spindle-vfd.spindle-reverse
5 float OUT 0 spindle-vfd.spindle-speed-fb
halcmd: setp spindle-vfd.enable 1
halcmd: WAIT_DATA(): comms time out
ERROR Communication time out (-12)
error reading setup from VFD, retrying
WAIT_DATA(): comms time out
halcmd: loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyS0 -p none -r 9600 -s 1
halcmd: show pin
Component Pins:
Owner Type Dir Value Name
5 float OUT 0 spindle-vfd.ACV
5 float OUT 0 spindle-vfd.CNST
5 bit OUT FALSE spindle-vfd.CNST-bracking
5 bit OUT FALSE spindle-vfd.CNST-command-rf
5 bit OUT FALSE spindle-vfd.CNST-jog
5 bit OUT FALSE spindle-vfd.CNST-jogging
5 bit OUT FALSE spindle-vfd.CNST-run
5 bit OUT FALSE spindle-vfd.CNST-running
5 bit OUT FALSE spindle-vfd.CNST-running-rf
5 bit OUT FALSE spindle-vfd.CNST-track-start
5 float OUT 0 spindle-vfd.CNTR
5 float OUT 0 spindle-vfd.Cont
5 float OUT 0 spindle-vfd.DCV
5 float OUT 0 spindle-vfd.OutA
5 float OUT 0 spindle-vfd.OutF
5 float OUT 0 spindle-vfd.Rott
5 float OUT 0 spindle-vfd.SetF
5 float OUT 0 spindle-vfd.Tmp
5 bit IN FALSE spindle-vfd.enable
5 float OUT 0 spindle-vfd.freq-lower-limit
5 float OUT 0 spindle-vfd.frequency-command
5 bit OUT FALSE spindle-vfd.hycomm-ok
5 float OUT 0 spindle-vfd.max-freq
5 float OUT 0 spindle-vfd.rated-motor-current
5 float OUT 0 spindle-vfd.rated-motor-rev
5 float OUT 0 spindle-vfd.rated-motor-voltage
5 float IN 0 spindle-vfd.speed-command
5 bit OUT FALSE spindle-vfd.spindle-at-speed
5 float IN 0.02 spindle-vfd.spindle-at-speed-tolerance
5 bit IN FALSE spindle-vfd.spindle-forward
5 bit IN FALSE spindle-vfd.spindle-on
5 bit IN FALSE spindle-vfd.spindle-reverse
5 float OUT 0 spindle-vfd.spindle-speed-fb
halcmd: setp spindle-vfd.enable 1
halcmd: WAIT_DATA(): comms time out
ERROR Communication time out (-12)
error reading setup from VFD, retrying
WAIT_DATA(): comms time out
Please Log in or Create an account to join the conversation.
21 Mar 2017 12:21 #89994
by andypugh
Replied by andypugh on topic trying to talk to Huanyang VFD using runhal
Does it work other than the timeouts? I vaguely recall getting some sort of timeout error with mine, but apart from that everything seemed to work.
I will try to remember to check again tonight.
I will try to remember to check again tonight.
Please Log in or Create an account to join the conversation.
21 Mar 2017 14:27 #90006
by jcloase
Replied by jcloase on topic trying to talk to Huanyang VFD using runhal
Everything looks fine with the linuxcnc end.
Please Log in or Create an account to join the conversation.
12 Apr 2017 04:59 #91224
by {HD}
Replied by {HD} on topic trying to talk to Huanyang VFD using runhal
Did you ever get it to work? I had similar problems trying to use halrun...
Please Log in or Create an account to join the conversation.
12 Apr 2017 09:34 #91229
by jcloase
Replied by jcloase on topic trying to talk to Huanyang VFD using runhal
my problem was that the vfd did not have the 485 feature. I bought another after checking with the vendor to make sure it had 485 and it worked great.
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds