RS485 Communication Problem with HY Inverter
21 Sep 2019 16:27 #145765
by macsddau
RS485 Communication Problem with HY Inverter was created by macsddau
Hi.
I'm trying to control the 2.2kW spindle connected to a Huanyang Inverter HY022223B through the RS485 link.
I have followed this video tutorial to help me configuring.
But nothing append. Spindle doesn't work.
I have found on the forum command lines to get some test out of LinuxCNC.
The last line return infinite error :
Can you help me to solve this issue ?
I'm trying to control the 2.2kW spindle connected to a Huanyang Inverter HY022223B through the RS485 link.
I have followed this video tutorial to help me configuring.
But nothing append. Spindle doesn't work.
I have found on the forum command lines to get some test out of LinuxCNC.
halcmd loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1
halcmd setp spindle-vfd.enable 1
The last line return infinite error :
ERROR invalid crc received 6100 - crc_calc 9664 (-16)
error reading setup from VFD, retrying
Can you help me to solve this issue ?
Please Log in or Create an account to join the conversation.
22 Sep 2019 09:19 #145831
by Hakan
Replied by Hakan on topic RS485 Communication Problem with HY Inverter
Double and triple check that the settings in PD16x matches what you have on the loadrt line.
Other than that it can be a cabling issue. I have had good luck with a twisted cable pair from
a network cable. You can also try to connect the cable with reversed polarity.
Also make sure the copper is in contact in the terminal of the vfd and not the insulation of the cable. Don't ask...
Other than that it can be a cabling issue. I have had good luck with a twisted cable pair from
a network cable. You can also try to connect the cable with reversed polarity.
Also make sure the copper is in contact in the terminal of the vfd and not the insulation of the cable. Don't ask...
The following user(s) said Thank You: macsddau
Please Log in or Create an account to join the conversation.
22 Sep 2019 12:44 #145835
by macsddau
Replied by macsddau on topic RS485 Communication Problem with HY Inverter
Thanks Hakan.
Effectively, Pinout of USB converter is not written on it. Data- and Data+ were inverted.
I can now run the spindle with LinuxCNC !
Effectively, Pinout of USB converter is not written on it. Data- and Data+ were inverted.
I can now run the spindle with LinuxCNC !
Please Log in or Create an account to join the conversation.
22 Sep 2019 14:53 #145854
by pl7i92
Replied by pl7i92 on topic RS485 Communication Problem with HY Inverter
Hi please for the others with the same Problem facing it
can you do a QUICK image and connection schema
that will help more of NEW CNC people
can you do a QUICK image and connection schema
that will help more of NEW CNC people
Please Log in or Create an account to join the conversation.
22 Sep 2019 16:43 #145865
by macsddau
Replied by macsddau on topic RS485 Communication Problem with HY Inverter
Here some pictures :
The USB to RS485 converter :
White wire (D+) has to be inverted with the blue wire (D-). pinout of the converter is :
Cable is a twisted shield pair without connecting shield (length is above 1,2m 47in) and RS485 works not very quickly (9600 Bauds)
And the connection into the HY inverter :
There's no schematic.
The Router CNC console is now closed. I will normally not open it yet until router table is made ... wait and see...
The USB to RS485 converter :
White wire (D+) has to be inverted with the blue wire (D-). pinout of the converter is :
Left | GND |
Center | D+ |
Right | D- |
And the connection into the HY inverter :
There's no schematic.
The Router CNC console is now closed. I will normally not open it yet until router table is made ... wait and see...
Attachments:
Please Log in or Create an account to join the conversation.
- ronny130286
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
22 Oct 2019 01:23 #148508
by ronny130286
Replied by ronny130286 on topic RS485 Communication Problem with HY Inverter
Hi,
you can try this: github.com/esp8266/source-code-examples/issues/26
I had a similar problem, the result, my Debian 9 user had no rights to read the dev/tty*. You can temporarily test with the description in the first post (see link) if it's okay so do this from second post.
Maybe it helps.
you can try this: github.com/esp8266/source-code-examples/issues/26
I had a similar problem, the result, my Debian 9 user had no rights to read the dev/tty*. You can temporarily test with the description in the first post (see link) if it's okay so do this from second post.
Maybe it helps.
Please Log in or Create an account to join the conversation.
- macsddau@linuxcnc
- Offline
- Premium Member
Less
More
- Posts: 142
- Thank you received: 28
22 Oct 2019 07:24 #148533
by macsddau@linuxcnc
It was a wiring issue. D+ & D- where inverted. It was solved and it works good on LinuxCNC 2.7.14 Debian 7 Wheezy.
For the fun, I have make a install LinuxCNC 2.8 pre1 on Linux Mint 19.1 with RT preempt and RS communication doesn't work. I have already try this solution but it doesn't solve the problem.
Replied by macsddau@linuxcnc on topic RS485 Communication Problem with HY Inverter
Hi,
you can try this: github.com/esp8266/source-code-examples/issues/26
I had a similar problem, the result, my Debian 9 user had no rights to read the dev/tty*. You can temporarily test with the description in the first post (see link) if it's okay so do this from second post.
Maybe it helps.
It was a wiring issue. D+ & D- where inverted. It was solved and it works good on LinuxCNC 2.7.14 Debian 7 Wheezy.
For the fun, I have make a install LinuxCNC 2.8 pre1 on Linux Mint 19.1 with RT preempt and RS communication doesn't work. I have already try this solution but it doesn't solve the problem.
Please Log in or Create an account to join the conversation.
26 Oct 2019 21:09 #148850
by andypugh
Replied by andypugh on topic RS485 Communication Problem with HY Inverter
It is quite likely that the serial port name is different (possibly very different) with the new OS. Did you change that?
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds