failure Huanyang VFD HY01D523B

More
17 Mar 2022 12:15 - 17 Mar 2022 13:30 #237530 by Manu663
I followed your advice but ... No luck.
I get an error message before averything's closing. (shown below)




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 ]
Attachments:
Last edit: 17 Mar 2022 13:30 by Manu663. Reason: spell check + photos + ttyUSB0 correction

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

More
17 Mar 2022 15:31 #237534 by andypugh
You need -pnone (no parity)

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

More
17 Mar 2022 16:28 #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 or Create an account to join the conversation.

More
17 Mar 2022 16:49 - 17 Mar 2022 16:50 #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

File Attachment:

File Name: CNC.ini
File Size:3 KB

File Attachment:

File Name: custom.hal
File Size:1 KB

File Attachment:

File Name: CNC.hal
File Size:5 KB
Attachments:
Last edit: 17 Mar 2022 16:50 by Manu663.

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

More
17 Mar 2022 16:53 #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 or Create an account to join the conversation.

More
17 Mar 2022 17:17 #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 or Create an account to join the conversation.

More
17 Mar 2022 17:38 #237545 by andypugh
And parity?

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

More
17 Mar 2022 17:44 - 17 Mar 2022 17:44 #237546 by Manu663
parity none
Last edit: 17 Mar 2022 17:44 by Manu663.

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

More
17 Mar 2022 22:43 #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:
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 or Create an account to join the conversation.

More
18 Mar 2022 15:55 - 18 Mar 2022 16:24 #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
 
Attachments:
Last edit: 18 Mar 2022 16:24 by Manu663.

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

Moderators: piasdom
Time to create page: 0.326 seconds
Powered by Kunena Forum