- Posts: 598
- Thank you received: 0
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.
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.
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.
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.
Please Log in to join the conversation.
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.
and now starts ok but the same problem can not set the rpm
Please Log in to join the conversation.
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.
(i don't know anything about hal)
i have comment these lines from stepconf wizard
Please Log in to join the conversation.
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.
