Huanyang vfd Plug-in

More
09 Jul 2016 09:25 #77209 by LucaPlotter
Goodmorning everyone,
I approached recently in the world of linux and the cnc I'm trying to make this "plug-in" github.com/bebro/linuxcnc-huanyang-vfd with linux cnc on Debian but when I go to run the Makefile I get this error,

The required program "comp" could not be found
The required program "comp" could not be found
Makefile:7 : *** Required files for building component not present.

what could be my problem?

Thank you
Attachments:

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

More
09 Jul 2016 09:43 #77210 by andypugh
Replied by andypugh on topic Huanyang vfd Plug-in
In the recent versions of LinuxCNC the hal compiler has changed name to "halcompile'. Also
in the recent versions of LinuxCNC the hy_vfd component is built-in, you don't need to compile it.
linuxcnc.org/docs/2.7/html/man/man1/hy_vfd.1.html

Just add it to your HAL file and run the spindle.

Sample HAL snippet
github.com/LinuxCNC/linuxcnc/blob/2957cc...fig-files/custom.hal
The following user(s) said Thank You: LucaPlotter

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

More
09 Jul 2016 09:59 #77212 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
so sorry, I just paste these lines


# Load the Huanyang VFD user component
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd

# connect the spindle direction pins to the VFD
net hy-fwd <= motion.spindle-forward => spindle-vfd.spindle-fwd
net hy-rev <= motion.spindle-reverse => spindle-vfd.spindle-rev

# connect the spindle on pin to the VFD
net hy-on <= motion.spindle-on => spindle-vfd.spindle-on

# connect the spindle RPM to the VFD
# Note: spindle-cmd created by stepconf wizard
net spindle-cmd => spindle-vfd.speed-command



in my * .HAL and my communication with rs485 I can control my vfd ?

course setting before the VFD .

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

More
09 Jul 2016 11:08 #77214 by andypugh
Replied by andypugh on topic Huanyang vfd Plug-in

loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd


This might ned to be something like
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -d /dev/ttyUSB0
So that the system knows where the modbus dongle is connected.
(basically do ls /dev/tty*, then plug in the dongle, then repeat the ls /dev/tty* and see what the new one is called)

You might have to edit-out some conflicts if the motion.spindle-xxxx pins are already connected in the HAL.

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

More
09 Jul 2016 15:02 #77221 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
Return this

Attachments:

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

More
09 Jul 2016 15:50 #77223 by andypugh
Replied by andypugh on topic Huanyang vfd Plug-in
Try a trial run, without the rest of LinuxCNC. Open a terminal window and type:
halrun
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -d /dev/ttyUSB0

And see what output you get. If it gives no error, then type
show pin
and you will get a list of the vfd pins.

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

More
09 Jul 2016 15:51 #77224 by seb_kuzminsky
Replied by seb_kuzminsky on topic Huanyang vfd Plug-in
When I included the Huanyang VFD driver in LinuxCNC I made some changes to it, for simplicity and to be consistent with existing LinuxCNC drivers. The differences are listed here: linuxcnc.org/docs/2.7/html/getting-start...c.html#_huanyang_vfd

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

More
09 Jul 2016 16:21 #77227 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
excuse me are not very good with linux I did what you told me is out of the pin list but still does not start, debian wheezy use with linux cnc completely updated !! HELP !!!
Attachments:

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

More
09 Jul 2016 17:00 #77228 by andypugh
Replied by andypugh on topic Huanyang vfd Plug-in
You seem to have spindle-vfd.spindle-fwd but the pin name is spindle-vfd.spindle-forward

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

More
09 Jul 2016 17:11 #77229 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
then , making a small summary ... the files needed for communication between my LinuxCNC and vfd via RS485 there I've got it .
in my hal I glued those lines that you said

My spindle is called " spindle- vfd.spindle -forward "

But I keep getting that error when I start my configuration !

What should I try again ?

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

Time to create page: 0.110 seconds
Powered by Kunena Forum