I am using an 2.2kW Huanyang frequency converter for my spindle on an BeagleBone black. It runs pretty fine with a old image (bone-debian-7.8-machinekit-armhf-2015-04-26-4gb.img.xz).
Now I try to update to an newer version of debian and machinekit, but i have some problems. If I compile the user space component for controlling a huanyang spindle, it compiles without trouble but wont communicate with the VFD. The newer version wont compile at all.
My computer skills are not good enough to find the problem. So here are my question:
- Has anyone running an Huanyang VFD over Modbus with an actual version of machinkit?
- How about VFD over Modbus from different manufacturer?
Original thread on cnczone.org:
http://www.cnczone.com/forums/phase-converters/91847-software-3.html#post704008http://www.cnczone.com/forums/phase-converters/91847-huanyang-vfd-rs485-modbus-3.html#post704008
Final version before integrated in LinuxCNC:
https://github.com/bebro/linuxcnc-huanyang-vfd
Actual version integrated in LinuxCNC:
https://github.com/LinuxCNC/linuxcnc/tree/master/src/hal/user_comps/huanyang-vfd
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
Old Image: image bone-debian-7.8-machinekit-armhf-2015-04-26-4gb.img.xz. No upgrade, no internet conection. Version of Machinekit in image: machinekit 0.1.1174-1da.bbot.pr593.git6ca42cf~1wheezy
Using standalone version of original thread on cnczone.org: http://www.cnczone.com/forums/phase-converters/91847-software-3.html#post704008http://www.cnczone.com/forums/phase-converters/91847-huanyang-vfd-rs485-modbus-3.html#post704008
Compile and run without problem.
Then I connect Internet and make update and upgrade, also update machinekit, machinekit-xenomai, and many more....
Neue Version: machinekit_0.1.1497866711-1mk.travis.master.git8df407f6~1wheezy_armhf.deb
Start machinekit:
spindle-vfd: device='/dev/ttyUSB0', baud=9600, bits=8, parity='none', stopbits=1, address=1, verbose=1, PID=1739
Opening /dev/ttyUSB0 at 9600 bauds (none)
./hy_vfd.bin: symbol lookup error: ./hy_vfd.bin: undefined symbol: hal_malloc
Now download again standalone version from cnczone.org. Compile without errors, start new bin exact same way like old bin. Loads with no error. Axis-Gui starts with no error but can not communicate.
I will download the source of machinekit and try to integrate the source from linux-cnc. But it will take some time to do so…..
Old Image:
image bone-debian-7.8-machinekit-armhf-2015-04-26-4gb.img.xz. No upgrade, no internet connection.
Version of Machinekit in image: machinekit 0.1.1174-1da.bbot.pr593.git6ca42cf~1wheezy
Using standalone version of original thread on cnczone.org:
Compile and run without problem.
Then I connect Internet and make update and upgrade, also update machinekit, machinekit-xenomai, and many more, reboot.
Neue Version: machinekit_0.1.1497866711-1mk.travis.master.git8df407f6~1wheezy_armhf.deb
Start machinekit:
spindle-vfd: device='/dev/ttyUSB0', baud=9600, bits=8, parity='none', stopbits=1, address=1, verbose=1, PID=1739
Opening /dev/ttyUSB0 at 9600 bauds (none)
./hy_vfd.bin: symbol lookup error: ./hy_vfd.bin: undefined symbol: hal_malloc
Now download again standalone version from cnczone.org. Compile without errors, start new bin exact same way like old bin. Loads with no error. Axis-Gui starts with no error but can not communicate.
I will download the source of machinekit and try to integrate the source from linux-cnc. But it will take some time to do so…..
./hy_vfd.bin: symbol lookup error: ./hy_vfd.bin: undefined symbol: hal_malloc
Looks like it is not linked properly.
Now download again standalone version from cnczone.org. Compile without errors, start new bin exact same way like old bin. Loads with no error. Axis-Gui starts with no error but can not communicate.
I will download the source of machinekit and try to integrate the source from linux-cnc. But it will take some time to do so…..
You don't have to
https://github.com/machinekit/machinekit/pull/1221 is pending merge.
It builds the component, so that will be in the packages once merged and you will be able to update and test
before too long.
80 float RW 0 hy_vfd.retval
Ok, thx a lot, this happening sooner than i thought.
So I made a “git clone https://github.com/machinekit/machinekit.git” but had a lot off problems with dependencies. Looks like a recent machinekit will not compiel on old Image. So I wait just a little bit and will then test it via “apt-get install machinekit”
So back to my old question:
Ok, thx a lot, this happening sooner than i thought.
So I made a “git clone https://github.com/machinekit/machinekit.git” but had a lot off problems with dependencies. Looks like a recent machinekit will not compiel on old Image. So I wait just a little bit and will then test it via “apt-get install machinekit”
So back to my old question:
- Has anyone running an Huanyang VFD over Modbus with an actual version of machinkit?
- How about VFD over Modbus from different manufacturer?
--
So I installed a new
image ->
bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
Made
update and upgrade -> machinekit-<kernel>_0.1.1497941186 was
installed!
Problem with new setting from github config-flies so
used my old - and it works !!!!!!!!!!!
My working setup files
will come later after more testing.....
So I installed a new image -> bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
Made update and upgrade -> machinekit-<kernel>_0.1.1497941186 was installed!
Problem with new setting from github config-flies so used my old - and it works !!!!!!!!!!!
My working setup files will come later after more testing.....
--
Here are my settings, I don not think the config delivered with the hy_vfd is good for something. Anyway thank you very much. Hope that others with Huanyang can benefit from this as well.