HY_VFD RS-485 HAL config
- scsmith1451
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
04 Jul 2025 13:10 - 04 Jul 2025 13:14 #331233
by scsmith1451
HY_VFD RS-485 HAL config was created by scsmith1451
Re-configuring my DIY Router Mill to use LinuxCNC after MACH3 began glitching on me. At this point I'm trying to get my HY_VFD to respond via RS-485. Under Mach3 this RS-485 adapter worked great, but not getting any response now.
I found this HAL file on line for the HY-VFD RS-485 config:
# Include your custom HAL commands here
# This file will not be overwritten when you run PNCconf again
# RS-485 Spindle Control
loadusr -Wn vfd hy_vfd -n vfd -d /dev/bus/usb/004/002 -p none -r 19200
net spindle-vel-cmd-rpm-abs vfd.speed-command
net spindle-enable vfd.spindle-on
net spindle-cw vfd.spindle-forward
net spindle-ccw vfd.spindle-reverse
net spindle-at-speed vfd.spindle-at-speed
setp vfd.enable 1
having replaced the device reference with the output of lsusb for my machine.
When I issue a M3 S6000 command via MDI, nothing happens. Would someone please help me resolve this issue?
The above HAL config is in custom.hal. I'm running LCNC 2.9.4 on Debian 12.
Also, on a fairly regular basis I get the following error on startup of LCNC:
Debug file information:
Note: Using POSIX realtime
tcsetattr
: Inappropriate ioctl for device
./custom.hal:4: waitpid failed hy_vfd vfd
./custom.hal:4: hy_vfd exited without becoming ready
5241
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7f1e95251000
Note: Using POSIX realtime
I found this HAL file on line for the HY-VFD RS-485 config:
# Include your custom HAL commands here
# This file will not be overwritten when you run PNCconf again
# RS-485 Spindle Control
loadusr -Wn vfd hy_vfd -n vfd -d /dev/bus/usb/004/002 -p none -r 19200
net spindle-vel-cmd-rpm-abs vfd.speed-command
net spindle-enable vfd.spindle-on
net spindle-cw vfd.spindle-forward
net spindle-ccw vfd.spindle-reverse
net spindle-at-speed vfd.spindle-at-speed
setp vfd.enable 1
having replaced the device reference with the output of lsusb for my machine.
When I issue a M3 S6000 command via MDI, nothing happens. Would someone please help me resolve this issue?
The above HAL config is in custom.hal. I'm running LCNC 2.9.4 on Debian 12.
Also, on a fairly regular basis I get the following error on startup of LCNC:
Debug file information:
Note: Using POSIX realtime
tcsetattr
: Inappropriate ioctl for device
./custom.hal:4: waitpid failed hy_vfd vfd
./custom.hal:4: hy_vfd exited without becoming ready
5241
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7f1e95251000
Note: Using POSIX realtime
Last edit: 04 Jul 2025 13:14 by scsmith1451.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 758
- Thank you received: 255
04 Jul 2025 23:37 #331286
by Hakan
Replied by Hakan on topic HY_VFD RS-485 HAL config
Maybe you can find something in this old thread www.forum.linuxcnc.org/24-hal-components...b485-to-huanyang-vfd
at least to make sure the communication works.
It was a long time ago this so I doubt I can answer any questions.
at least to make sure the communication works.
It was a long time ago this so I doubt I can answer any questions.
Please Log in or Create an account to join the conversation.
Time to create page: 0.067 seconds