Huanyang vfd Plug-in

More
10 years 3 months ago #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

Please Log in to join the conversation.

More
10 years 3 months ago #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

Please Log in to join the conversation.

More
10 years 3 months ago #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 to join the conversation.

More
10 years 3 months ago #77214 by andypugh
Replied by andypugh on topic Huanyang vfd Plug-in

LucaPlotter wrote: loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd


This might ned to be something like
Code:
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 to join the conversation.

More
10 years 3 months ago #77221 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
Return this

Attachment not found

Please Log in to join the conversation.

More
10 years 3 months ago #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:
Code:
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
Code:
show pin
and you will get a list of the vfd pins.

Please Log in to join the conversation.

  • seb_kuzminsky
  • New Member
  • New Member
More
10 years 3 months ago #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 to join the conversation.

More
10 years 3 months ago #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 !!!

Attachment not found

Please Log in to join the conversation.

More
10 years 3 months ago #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 to join the conversation.

More
10 years 3 months ago #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 to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum