huanyang vfd & linuxcnc 2.7

More
27 May 2015 13:01 #59100 by vre
I have linuxcnc 2.7 and iam trying to compile this
github.com/bebro/linuxcnc-huanyang-vfd
but it does not compile.. comp command does not exist in 2.7 version .
Any help how to compile and install this huanyang vfd plugin ?

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

More
27 May 2015 13:05 #59101 by ArcEye
Replied by ArcEye on topic huanyang vfd & linuxcnc 2.7
comp was renamed halcompile, remainder of switches etc are the same.

Name clashed with other apps to do with comparison and was causing confusion with some users.

regards
The following user(s) said Thank You: vre

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

More
28 May 2015 00:09 #59115 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
i have installed this github.com/bebro/linuxcnc-huanyang-vfd/tree/linuxcnc
but linuxcnc can not start.
Iam using a usb to rs485 adapter recognized as /dev/ttyUSB0

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

More
28 May 2015 06:15 #59135 by andypugh

i have installed this github.com/bebro/linuxcnc-huanyang-vfd/tree/linuxcnc
but linuxcnc can not start.


If you try to start linuxcnc from the command line (command "linuxcnc") then there should be details of the error that is preventing the start. (probably buried in other stuff).

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

More
28 May 2015 07:03 #59139 by alan_3301
the binary is there, you don't need to compile if you don't want to

post the errors you are getting. I have a bunch of experience with this, just need to remember all the problems I had getting it going.

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

More
28 May 2015 17:14 - 28 May 2015 17:16 #59145 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
I have compiled fine but binary seems that can not connect..
Iam using this adapter www.ebay.com/itm/New-USB-to-RS485-USB-48...Mac-OS-/381097954687
I will buy now this adapter www.ebay.com/itm/RS-232-New-RS232-to-RS-...verter-/141516794700
perhaps the problem is the adapter or the wire lenght and termination i connected it without 120 ohm resistors
Last edit: 28 May 2015 17:16 by vre.

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

More
28 May 2015 17:17 #59146 by alan_3301
have you set up your vfd correctly?

PD001 = 2 (run commands to comm port)
PD002 = 2 (operating freq to comm port)
PD163 = 1 (slave address 1)
PD164 = 1 (baud rate to 9600 b/s)
PD165 = 3 (8N1 for RTU mode)

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

More
28 May 2015 17:22 #59147 by alan_3301
you can pick what you want for pd164 and pd165, just make sure they match what is specified in custom.hal

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

More
28 May 2015 17:25 #59148 by alan_3301
It is helpful to setup a loopback, and using a terminal program, make sure the rs485 is working.
I had to verify my stuff on a scope to make sure which wire was + and what was -. also I had to leave off the 120 ohm resistors, the waveform became unreadable with them installed.


once that side of everything is working, it's just a matter of making sure all the vfd settings match what the parameters for custom.hal

you can run hy-vfd in a terminal to see all the command line options.

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

More
29 May 2015 01:44 #59161 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
I have been set the parameters correctly to the vfd and code
but the output is: RTAPI error can't access shared memory and then segfault.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum