Axis Modifications
Please Log in or Create an account to join the conversation.
Does it make sense to add this mod to the LinuxCNC build?
I think that if you can format it as a pull-request on Github then there might be interest.
Please Log in or Create an account to join the conversation.
Need to replace them with something else.
Maybe create a pair of dedicated hal pins(e.g. spindle.display-speed, spindle.display-angle) and add their values in linuxcnc.stat?
In creating a pull-request I do not see any problems.
Please Log in or Create an account to join the conversation.
Attachments:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Any comments, wishes and criticism are welcome.
Please Log in or Create an account to join the conversation.
I personally don't think having spindle stats in EMC Stat is the way to go.
You can read spindle HAL pins directly in python - a much more flexible way.
Please Log in or Create an account to join the conversation.
Have you tested other screens? glcannon is used in other screens.
I personally don't think having spindle stats in EMC Stat is the way to go.
You can read spindle HAL pins directly in python - a much more flexible way.
yeah i wasnt sure why that was needed either,I agree, as i just connect mine to spindle.0.speed-out, and other existing motion pins
Please Log in or Create an account to join the conversation.
Only gmoccapy, mod does not affect it.cmorley post=227695 userid=482
Have you tested other screens? glcannon is used in other screens.
I personally don't think having spindle stats in EMC Stat is the way to go.
You can read spindle HAL pins directly in python - a much more flexible way.
How to read encoder position(for display spindle angle) hal pin directly in python, without python interface?
Need example.
It is necessary to transfer speed and angle values to the python interface.cakeslob post=227713 userid=25269
yeah i wasnt sure why that was needed either,I agree, as i just connect mine to spindle.0.speed-out, and other existing motion pins
Signal source will select the user in the hal file(e.g. spindle.N.speed-out-abs => motion.spindle-display-speed or from spindle encoder).
I think this(dedicated hal pins) is a more flexible solution.
About another way i know: use speed(commanded, not real) from spindle dictionary and spindle num(select spindle to display speed) from ini file.
Please Log in or Create an account to join the conversation.
##### Add spindle speed lable to axis ##########################################
##### Figure out where you want to place it, we will place it in the manual tab for now. ########################
# saves typing
W = root_window.tk.call
# this creates the spindle speed lable in the manual tab, with text SPEED
W('label','.pane.top.tabs.fmanual.spindlef.spindle-speed','-text','SPEED')
# this is where we put it
W('grid','.pane.top.tabs.fmanual.spindlef.spindle-speed','-column','0','-row','3','-sticky','w')
# we want it to update the speed more than once
def user_live_update():
W('.pane.top.tabs.fmanual.spindlef.spindle-speed','configure','-text','SPEED %3.0f' % (comp['spindle-speed']))
# this makes it an offical axis hal pin and links it to spindle-vel-cmd-rpm
def user_hal_pins():
# create new hal pins
#mycomp = hal.component('feed')
comp.newpin('spindle-speed', hal.HAL_FLOAT, hal.HAL_IN)
hal.connect('axisui.spindle-speed','spindle-vel-cmd-rpm')
Please Log in or Create an account to join the conversation.