failure Huanyang VFD HY01D523B

More
4 years 7 months ago #237530 by Manu663
I followed your advice but ... No luck.
I get an error message before averything's closing. (shown below)

Attachment not found



Attachment not found



The strange thing is the line concerning the port used for the VFD link USB  (S0???)
[EDIT: forget about what I said concerning ttyUSB0, I've forgotten the argument -d ]

Please Log in to join the conversation.

More
4 years 7 months ago #237534 by andypugh
You need -pnone (no parity)

Please Log in to join the conversation.

More
4 years 7 months ago #237536 by andypugh
Is custom.hal last in the list in the INI? I am wondering why we have no joint.1.amp-enable.

For simplicity you could try

setp hy_vfd.enable 1

Instead.

Please Log in to join the conversation.

More
4 years 7 months ago #237539 by Manu663
Parity set to none and setp hy_vfd.enable 1 added in Custom hal file
I have the below message before closure:
./custom.hal:11: parameter or pin 'hy_vfd.enable' not found

I've attched the .ini, .hal & custom.hal files

Attachment not found

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
4 years 7 months ago #237540 by andypugh
OK. So you have decided to change the name of the VFD with the -n option.

use vfd.enable instead.

Please Log in to join the conversation.

More
4 years 7 months ago #237543 by Manu663
Ok, i've set it as follows:
setp vfd.enable 1

But i got the same message as at the beginning .
Read setup failed
Error reading setup from vfd retrying
Coms time out

Please Log in to join the conversation.

More
4 years 7 months ago #237545 by andypugh
And parity?

Please Log in to join the conversation.

More
4 years 7 months ago #237546 by Manu663
parity none

Please Log in to join the conversation.

More
4 years 7 months ago #237581 by andypugh
I am at a loss. Though I have just noticed that you are _still_ not using the command line that I suggested; you have dropped the -b8

Does it definitely not work, (ie, ignore the messages and carry on regardless)

Note that it is often easier to debug in a live HAL session. With Linuxcnc _not_ running, open a terminal and:
Code:
halrun loadusr -W hy_vfd -d /dev/ttyUSB0 -r 19200 -b8 -pnone -s1 -t1 show pin setp hy_vfd.enable 1 setp hy_vfd.spindle-forward 1 setp hy_vfd.spindle-on 1 setp hy_vfd.speed-command 10000

Please Log in to join the conversation.

More
4 years 7 months ago #237647 by Manu663
I'm really sorry but I seem to have completely forgotten your suggestion about the -b8 argument.
It's really beyond my control and I have to explain: my machine is located in my garage with no possible network coverage and I have to resort to pictures taken with my phone to apply the suggested corrections. It is likely that I have lost a piece between the garage and my computer upstairs.
I am confused and apologise for this.

I will immediately try the lines of code you gave me and stick to them strictly.

[EDIT] When I enter the line 'setp hy_vfd.enable 1' I get comms time out as shown below
 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum