Spindle control
- Hippy
-
Topic Author
- Offline
- Senior Member
-
- Posts: 57
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
- Posts: 4989
- Thank you received: 1456
Please Log in or Create an account to join the conversation.
- Hippy
-
Topic Author
- Offline
- Senior Member
-
- Posts: 57
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
- Posts: 4989
- Thank you received: 1456
Please Log in or Create an account to join the conversation.
- Hippy
-
Topic Author
- Offline
- Senior Member
-
- Posts: 57
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23320
- Thank you received: 4946
www.ebay.co.uk/itm/182585904544
But I would probably recommend that you find one with three terminals (for an earth / gnd wire). They cost more, but have telltale LEDS and the connection does actually need a GND side.
www.ebay.co.uk/itm/282390120051
Be prepared for the possibility that your VFD is a fake and that it does not actually support serial comms. (some others have found this to be the case).
I found that DMX cable is nice for modbus (2 conductor + shield) and in trying to find an example I came across:
www.ebay.co.uk/itm/151981583665
Which might be an interesting and neat way to wire up to a VFD. (but there is also a chance that high-frequency noise in the power side would prevent the serial-comms side from working at all)
Please Log in or Create an account to join the conversation.
- Hippy
-
Topic Author
- Offline
- Senior Member
-
- Posts: 57
- Thank you received: 2
I have verified via lst dev/tty* that indeed it is connected to ttyUSB0
have the adapter connected on the vfd to terminals RS+ RS- ( i have swapped the wires around but no difference) and have a red led lit on the adapter.
I have my vfd set according to man vfd page
I am stumped been at this for days, hopefully it is just my ignorance of some little thing.
Please Log in or Create an account to join the conversation.
- Hippy
-
Topic Author
- Offline
- Senior Member
-
- Posts: 57
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23320
- Thank you received: 4946
I don't know, because the ones that don't support serial comms simply have the chips missing, as I understand it. If you look through the ebay adverts some of them sellinng genuine HY have a guide to spotting the differences.between genuine and fake.How would i know if i had one that does not support serial comms?
Have you enabled sertial control at the VFD end?I have installed the usb - rs485 that was suggested in the link above. But there is no connection
and when in terminal i use " loadusr hy_vfd /dev/ttyUSB0" it replies with loadusr command not found.
You either need "halcmd loadusr..." for a one-off command, "halcmd -kf" to enter the runnning HAL environment and stay there, or "halrun" to start a realtime environment if lInuxCNC is not already running.
Please Log in or Create an account to join the conversation.
- Hippy
-
Topic Author
- Offline
- Senior Member
-
- Posts: 57
- Thank you received: 2
Had complete comms failure, but now it is fixed. Had to set parity to odd (pd165 = 5). Now can start/stop spindle in terminal. This is how my loadusr looks now -W hy_vfd -d /dev/ttyUSB0 -p odd -r 19200
Now to finish up connecting HAL pins....Thanks again Andy!
Please Log in or Create an account to join the conversation.