hy vfd rs 485 gmoccapy

More
25 Jul 2021 16:20 - 25 Jul 2021 16:21 #215877 by Aciera
Replied by Aciera on topic hy vfd rs 485 gmoccapy
And you are sure you are using this to load the component:
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1
Last edit: 25 Jul 2021 16:21 by Aciera.

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

More
25 Jul 2021 16:25 - 25 Jul 2021 16:29 #215878 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy

And you are sure you are using this to load the component:
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1
So, I do this:
sudo chmod 666 /dev/ttyUSB0
halrun
[code]loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1

setp spindle-vfd.enable 1

and it gives me same error: error reading setup from VFD

And yes, my hy vfd is set to these settings.
Pd001 - 2
Pd002 - 2
Pd163 - 1
Pd164 - 1
Pd165 - 3
 
[/code]

Last edit: 25 Jul 2021 16:29 by Pauchuk. Reason: added setp spindle-vfd.enable 1

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

More
25 Jul 2021 16:30 #215879 by Aciera
Replied by Aciera on topic hy vfd rs 485 gmoccapy
Ok.

Have you tried adding the debug option to the loadusr command?
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1 -g

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

More
25 Jul 2021 16:33 #215882 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy

Ok.

Have you tried adding the debug option to the loadusr command?
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1 -g
 

halcmd: loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1 -g
spindle-vfd: device='/dev/ttyUSB0', baud=9600, bits=8, parity='none', stopbits=1, address=1, debug=1, PID=4356
Opening /dev/ttyUSB0 at 9600 bauds (none)

then setp spindle-vfd.enable 1

and:

ERROR Communication time out (-12)
read_setup: FAILED
error reading setup from VFD, retrying
read_setup: reading setup parameters:

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

 

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

More
25 Jul 2021 16:40 #215885 by Aciera
Replied by Aciera on topic hy vfd rs 485 gmoccapy
The next thing I'd be replacing was the wiring between the RS485 adaptor and the vfd using shielded cable connecting the shield to ground on the vfd or computer or possibly both.

But it's really difficult to troubleshoot this from afar.
Anyway I have run out of time for today. I'm sorry we have not found a solution for this.

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

More
25 Jul 2021 16:41 #215886 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy

The next thing I'd be replacing was the wiring between the RS485 adaptor and the vfd using shielded cable connecting the shield to ground on the vfd or computer or possibly both.

But it's really difficult to troubleshoot this from afar.
Anyway I have run out of time for today. I'm sorry we have not found a solution for this.

Thank you :)
I dont think wiring is a problem here, I use simple wires, 30 cm long. It works on windows, mach3 as well.

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

More
31 Jul 2021 23:27 #216524 by andypugh
Replied by andypugh on topic hy vfd rs 485 gmoccapy
Late to the party here, but:

Which model of HY VFD are you using? There are two possible HY drivers:

linuxcnc.org/docs/2.8/html/man/man1/hy_vfd.1.html
linuxcnc.org/docs/2.8/html/man/man1/hy_gt_vfd.1.html

If it all works with Windows then we can probably discount hardware as the cause, but I use one of these and it does have the advantage of being rather neater as an installation:
www.amazon.co.uk/gp/product/B082KKG55T
(I cut off the crocodile clips)

Are you _sure_ it isn't working? It is easy to forget to set the hy_vfd.enable pin to 1, and if you don't do that then it won't work.

I get some spurious error messages even with a working system.

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

Time to create page: 0.136 seconds
Powered by Kunena Forum