- Posts: 132
- Thank you received: 22
huanyang vfd & linuxcnc 2.7
11 years 5 months ago #59299
by alan_3301
Replied by alan_3301 on topic huanyang vfd & linuxcnc 2.7
It looks like 2.7 changed some names for spindle pins.
you have 2 options
option 1.
in 6040-parallel.hal, add this to line 24
option 2
in custom.hal, change the very last line to read
If anyone wants to update the files in the first link, (sorry I'm not familiar with that), option 1 should keep compatibility with 2.5+, option 2 should only work with 2.7+
I think.
VRE let me know what happens, should be an easy fix.
you have 2 options
option 1.
in 6040-parallel.hal, add this to line 24
Code:
net spindle-cmd <= motion.spindle-speed-out
option 2
in custom.hal, change the very last line to read
Code:
net spindle-cmd-rpm => spindle-vfd.speed-command
If anyone wants to update the files in the first link, (sorry I'm not familiar with that), option 1 should keep compatibility with 2.5+, option 2 should only work with 2.7+
I think.
VRE let me know what happens, should be an easy fix.
Please Log in or Create an account to join the conversation.
11 years 5 months ago - 11 years 5 months ago #59300
by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
Now works with the change to custom.hal.
I can set the rpm from linuxcnc.
thank you.
Code:
net spindle-cmd-rpm => spindle-vfd.speed-command
thank you.
Last edit: 11 years 5 months ago by vre.
Please Log in or Create an account to join the conversation.
11 years 4 months ago - 11 years 4 months ago #59733
by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
How can i move huanyang gui from right to an axis tab?
I want to do this because ngcgui tabs does not fit correctly to reduced screen from huayang gui
Answer is here
www.linuxcnc.org/index.php/english/forum...pyvcp?start=10#59782
I want to do this because ngcgui tabs does not fit correctly to reduced screen from huayang gui
Answer is here
www.linuxcnc.org/index.php/english/forum...pyvcp?start=10#59782
Last edit: 11 years 4 months ago by vre.
Please Log in or Create an account to join the conversation.
11 years 1 month ago #62497
by pommen
Replied by pommen on topic huanyang vfd & linuxcnc 2.7
Hello there,
In fear of flooing the forum in new threads about more or less the same ting, I hope to highjack this thread a bit.
With 2.7 now including a huanyang driver i want to give it a shot at my first tinkering outside Stepconf.
While trying to wrap my head around it all I read basic hal and the manual pages (hy_vfd part)
I still dont get how you would know what to include. I mean where do you begin to figure you what to use, and to what pin?
I have been scratching my head reading and watching the examples in the thread, but I cannot get it start the app, getting one error efter another and not really seing the redthread in it all.
well..long story short:
Does anyone have a working setup using the huanyang driver i could have a look at?
As you can imagine im very new to both Linux and Linuxcnc, So any advide anyone give me needs to be teaspoon seize
/Peter
In fear of flooing the forum in new threads about more or less the same ting, I hope to highjack this thread a bit.
With 2.7 now including a huanyang driver i want to give it a shot at my first tinkering outside Stepconf.
While trying to wrap my head around it all I read basic hal and the manual pages (hy_vfd part)
I still dont get how you would know what to include. I mean where do you begin to figure you what to use, and to what pin?
I have been scratching my head reading and watching the examples in the thread, but I cannot get it start the app, getting one error efter another and not really seing the redthread in it all.
well..long story short:
Does anyone have a working setup using the huanyang driver i could have a look at?
As you can imagine im very new to both Linux and Linuxcnc, So any advide anyone give me needs to be teaspoon seize

/Peter
Please Log in or Create an account to join the conversation.
11 years 1 month ago - 10 years 8 months ago #62567
by andypugh
Assuming that you have configured the hardware part of things, (or, in fact to help configuring the hardware part), here is a way to run the component in a minimal setup.
Open a terminal and start realtime.
Now load the vfd driver, assuming that all the default settings are correct
To see a list of all the HAL pins, and their values
You can initially ignore all the output pins that tell you things about the VFD. Once you do that, things look a lot simpler.
Now enable the VFD communications
You can use tab-completion to save typing and to make sure the spelling is right, so that could be typed as setp h<tab>e<tab> 1
Set to run FWD, set the speed, and turn it on
Experiment with speed changes and see some info about the VFD.
When you have finished
The HAL file connections will look rather similar.
Replied by andypugh on topic huanyang vfd & linuxcnc 2.7
pommen wrote: I still dont get how you would know what to include. I mean where do you begin to figure you what to use, and to what pin?
Assuming that you have configured the hardware part of things, (or, in fact to help configuring the hardware part), here is a way to run the component in a minimal setup.
Open a terminal and start realtime.
Code:
halrun
Now load the vfd driver, assuming that all the default settings are correct
Code:
loadusr hy_vfd
To see a list of all the HAL pins, and their values
Code:
show pin
Now enable the VFD communications
Code:
setp hy_vfd.enable 1
Set to run FWD, set the speed, and turn it on
Code:
setp hy_vfd.spindle-forward 1
setp hy_vfd.command 500
setp hy_vfd.on 1
Experiment with speed changes and see some info about the VFD.
Code:
setp hy_vfd.command 200
show pin hy_vfd.DCV
show pin hy_vfd.ACV
...
When you have finished
Code:
setp hy_vfd.on 0
setp hy_vfd.enable 0
exit
The HAL file connections will look rather similar.
Code:
net vfd-comms halui.machine.is-on => hy_vfd.enable
net spindle-fwd motion.spindle-forward => hy_vfd.spindle-forward
net spindle-reverse motion.spindle-reverse => hy_vfd.spindle-reverse
net spindle-speed-cmd motion.spindle-speed-out-abs => hy_vfd.command
net spindle-on motion.spindle-on => hy_vfd.on
Last edit: 10 years 8 months ago by andypugh.
The following user(s) said Thank You: pommen
Please Log in or Create an account to join the conversation.
11 years 1 month ago #62574
by pommen
Replied by pommen on topic huanyang vfd & linuxcnc 2.7
Andy, Thank you SOOO much!
I think I'm actually starting to get it now. It's a little bit scary starting out and trying to make sense with all the info avalible, your hadnholding was just the thing I needed
Thanks to you, I now have a decently running config (Woohoo). Just the tip about ignoring most of the pins made me focus alot more on how and why things work.
Again, Thanks! Was close to tearing my hair out there for a moment.
I hope your answer can help more newbies like me get a clearer picture, if nothing else to get beyond the (very awesome) stepconf.
/Peter
I think I'm actually starting to get it now. It's a little bit scary starting out and trying to make sense with all the info avalible, your hadnholding was just the thing I needed

Thanks to you, I now have a decently running config (Woohoo). Just the tip about ignoring most of the pins made me focus alot more on how and why things work.
Again, Thanks! Was close to tearing my hair out there for a moment.
I hope your answer can help more newbies like me get a clearer picture, if nothing else to get beyond the (very awesome) stepconf.
/Peter
Please Log in or Create an account to join the conversation.
Time to create page: 0.207 seconds