Axis Modifications

More
20 Nov 2021 22:06 #227128 by D.L.
Replied by D.L. on topic Axis Modifications
Does it make sense to add this mod to the LinuxCNC build?

Please Log in or Create an account to join the conversation.

More
21 Nov 2021 23:02 #227243 by andypugh
Replied by andypugh on topic Axis Modifications

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.

More
22 Nov 2021 08:58 #227282 by D.L.
Replied by D.L. on topic Axis Modifications
To build, can't use these hal pins(motion.analog-in-00, motion.analog-in-01) for user configuration compatibility.
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.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
23 Nov 2021 13:33 #227404 by D.L.
Replied by D.L. on topic Axis Modifications
Today I did create these hal pins(motion.spindle-display-speed, motion.spindle-display-angle) and connected them to python interface:
 
Attachments:
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
25 Nov 2021 22:01 #227593 by D.L.
Replied by D.L. on topic Axis Modifications
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
26 Nov 2021 15:07 #227658 by D.L.
Replied by D.L. on topic Axis Modifications
And 2.8: github.com/ddotldot/linuxcnc/tree/2.8
Any comments, wishes and criticism are welcome.

Please Log in or Create an account to join the conversation.

More
26 Nov 2021 22:20 #227695 by cmorley
Replied by cmorley on topic Axis Modifications
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.

Please Log in or Create an account to join the conversation.

More
26 Nov 2021 23:45 #227713 by cakeslob
Replied by cakeslob on topic Axis Modifications

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.

More
27 Nov 2021 10:00 #227727 by D.L.
Replied by D.L. on topic Axis Modifications

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.

Only gmoccapy, mod does not affect it.
How to read encoder position(for display spindle angle) hal pin directly in python, without python interface?
Need example.

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

It is necessary to transfer speed and angle values to the python interface.
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.

More
27 Nov 2021 16:55 #227756 by cakeslob
Replied by cakeslob on topic Axis Modifications
Yeah, im using commanded speed as well 
#####  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')
The following user(s) said Thank You: D.L.

Please Log in or Create an account to join the conversation.

Time to create page: 0.344 seconds
Powered by Kunena Forum