hy vfd rs 485 gmoccapy

More
20 Jul 2021 11:56 - 20 Jul 2021 15:57 #215405 by Pauchuk
Hello, everyone. Thanks for your input in advance :) Past few days I have been trying to run my spindle using HY vfd drive and RS485 adapter. I could run spindle using windows 10 and Spindle Talker 2 app, so adapter works and my vfd settings are good. Now, it wont work in linuxcnc, nor axis nor gmoccapy interface. I will add all my cnc files, could someone tell me, what is the problem here.. Could there be some other settings, like USB serial etc. to look at. PS. I am new to linux. I do use debian 2.8.  Sometimes I get this error message - see photo.(when linux starting, last photo).
Update: When I use command ls /dev/tty*, I see my adapter, if I disconnect it, it disappears. If I connect + and - other way on adapter, I cannot start gmoccapy, it gives me some error on vfd.
   

File Attachment:

File Name: CNC.hal
File Size:4 KB

File Attachment:

File Name: CNC.ini
File Size:3 KB

File Attachment:

File Name: custom.hal
File Size:1 KB

File Attachment:

File Name: custom_postgui.hal
File Size:0 KB

File Attachment:

File Name: vfd.hal
File Size:1 KB

File Attachment:

File Name: pyvcp_options.hal
File Size:0 KB

File Attachment:

File Name: postgui_call_list.hal
File Size:0 KB


 
Attachments:
Last edit: 20 Jul 2021 15:57 by Pauchuk. Reason: linux does see usb

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

More
20 Jul 2021 16:22 #215423 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy
When I start linuxcnc, i get this error:

Debug file information:
HAL: ERROR: duplicate component name 'vfd'
./vfd.hal:1: waitpid failed hy_vfd vfd
./vfd.hal:1: hy_vfd exited without becoming ready
3487
Stopping realtime threads
Unloading hal components
Traceback (most recent call last):
File "/usr/bin/hal_manualtoolchange", line 66, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "/usr/lib/pymodules/python2.7/nf.py", line 118, in start
source_lib_tcl(r, "accel.tcl")
File "/usr/lib/pymodules/python2.7/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
KeyboardInterrupt
error reading setup from VFD, retrying


AND if I start one more time, it opens with no errors.

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

More
21 Jul 2021 15:59 - 21 Jul 2021 16:00 #215501 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy
Update:
Now I dont get any errors on starting linuxcnc, but vfd just wont run.

Been trying to change baud rates and other variables.

Used these commands:
   
Does this mean linux sees vfd?? :


And here (I think), I try to run it..
 
Attachments:
Last edit: 21 Jul 2021 16:00 by Pauchuk.

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

More
21 Jul 2021 20:01 - 21 Jul 2021 20:12 #215523 by Aciera
Replied by Aciera on topic hy vfd rs 485 gmoccapy
This tells you that the pins from the hy-vfd component are created so the component is running but it is not seeing a reply from the vfd.
So the question is are the setting correct for the serial port (ie baudrate, parity and so on) then the next hurdle is to get the command right that needs to be sent.
Also some VFD's need their serial interface enabled by setting the correct parameters.
Maybe try to swap the TX/RX lines
Setting up serial communication can be a bit of pain if there is no way to monitor what is happening on the line. Even worse trying to troubleshoot from afar.

[edit]
You seem to have used the VFD with the RS485 before so I guess the port settings and the vfd parameters should be ok and it looks like the component should take care of the command structure. Are you sure the RS485 to USB adapter works under linux?
Last edit: 21 Jul 2021 20:12 by Aciera.

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

More
21 Jul 2021 20:17 #215525 by billykid
Replied by billykid on topic hy vfd rs 485 gmoccapy
My vfd has this initialization line: loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -t 1 -d / dev / ttyUSB0 -p none -r 9600 -s 1
otherwise he didn't want to know ..
Attachments:

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

More
22 Jul 2021 07:08 #215552 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy

This tells you that the pins from the hy-vfd component are created so the component is running but it is not seeing a reply from the vfd.
So the question is are the setting correct for the serial port (ie baudrate, parity and so on) then the next hurdle is to get the command right that needs to be sent.
Also some VFD's need their serial interface enabled by setting the correct parameters.
Maybe try to swap the TX/RX lines
Setting up serial communication can be a bit of pain if there is no way to monitor what is happening on the line. Even worse trying to troubleshoot from afar.

[edit]
You seem to have used the VFD with the RS485 before so I guess the port settings and the vfd parameters should be ok and it looks like the component should take care of the command structure. Are you sure the RS485 to USB adapter works under linux?

Many are using rs485 with VFD`s..
How can I  swap TX/RX  lines? (explain it to a non linux person :) )
 

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

More
22 Jul 2021 12:18 #215572 by Aciera
Replied by Aciera on topic hy vfd rs 485 gmoccapy

How can I  swap TX/RX  lines? (explain it to a non linux person

It's the physical wiring, but that is likely also not the cause since, I presume, you are reusing the setup that has worked before.
Have you checked if the RS485 adaptor is supported under linux?
 

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

More
22 Jul 2021 14:59 #215589 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy

How can I  swap TX/RX  lines? (explain it to a non linux person
It's the physical wiring, but that is likely also not the cause since, I presume, you are reusing the setup that has worked before.
Have you checked if the RS485 adaptor is supported under linux?

 

How can I check if my linux supports rs485 adaptor?

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

More
23 Jul 2021 14:22 #215697 by Pauchuk
Replied by Pauchuk on topic hy vfd rs 485 gmoccapy
Got another PC, dell optilex 755, installed fresh linux wheezy 2.7, updated to 2.8.
Does not communicate with vfd. Plug rs485 in to windows 10 machine with mach3, works instantly..

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

More
24 Jul 2021 07:28 #215746 by Aciera
Replied by Aciera on topic hy vfd rs 485 gmoccapy
maybe post a picture of the adaptor you are using.

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

Time to create page: 0.161 seconds
Powered by Kunena Forum