Huanyang Inverter control
- Craig E
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 2
19 Jun 2021 13:12 #212398
by Craig E
Huanyang Inverter control was created by Craig E
Hey everyone,
I am having trouble controlling the HY inverter I am not using the USB device that most people use because I had this one already.
Also I am using a RPI 4 to run Linuxcnc. I am not sure what I need to change in the custom HAL files to access the inverter please see my attached files my device is on Bus 2 ID 4 at the top of USB.txt file but I have no clue how to identify it in the dev_tty.txt or if I did what would I need to change from the examples on the internet where the are USB0?
Any help is appreciated.
I am having trouble controlling the HY inverter I am not using the USB device that most people use because I had this one already.
Also I am using a RPI 4 to run Linuxcnc. I am not sure what I need to change in the custom HAL files to access the inverter please see my attached files my device is on Bus 2 ID 4 at the top of USB.txt file but I have no clue how to identify it in the dev_tty.txt or if I did what would I need to change from the examples on the internet where the are USB0?
Any help is appreciated.
Attachments:
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
21 Jun 2021 10:34 #212547
by andypugh
Replied by andypugh on topic Huanyang Inverter control
Which one did you have already?
It is possible that you need a driver for the USB-to-Serial device. (If, indeed, you are using a USB device. It isn't at all clear from your message)
As far as I can make out, the device that you are showing data for is a USB to Ethernet device. That won't show up as a tty, and is also very unlikely to work to control a Modbus device.
It is possible that you need a driver for the USB-to-Serial device. (If, indeed, you are using a USB device. It isn't at all clear from your message)
As far as I can make out, the device that you are showing data for is a USB to Ethernet device. That won't show up as a tty, and is also very unlikely to work to control a Modbus device.
The following user(s) said Thank You: Craig E
Please Log in or Create an account to join the conversation.
- Craig E
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 2
21 Jun 2021 16:11 #212558
by Craig E
Replied by Craig E on topic Huanyang Inverter control
Thanks, That is what I thought I had the USB to Ethernet which I assumed was and RS485 but looks like that is not what I need. I just ordered the device that everyone else is using. I will give that a try when I receive it.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
22 Jun 2021 00:01 #212620
by andypugh
Replied by andypugh on topic Huanyang Inverter control
I am using one of these, with the croc-clips cut off:
www.amazon.co.uk/gp/product/B082KKG55T
Works nicely.
www.amazon.co.uk/gp/product/B082KKG55T
Works nicely.
Please Log in or Create an account to join the conversation.
- Craig E
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 2
23 Jun 2021 00:01 #212708
by Craig E
Replied by Craig E on topic Huanyang Inverter control
I ordered the other ones with the screw terminals 2 for 6 $ so is they fail or don't work I will get one like yours it is a lot cleaner.
Please Log in or Create an account to join the conversation.
- Craig E
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 2
23 Jun 2021 23:46 #212771
by Craig E
Replied by Craig E on topic Huanyang Inverter control
I received the USB to tty and now I can see it on ttyusb0 but I have something wrong in the hal file
If someone will let me know what is wrong I would appreciate it.
# Include your custom HAL commands here
# This file will not be overwritten when you run PNCconf again
loadusr hy_vfd -n vfd -d /dev/ttyusb0 -p none -r 19200
net spindle-cmd-rpm => spindle-vfd.speed-command
net spindle-cw motion.spindle-forward => vfd.spindle-forward
net spindle-ccw motion.spindle-reverse => vfd.spindle-reverse
net on motion.spindle-on => vfd.spindle.on
set vfd.enable 1
If someone will let me know what is wrong I would appreciate it.
# Include your custom HAL commands here
# This file will not be overwritten when you run PNCconf again
loadusr hy_vfd -n vfd -d /dev/ttyusb0 -p none -r 19200
net spindle-cmd-rpm => spindle-vfd.speed-command
net spindle-cw motion.spindle-forward => vfd.spindle-forward
net spindle-ccw motion.spindle-reverse => vfd.spindle-reverse
net on motion.spindle-on => vfd.spindle.on
set vfd.enable 1
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
28 Jun 2021 12:57 #213128
by andypugh
Replied by andypugh on topic Huanyang Inverter control
You are calling the VFD "vfd" which is entirely sensible (-n vfd)
This means that all the pins for the vfd will start with vfd.
But you are trying to net a pin called spindle-vfd.speed-command.
Change that to vfd.speed-command
This means that all the pins for the vfd will start with vfd.
But you are trying to net a pin called spindle-vfd.speed-command.
Change that to vfd.speed-command
Please Log in or Create an account to join the conversation.
- Craig E
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 2
28 Jun 2021 23:15 #213194
by Craig E
Replied by Craig E on topic Huanyang Inverter control
@andypugh I have corrected that and try all different commands but I cannon get it to work in LinuxCNC I can get it to work on a terminal
I know it is probably something dumb but I cant figure it out.
I know it is probably something dumb but I cant figure it out.
Attachments:
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
28 Jun 2021 23:25 #213195
by andypugh
Replied by andypugh on topic Huanyang Inverter control
What problem do you see? Is there an error message, or just a lack of spindle rotation?
The first thing to check is the "other ends" of your signals, for example is "spindle-cw-spindle-forward" connected to "spindle.0.forward" somewhere in another HAL file?
The first thing to check is the "other ends" of your signals, for example is "spindle-cw-spindle-forward" connected to "spindle.0.forward" somewhere in another HAL file?
Please Log in or Create an account to join the conversation.
- Craig E
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 2
29 Jun 2021 11:52 #213228
by Craig E
Replied by Craig E on topic Huanyang Inverter control
There are no errors only no rotation. I checked the halshow meter and some of the signals are not updating. I missed the memo on updating the HAL file to connect any of the xxx.0.xxx so that may be the issue. Is there an example of how that is done? is it => like the pins?
Please Log in or Create an account to join the conversation.
Time to create page: 0.105 seconds