huanyang vfd & linuxcnc 2.7

More
11 years 4 months ago #59266 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7

alan_3301 wrote: 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=0.0
PD004=400
PD005=400
PD007=0.50
PD008=220
PD141=220.0
PD142=5.0
PD143=02
PD144=3000


Huanyang hy20d223b spindle 800w 220v 5a 24000rpm 400hz.
motor rotates at pd144 setting independely from that i set in linuxcnc

Please Log in to join the conversation.

More
11 years 4 months ago #59267 by alan_3301
based on the description of PD003. it shouldnt matter what it is set at, they describe it as a default operating frequency.
However, I would set it to 400 and see if that takes care of your problem.

Your other settings look ok.

The definition of pd144 is the motor rpm @ 50 hz. For a 24k rpm 2 pole motor, this should be 3000.
Not sure why you are stuck at 3000rpm.

can you record what the vfd shows for frequency and rpm, as well as what linuxcnc shows for speed.

Please Log in to join the conversation.

More
11 years 4 months ago #59268 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
i set PD003=400 but no change
linuxcnc shows correct rpm the same with the vfd.Also correct other infos.
All are correct but can not set the rpm runs constantly at 3000rpm.
One other thing is that PD02 goes from 0 to 3 and manual writes nothing about 3 option if i set it to 3 then
spindle runs constantly to 10000 rpm and accepts commands from linuxcnc like 2 option.

Here the 15 line github.com/bebro/linuxcnc-huanyang-vfd/b...s/custom_postgui.hal
has comment.
If i remove comment linuxcnc do not start.

I think will go with the classic solution with 2 relays for cw ccw and pwm 0-10v for setting speed.

Please Log in to join the conversation.

More
11 years 4 months ago #59269 by andypugh

vre wrote: Here the 15 line github.com/bebro/linuxcnc-huanyang-vfd/b...s/custom_postgui.hal
has comment.
If i remove comment linuxcnc do not start.


The commented-out line appears to be the one that sends the frequency command to the VFD, so that seems like an adequate explanation of why it isn't working.

Un-comment the line and see exactly what it is that LinuxCNC complains about. It will either be that a pin is already connected somewhere else, or a pin-name has been spelled wrong.

Fix the problem and you should be there.

Please Log in to join the conversation.

More
11 years 4 months ago #59270 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
i have uncomment line 15 and now
Code:
custom_postgui.hal:15: Pin 'pyvcp.frequency-command' does not exist Shutting down and cleaning up LinuxCNC...

Please Log in to join the conversation.

More
11 years 4 months ago #59271 by andypugh

vre wrote: i have uncomment line 15 and now

Code:
custom_postgui.hal:15: Pin 'pyvcp.frequency-command' does not exist Shutting down and cleaning up LinuxCNC...


What that means is either that your PyVCP panel does not have a frequency display, or that it is called something other than pyvcp.frequency-command

As a quick test, just delete pyvcp.frequency-command from that HAL line

(That still might not work, I have no idea if the "hy-Freq-Cmd" signal is connected to anything at the other end.)

Please Log in to join the conversation.

More
11 years 4 months ago #59272 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
i have added to pyvcp panel custompanel.xml this
Code:
<tablesticky sticky="w" /> <label> <text>"Frequency command: "</text> </label> <tablesticky sticky="e" /> <number> <halpin>"frequency-command"</halpin> <format>"4.0f"</format> </number> <tablerow/>

and now starts ok but the same problem can not set the rpm

Please Log in to join the conversation.

More
11 years 4 months ago #59273 by andypugh

vre wrote: now starts ok but the same problem can not set the rpm


So, what else is the signal "hy-Freq-Cmd" connected to in the HAL?

(Or, to start at the other end, what is motion.spindle-speed-out connected to?)

Please Log in to join the conversation.

More
11 years 4 months ago #59274 by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
is not connected anywhere.. How to connect ?
(i don't know anything about hal)

i have comment these lines from stepconf wizard
Code:
#net spindle-cmd-rpm => pwmgen.0.value #net spindle-on <= motion.spindle-on => pwmgen.0.enable #net spindle-pwm <= pwmgen.0.pwm #setp pwmgen.0.pwm-freq 100.0 #setp pwmgen.0.scale 24000.0 #setp pwmgen.0.offset -2.77555756156e-17 #setp pwmgen.0.dither-pwm true #net spindle-cmd-rpm <= motion.spindle-speed-out #net spindle-cmd-rpm-abs <= motion.spindle-speed-out-abs #net spindle-cmd-rps <= motion.spindle-speed-out-rps #net spindle-cmd-rps-abs <= motion.spindle-speed-out-rps-abs #net spindle-at-speed => motion.spindle-at-speed #net spindle-cw <= motion.spindle-forward #net spindle-ccw <= motion.spindle-reverse

Please Log in to join the conversation.

More
11 years 4 months ago #59275 by andypugh
Generally speaking, commenting-out lines of HAL stops things working rather than makes them work.

Can I suggest that you take the time to read the basic HAL documentation?
linuxcnc.org/docs/html/hal/basic_hal.html

Even if you were to revert to relay and voltage control, you would still need to connect those to the spindle speed control in HAL.

Please Log in to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum