How to disable rapid and feed rate override sliders?

More
16 Mar 2024 16:22 #296072 by kb0thn
Hi Group,

I've retrofitted an old Homag / Weeke Optimat BHC350 router with LinuxCNC and MESA cards. Massive project on this machine with lots of IO, ATC, etc. But it's been fun. I'm finally at the stage where I am trying to get things the way I want them, not just the way that works.

Question:
I have rotary switches for feed rate and rapid override. They both work and I can set the overrides via switch. But the on screen adjustments are still there. I want to see the values, but I don't want them to be adjustable on screen. Only with the physical switches. Is this possible?

Here is my HAL code that implements the feed rate override. The rapid override is similar. 
    setp halui.feed-override.count-enable true
    setp halui.feed-override.direct-value true
    setp halui.feed-override.scale .01
net feedoverride-incr   =>  halui.feed-override.counts
net fo-incr-a           =>  foincr.sel0
net fo-incr-b           =>  foincr.sel1
net fo-incr-c           =>  foincr.sel2
net fo-incr-d           =>  foincr.sel3
net feedoverride-incr   <=  foincr.out-s
    setp foincr.debounce-time      0.100000
    setp foincr.use-graycode      False
    setp foincr.suppress-no-input False
    setp foincr.in00          150.000000
    setp foincr.in01          0.000000
    setp foincr.in02          30.000000
    setp foincr.in03          40.000000
    setp foincr.in04          70.000000
    setp foincr.in05          80.000000
    setp foincr.in06          110.000000
    setp foincr.in07          120.000000
    setp foincr.in08          10.000000
    setp foincr.in09          20.000000
    setp foincr.in10          50.000000
    setp foincr.in11          60.000000
    setp foincr.in12          90.000000
    setp foincr.in13          100.000000
    setp foincr.in14          130.000000
    setp foincr.in15          140.000000

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

More
16 Mar 2024 18:08 #296081 by HansU

Hi Group,
I want to see the values, but I don't want them to be adjustable on screen. Only with the physical switches. Is this possible?


Yes! You just have to use the pins provided by gmoccapy instead of the halui ones.
So gmoccapy.feed.feed-override.count-enable instead of halui.feed-override.count-enable

See linuxcnc.org/docs/html/gui/gmoccapy.html...cities_and_overrides for more information.

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

More
16 Mar 2024 21:30 #296097 by kb0thn
Hey, that's perfect! Just added those to my custom_postgui.hal and it solved the problem. Thank you!

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

Moderators: newbynobiHansU
Time to create page: 0.370 seconds
Powered by Kunena Forum