failure Huanyang VFD HY01D523B

More
4 years 7 months ago #237310 by andypugh
Can you set the VFD to 19200? It very much looks like the LinuxCNC driver is ignoring your request for 9600 baud.
The driver defaults to 19200 and it might just be easier to set the VFD to match.

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

More
4 years 7 months ago #237313 by Manu663
Yes i've also tried to set the VFD to 19200 bauds but i get the same result.

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

More
4 years 7 months ago #237314 by andypugh
I see that the driver is also showing two stop bits in the output, despite being set to 1 in the last loadusr line you showed.

Can you show your current loadusr line and the corresponding output from the driver? Something isn't adding up.

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

More
4 years 7 months ago #237477 by Manu663
First of all, thank you again Andy for not letting me down. I still don't have an encouraging result but not feeling alone is already a lot! 
I have made so many changes that I wanted to start again from the beginning.
Here's what I get:
  

 

The values on the VFD are as follows:
PD163: 1
PD164: 2
PD165: 3
PD1: 2
PD2: 2
and the jumper J1 is in the position V1

 

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

More
4 years 7 months ago #237485 by andypugh
OK, I just checked mine (which works) and the settings are like yours.

I then have:
Code:
loadusr -W hy_vfd -d /dev/ttyUSB0 -r 19200 -b8 -pnone -s1 -t1 net amp-enable hy_vfd.enable net spindle-fwd spindle.0.forward => hy_vfd.spindle-forward net spindle-rev spindle.0.reverse => hy_vfd.spindle-reverse net spindle-on spindle.0.on => hy_vfd.spindle-on net spindle-speed-abs spindle.0.speed-out-abs => hy_vfd.speed-command net spindle-at-speed hy_vfd.spindle-at-speed spindle.0.at-speed

(Copied and pasted directly from the working system, inconsistent spacing and all)

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

More
4 years 7 months ago #237486 by andypugh
(Note that the amp-enable signal is set somewhere else in the HAL file...)

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

Time to create page: 0.401 seconds
Powered by Kunena Forum