huanyang vfd & linuxcnc 2.7

More
29 May 2015 02:20 #59163 by andypugh

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
29 May 2015 02:33 #59166 by alan_3301

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

More
30 May 2015 15:16 - 30 May 2015 16:43 #59226 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
i have added my user to dialout group and now starts but configs from hy_vfd repository don't work out the box.
My configs are generated by stepconf wizard.
Have anyone working configs ?
Last edit: 30 May 2015 16:43 by vre.

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

More
30 May 2015 18:18 #59227 by alan_3301
You are not giving very much info to go on. It starts but doesnt work?
Can you explain?

You have to merge the files with what you already have.
There is not much happening in the files, and they have comments.
I'd read through them just to familiarize yourself with what is happening.

It's not mentioned anywhere, but if you are getting an error that "motion.spindle-forward was already linked to signal spindle-cw",
then you need to edit your main ini file, and find the line that has motion.spindle-forward and spindle-cw on the same line.
Comment this line out (what this means is put a # as the first character on the line)

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

More
30 May 2015 19:35 - 30 May 2015 19:38 #59231 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7

It's not mentioned anywhere, but if you are getting an error that "motion.spindle-forward was already linked to signal spindle-cw",
then you need to edit your main ini file, and find the line that has motion.spindle-forward and spindle-cw on the same line.
Comment this line out (what this means is put a # as the first character on the line)


I have exactly that problem you described i have commented this line in my main hal file
but there and other errors in custom_postui.hal file.

The reason iam not giving enough infos is that i have not internet on linuxcnc pc.
Last edit: 30 May 2015 19:38 by vre.

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

More
30 May 2015 19:40 #59232 by alan_3301
If you have a usb drive, you can take a screenshot, or cut and paste the error text., then bring it to your internet computer.
Or use a camera and just take pictures..

Without the errors, no one can help.

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

More
30 May 2015 20:53 - 30 May 2015 22:54 #59233 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
$ linuxcnc
LINUXCNC - 2.7.0-pre6
Machine configuration directory is '/home/user/linuxcnc/configs/6040-parallel'
Machine configuration file is '6040-parallel.ini'
Starting LinuxCNC...
.
Found file:./6040-parallel.hal
Found file:./custom.hal
spindle-vfd: device='/dev/ttyUSB0', baud=19200, bits=8, parity='even', stopbits=1, address=1, verbose=1, PID=11317
Opening /dev/ttyUSB0 at 19200 bauds (even)
custom_postgui.hal:6: Pin 'pyvcp.amp-meter' does not exist
Shutting down and cleaning up LinuxCNC...

Iam using hy_vfd and configs from here
github.com/bebro/linuxcnc-huanyang-vfd/tree/linuxcnc

I renamed panel.xml to custompanel.xml and works
but now gui doesn't fit to 1024x768 resolution.

Modbus connection is green and when start vfd manual in screen shows me infos correctly.
All work now thank you all.Great support!
Last edit: 30 May 2015 22:54 by vre.

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

More
31 May 2015 08:38 #59258 by alan_3301
I removed all the XYZ DRO's from my panel.
It gives more space.
Not sure why they are there, I think leftover from the scotta's original version.

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

More
31 May 2015 13:52 #59260 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
I can't set the rpm, spindle rotates constantly at 3000rpm.
M3 s10000 starts the motor but at 3000rpm not 10000rpm.
PD01=2 / PD02=2
Any solution for this ?

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

More
31 May 2015 18:47 #59264 by alan_3301
How exactly is the rpm off?
is it 7000 rpm offset at all commanded speeds?
is it 3.33333 times as much as you command?

What is your VFD model #, and what kind of spindle did you get (rpm and KW)
tell me your PD settings for:

PD003
PD004
PD005
PD007
PD008
PD141
PD142
PD143
PD144

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

Time to create page: 0.163 seconds
Powered by Kunena Forum