- Posts: 598
- Thank you received: 17
huanyang vfd & linuxcnc 2.7
11 years 5 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 or Create an account to join the conversation.
11 years 5 months ago #59271
by andypugh
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.)
Replied by andypugh on topic huanyang vfd & linuxcnc 2.7
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 or Create an account to join the conversation.
11 years 5 months ago #59272
by vre
Replied by vre on topic huanyang vfd & linuxcnc 2.7
i have added to pyvcp panel custompanel.xml this
and now starts ok but the same problem can not set the rpm
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 or Create an account to join the conversation.
11 years 5 months ago #59273
by andypugh
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?)
Replied by andypugh on topic huanyang vfd & linuxcnc 2.7
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 or Create an account to join the conversation.
11 years 5 months ago - 11 years 5 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
(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
Last edit: 11 years 5 months ago by vre.
Please Log in or Create an account to join the conversation.
11 years 5 months ago #59275
by andypugh
Replied by andypugh on topic huanyang vfd & linuxcnc 2.7
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.
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 or Create an account to join the conversation.
Time to create page: 0.262 seconds