huanyang vfd & linuxcnc 2.7

More
11 years 5 months ago #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
11 years 5 months ago #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
11 years 5 months ago #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
11 years 5 months ago #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.

More
11 years 5 months ago #59163 by andypugh

vre wrote: 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.


Is RTAI running?
You need to start an RTAI session first:

halrun
loadrt hy_vfd

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

More
11 years 5 months ago #59166 by alan_3301

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

Time to create page: 0.063 seconds
Powered by Kunena Forum