failure Huanyang VFD HY01D523B

More
4 years 7 months ago #236584 by andypugh
I found that my HY VFD was ignoring parity settings so had to configure the driver to suit the VFD rather than vice-versa.

More details here: forum.linuxcnc.org/24-hal-components/292...-2-7?start=50#205997

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

More
4 years 7 months ago - 4 years 7 months ago #236872 by Manu663
Thank you again Andy for the follow up!
Well, today I wanted to know more about the VFD and its ability to communicate on the serial port.
So I downloaded a little software on a window laptop :    github.com/GilchristT/SpindleTalker2/releases  and after a few adjustments, I was finally able to start the spindle and vary its speed with my USB - RS232 dongle.
a little more reassured, I took the opportunity to check the baud rate: 9600

I read carefully the topic you quoted in which you had to adapt the driver to the VFD and I can't think of anything else to try:
Linuxcnc config identical to before the failure
VFD and its identical config 
the only things that have changed: 
the computer and the USB-RS232 adapter

I don't understand all the arguments you use in :

loadusr -Wn spindle-vfd hy_vfd -S 24000 -F 400 -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 19200 -s 1 -g


and so I'll just copy the line over and replace my actual one which is 

loadusr -wn vfd hy_vfd -n vfd -d /dev/ttyUSB0 -p none -r 9600

with one change, I'll replace 19200 with 9600 (baud rate)
Does this make sense to you or am I wrong again?
Last edit: 4 years 7 months ago by Manu663.

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

More
4 years 7 months ago #236905 by andypugh
The options are all listed here:
linuxcnc.org/docs/2.8/html/man/man1/hy_vfd.1.html

I think that I decided to set them all (or most of them)

I think that

-t 1

was important, and

-p none -s 1

Because the VFD was ignoring my parity / stop settings and so I had to make LinuxCNC match the VFD.

-g is there to give more feedback. I probably ought to turn it off now.

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

More
4 years 7 months ago - 4 years 7 months ago #237007 by Manu663
Well after a bit of adaptation to fit with my config (shown below)
loadusr -Wn vfd hy_vfd -S 24000 -F 400 -n vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1 -g
I get this result: 
Any idea ?


I played with baudrate, parity, bit stop, no change .
 
Last edit: 4 years 7 months ago by Manu663.

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

More
4 years 7 months ago #237274 by andypugh
What is the current situation? Can you control the spindle via the link with Spindle Talker and not with LinuxCNC? Or does it not work with either?

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

More
4 years 7 months ago - 4 years 7 months ago #237306 by Manu663
Yes I can control the spindle via the link with Spindle Talker and not with LinuxCNC.

I get the below message through the console:

Found file (REL): ./custom.hal
vfd: device='/dev/ttyUSB0', baud=19200, bits=8, parity='none', stopbits=2, address=1, debug=1, PID=9584
Opening /dev/ttyUSB0 at 19200 bauds (none)
Found file (REL): ./joypad_V3.hal
read_setup: reading setup parameters:

query length = 6
hycomm query = [01] [01] [03] [05] [00] [00] [2C] [4F] 
query_ret = 8
response_lenght_computed = 8
waiting for message (8 bytes)...
WAIT_DATA(): comms time out


I've tried to to connect the cable with reversed polarity to check and the message is different (something like ERROR invalid crc received. I did not captured the whole message as I inverted again the wires to retrieve the initial (and right) wiring.
 
Last edit: 4 years 7 months ago by Manu663. Reason: Some more info added

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

Time to create page: 0.291 seconds
Powered by Kunena Forum