hal and halui and pyvcp
03 Mar 2016 09:13 #70954
by albova
hal and halui and pyvcp was created by albova
hi
I have a pyvcp panel should to show the spindle speed .
I seem to have configured everything correctly, but obviously it is not.
INI files
........
[ HAL ]
HALUI = halui
HALFILE = prova.hal
HALFILE = simulated_home.hal
HALFILE = custom.hal
HALFILE = jog.hal
POSTGUI_HALFILE = custom_postgui.hal
...........
HAL file
net spindle-cmd-rpm => pwmgen.0.value
..........
net spindle- cmd - rpm < = motion.spindle -speed- out
..........
CUSTOM POST GUI .HAL file
......
net speed_out pyvcp.spindle_rpm < = spindle- cmd - rpm
........
Custum PANEL.XML file
......
< Halpin > " spindle_rpm " < / Halpin >
.......
when I start LinuxCNC I get the following error :
pin spindle- cmd - rpm does not exist
where am I wrong ?
regads Alessandro
I have a pyvcp panel should to show the spindle speed .
I seem to have configured everything correctly, but obviously it is not.
INI files
........
[ HAL ]
HALUI = halui
HALFILE = prova.hal
HALFILE = simulated_home.hal
HALFILE = custom.hal
HALFILE = jog.hal
POSTGUI_HALFILE = custom_postgui.hal
...........
HAL file
net spindle-cmd-rpm => pwmgen.0.value
..........
net spindle- cmd - rpm < = motion.spindle -speed- out
..........
CUSTOM POST GUI .HAL file
......
net speed_out pyvcp.spindle_rpm < = spindle- cmd - rpm
........
Custum PANEL.XML file
......
< Halpin > " spindle_rpm " < / Halpin >
.......
when I start LinuxCNC I get the following error :
pin spindle- cmd - rpm does not exist
where am I wrong ?
regads Alessandro
Please Log in or Create an account to join the conversation.
03 Mar 2016 13:37 #70964
by andypugh
Replied by andypugh on topic hal and halui and pyvcp
I assume that the spaces in your pin names are not there in the actual code?
spindle-cmd-rpm is a _signal_ and must always be first in the net command.
You can't net a signal to a signal.
If you change the second line in the postgui HAL tothen it should work.
net spindle-cmd-rpm < = motion.spindle-speed- out .... net speed_out pyvcp.spindle_rpm < = spindle- cmd-rpm
spindle-cmd-rpm is a _signal_ and must always be first in the net command.
You can't net a signal to a signal.
If you change the second line in the postgui HAL to
net spindle-cmd-rpm pyvcp.spindle_rpm
Please Log in or Create an account to join the conversation.
03 Mar 2016 13:44 #70966
by albova
Replied by albova on topic hal and halui and pyvcp
hi Andypugh,
it' s ok now
solved
many thank's
Alessandro
it' s ok now
solved
many thank's
Alessandro
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds