Mesa 7i96 need help configuring Huanyang VFD spindle over RS485 Modbus

More
15 Jun 2020 04:48 - 23 Jun 2020 04:06 #171677 by drack
I have confirmed the usb to rs485 adapter works and the vfd is communicating with spindle talker on a windows pc. I seem to be getting a communication error when I try to manually run the spindle in a terminal window with halcmd.
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
halcmd show pin

There is a communication error over and over and there is a FALSE on the hycomm_ok pin. Everything is configured the same as what worked in spindle talker for my VFD and I think there may be some settings in Debian that are messed up. Anyone know how I can get this sorted?

Edit** Updated to Linuxcnc 8 through buildbot and Pncconf Wizard has the 7i96 listed, following is no longer accurate
Warning: Spoiler!
Last edit: 23 Jun 2020 04:06 by drack.

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

More
15 Jun 2020 06:44 #171684 by bbsr_5a
Hi
you got the wrong component
use mb2hal to controll over Modebus
the component you use is for a PWM or analog 0-10V setup

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

More
15 Jun 2020 14:36 - 16 Jun 2020 19:15 #171747 by drack
Updated to Linuxcnc 2.8 buildbot and Pncconf Wizard has the 7i96 listed

Warning: Spoiler!
Last edit: 16 Jun 2020 19:15 by drack.

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

More
18 Jun 2020 17:47 - 18 Jun 2020 17:48 #172025 by drack
I have since got this sorted to be a communication issue in Debian that is not present in windows. I am currently looking for assistance in getting communications to work with the VFD and hy_vfd in terminal with halcmd. I have verified that the usb to rs485 is ttyUSB0 and that the user has dialout permissions and tried the following,
# modprobe -r ftdi_sio
# modprobe ftdi_sio vendor=0xDevice Vendor Numbers product=0xDevice Product Numbers
# ls -al /dev/ttyUSB0
crw-rw—-1 root uucp 188, 0 2008-05-08 10:59 /dev/ttyUSB0
# chmod 777 /dev/ttyUSB0

Any help would be greatly appreciated.
Last edit: 18 Jun 2020 17:48 by drack.

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

More
21 Jun 2020 20:13 #172272 by drack
I suspect the USB to RS485 adapter is the suspect. It looks the same as others used but after opening it up the "ch340T" chip does not have any markings and the M12 spot is not populated. I am going to try the one at the following link as the photo shows the chip manufacturer markings and mine is suspect to being a "ch340T" at all.

www.amazon.com/gp/product/B00NKAJGZM/ref...00_s00?ie=UTF8&psc=1

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

More
21 Jun 2020 20:44 #172273 by Hakan
In the line in the first post you seem to have written 9600-s, there should be a space after the 9600.
In the description of the hy_vfd component it is said how to enter the correct settings in the huan yang vfd. That must be done, also double check that communication settings on the loadusr line really agree with the settings in the vfd. Other than that you can try switching the A and B and if you don't already have that use twisted pair cable.
It is also helpful to see what the communication eŕror message say in full, there are a few variants.

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

More
23 Jun 2020 04:04 #172417 by drack
I just got the new USB adapter and now the VFD coms ok is true in show pin for hy_vfd. I think I will be beyond this hurdle as there was a problem with the old USB adapter, I will spend a few hours on it tomorrow.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum