- LinuxCNC
- General LinuxCNC Questions
- Competing interests of VFD and XHC-HB04 (with my own ignorance!)
Competing interests of VFD and XHC-HB04 (with my own ignorance!)
- curtisa
- Offline
- Premium Member
- Posts: 88
- Thank you received: 15
Earlier I did a reset on the VFD (PD013 8) in case this unit had been used before (no real evidence) and not reset. I then set the numbers as
PD001 = 2 (Accept commands via RS485)
PD002 = 2 (Accept drive frequency commands via RS485)
PD163 = 1 (Set RS485 slave address to 1)
PD164 = 2 (Set RS485 baud rate to 19200)
PD165 = 3 (Set RS485 comms parameters to 8 bits, no parity, 1 stop bit)
Just noticed another error in your testing. In your second txt file you attached where you were still getting (-12) errors after issuing 'setp hy_vfd.enable 1', you've used the incorrect 'loadusr' command for the given PD165 VFD setting:
loadusr -W hy_vfd -d /dev/ttyUSB0 -p even -r 19200
This should be:
loadusr -W hy_vfd -d /dev/ttyUSB0 -p none-r 19200
Please Log in or Create an account to join the conversation.
- TRAUPMANN00
- Topic Author
- Offline
- Junior Member
- Posts: 33
- Thank you received: 0
Will advise.
Please Log in or Create an account to join the conversation.
- billykid
- Offline
- Platinum Member
- Posts: 507
- Thank you received: 79
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d /dev/ttyUSB0 -p none -r 9600 -s 1
regards
Mauro
Please Log in or Create an account to join the conversation.
- curtisa
- Offline
- Premium Member
- Posts: 88
- Thank you received: 15
The baud and parity have been in a constant of testing.
Yes, but you're specifying even parity in your 'loadusr' command when you have the Huanyang set to no parity:
PD165 = 3 (Set RS485 comms parameters to 8 bits, no parity, 1 stop bit)
loadusr -W hy_vfd -d /dev/ttyUSB0 -p even -r 19200
Please Log in or Create an account to join the conversation.
- billykid
- Offline
- Platinum Member
- Posts: 507
- Thank you received: 79
Please Log in or Create an account to join the conversation.
- TRAUPMANN00
- Topic Author
- Offline
- Junior Member
- Posts: 33
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- TRAUPMANN00
- Topic Author
- Offline
- Junior Member
- Posts: 33
- Thank you received: 0
drive.google.com/file/d/1-fgPxOtMKleV74i...RTP/view?usp=sharing
If someone who speaks Chinese you may be able to listen and find out what this software is:
I would like to find similar software for use on a Debian system.
I do not have a PC near the VFD, nor 220V near my PC.
Please let me know.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10841
- Thank you received: 3579
Try this download link
en.tzonedigital.cn/en/tools/details/10.aspx
There are a number of modbus simulators that turn up on a google search.
Please Log in or Create an account to join the conversation.
- TRAUPMANN00
- Topic Author
- Offline
- Junior Member
- Posts: 33
- Thank you received: 0
What commands do I send it??
Checked out numerous softwares and none are easy enough for me to manage ;-(
Please Log in or Create an account to join the conversation.
- curtisa
- Offline
- Premium Member
- Posts: 88
- Thank you received: 15
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Competing interests of VFD and XHC-HB04 (with my own ignorance!)