Huanyang vfd Plug-in

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

LucaPlotter wrote: My spindle is called " spindle- vfd.spindle -forward "

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


If you get _that_ error message, then it may be that you are not editing the right file.

The error message says that you are trying to connect to a HAL pin called "spindle-vfd.spindle-fwd"

Are you sure that the error message hasn't changed?

Please Log in to join the conversation.

More
10 years 3 months ago #77656 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
I'm sorry I have been away because I had other problems with the pc .... short try again to set all that you told me , and you upgrade .... we hope that this time functions !

Please Log in to join the conversation.

More
10 years 3 months ago #77726 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
I tried to re-edit my custom.hal continues to give me back error ,
./custom.hal:6 : waitpid failed ht_vfd spindle- vfd
./custom.hal:6 : hy_vfd exited without becoming ready

more I can not access my tty !!!

Please Log in to join the conversation.

More
10 years 3 months ago #77727 by andypugh
Replied by andypugh on topic Huanyang vfd Plug-in
I am not sure that you would expect to be able to do anything simply by typing /dev/tty

ls /dev/tty*

Should list the devices.

If you are running from a USB or DVD then you probably won't have the required access to the tty.

Please Log in to join the conversation.

More
10 years 3 months ago #77735 by pommen
Replied by pommen on topic Huanyang vfd Plug-in
Hello Luca,

I am using the build in Huanyang component to interface with my Huanyang VFD through a rs232 to modbus converter.

I am handicapped with Linux, so I cant help you any further than to let you have a look at what works for me (attached).

Hope this helps.

Please Log in to join the conversation.

More
10 years 3 months ago #77748 by vre
Replied by vre on topic Huanyang vfd Plug-in
I have made a custom gladevcp panel for huanyang vfd.

Attachment not found



Just put these files to your config folder
edit custom.hal this line
Code:
loadusr -Wn spindle-vfd hy_vfd --name spindle-vfd --device /dev/ttyUSB0 --bits 8 --parity odd --rate 38400 --stopbits 1
and put these settings to your vfd.

Also edit your machine ini file and add these lines in [DISPLAY] section
Code:
[DISPLAY] EMBED_TAB_NAME=Huanyang VFD EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x {XID} -u handler.py huanyang.glade

Your [HAL] section in you machine ini file must have
Code:
[HAL] HALFILE = custom.hal POSTGUI_HALFILE = custom_postgui.hal

last add your user to dialout group (to allow access usb_to_rs485 for your user account)
from terminal give the command
Code:
sudo usermod -a -G dialout YOUR_USERNAME


Attachment not found

Please Log in to join the conversation.

More
10 years 3 months ago #77786 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
I must really thank everyone, though .... I have done everything to the letter in detail what you have suggested , but continues to give me errors , below its place text files for the first congigurazione who proposed me " pommen ( TEST_1 ) " and for the second configuration that I proposed " vre ( test_2 ) "

I do not understand much , but I really can not understand what can be !!!! Space would indeed if I were I could !!!

Thanks very much to all !

Please Log in to join the conversation.

More
10 years 3 months ago #77791 by vre
Replied by vre on topic Huanyang vfd Plug-in
How have generated your config ?
If you generated the config with stepconf wizard you must NOT select any spindle at stepconf dialog.

Please Log in to join the conversation.

More
10 years 3 months ago #77884 by LucaPlotter
Replied by LucaPlotter on topic Huanyang vfd Plug-in
Yes, I opened again the tools " Stepconf Wizard" and I chose the modification of existing configuration with modified custom.hal , but nothing ! more usual error

Please Log in to join the conversation.

More
10 years 3 months ago #77888 by vre
Replied by vre on topic Huanyang vfd Plug-in
upload your config

Please Log in to join the conversation.

Time to create page: 0.216 seconds
Powered by Kunena Forum