huanyang vfd & linuxcnc 2.7

More
11 years 1 month ago - 11 years 1 month ago #63174 by russtuff

andypugh wrote:

rusmannx wrote: I just did some more testing and realized that it doesn't matter what I set PD144 to be, any time I S1250 the I get 39.24hz on the VFD.


In that case it looks like you need to use a "scale" component
www.linuxcnc.org/docs/html/man/man9/scale.9.html
Unless you have two gears, in which case "gearchange" might be more appropriate
www.linuxcnc.org/docs/html/man/man9/gearchange.9.html
Code:
loadrt scale ... addf scale.0 servo-thread ... net spindle-speed motion.spindle-speed-out => scale.0.in net motor-speed scale.0.out => hy_vfd..... setp scale.0.gain 1.623


Thank you. I assumed I would need something like this, however, no matter how I try and implement your code I get errors. I think it's because of the scale/lowpass stuff in the postgui.hal, plus, I'm terrible at this stuff and don't know what should be put in place of your "..." lines to make it work.

For now I'll just multiply the RPM I really want by 1.7 :)
Last edit: 11 years 1 month ago by russtuff.

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

More
11 years 1 month ago #63185 by andypugh

rusmannx wrote: Thank you. I assumed I would need something like this, however, no matter how I try and implement your code I get errors. I think it's because of the scale/lowpass stuff in the postgui.hal,


Yes, you need to integrate the scale into your existing HAL. That is going to mean combining any loadrt scale commands and taking out incompatible nets.

It's like an electrical circuit, if you are inserting an amplifier in a signal path you need to cut the original wires.

One thing that might be useful, when the system is loaded open a terminal and type
Code:
halcmd show pin > pins.txt halcmd show param params.txt
That will give you two text files that you can open in a text editor and get a full list of all the pins and parameters that you can use in your HAL file. (every HAL component you add will add some more, too)

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

More
10 years 8 months ago #69666 by daninaustin
Thanks for this! There were a couple of errors on you directions for my version (loaduser rather than loadusr and some of the pins were incorrect), but this helped me tremendously. I can finally get my Spindle under control! Now i just have to figure out the servo's and encoders.

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

More
10 years 8 months ago #70089 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
I have linuxcnc 2.7.4 and installed hy_vfd from here github.com/bebro/linuxcnc-huanyang-vfd/tree/linuxcnc .
How can install hy_vfd version included with linuxcnc and not from external repository?

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

More
10 years 8 months ago - 10 years 8 months ago #70093 by cncnoob1979
vre,

Its already part of linuxcnc distribution. As a matter of fact I used your glade.panel for the VFD and your questions helped me install my system.

There are a few changes from the source code version vs the included version in linuxcnc, namely some pin names were change/removed (September 2015~)

Ill attach a copy of my configuration files so you can see them. When you created your hy_vfd from source did you then place it into you /bin directory?

Ill edit this post in a bit so I can post them from my machine.

EDIT: These should get you where you want to be. Im still in the process of finalizing my settings so there are some items commented out. But the VFD works well via MODBUS, well at least their version of it. Also with PD 165 I had to use 4 and even parity to connect. You can read it in my custom hal file.

Do take note that some pins were renamed and or removed in the distributed linuxcnc version of hy_vfd.


File Attachment:

File Name: bridgeport-2.hal
File Size:11.02 KB


File Attachment:

File Name: custom.hal
File Size:757 B


File Attachment:

File Name: bridgeport-2.ini
File Size:3.57 KB


File Attachment:

File Name: huanyang.glade
File Size:17.25 KB


File Attachment:

File Name: custom_postgui.hal
File Size:1.79 KB
Last edit: 10 years 8 months ago by cncnoob1979.

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

More
10 years 8 months ago - 10 years 8 months ago #70095 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
solved!
I found the pins changed and updated my hal config & gladevcp panel.
here are the pins changed & removed
linuxcnc.org/docs/html/getting-started/u...c.html#_huanyang_vfd
thanks.
Last edit: 10 years 8 months ago by vre.

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

Time to create page: 0.169 seconds
Powered by Kunena Forum