failure Huanyang VFD HY01D523B
- andypugh
-
- Offline
- Moderator
-
- Posts: 23294
- Thank you received: 4938
Please Log in or Create an account to join the conversation.
- Manu663
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23294
- Thank you received: 4938
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.
- Manu663
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23294
- Thank you received: 4938
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.
- Manu663
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 0
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
Attachments:
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23294
- Thank you received: 4938
I then have:
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.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23294
- Thank you received: 4938
Please Log in or Create an account to join the conversation.
- Manu663
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23294
- Thank you received: 4938
net vfd-enable joint.1.amp-enable hy_vfd.enable
Please Log in or Create an account to join the conversation.