- Posts: 17524
- Thank you received: 0
Physical Feed override knob
Please Log in to join the conversation.
Erikcnc wrote: Oke, getting there. that changed some thing. In halshow its shows:
Gmoccapy. feed-override.direct-value
Both responding to the potentiometer. But not the slider in gmoccapy Gui.
You also need to set the enable pin:
linuxcnc.org/docs/html/gui/gmoccapy.html...cities_and_overrides
Please Log in to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
-
- Posts: 1018
- Thank you received: 0
Please Log in to join the conversation.
andypugh wrote:
Erikcnc wrote: Oke, getting there. that changed some thing. In halshow its shows:
Gmoccapy. feed-override.direct-value
Both responding to the potentiometer. But not the slider in gmoccapy Gui.
You also need to set the enable pin:
linuxcnc.org/docs/html/gui/gmoccapy.html...cities_and_overrides
Code:setp gmoccapy.analog-enable 1
works!
i got now in my postgui_call_list
setp gmoccapy.analog-enable 1
net feed-override-direct gmoccapy.feed-override.direct-value <= hm2_7i76e.0.7i76.0.0.analogin0
its super sensitive now. from 0 untill 1.42v is 200% override. the 4k7 potentiometer goes untill 24v.
now i have to find out how to scale it.
Please Log in to join the conversation.
Please Log in to join the conversation.
Erikcnc wrote: now i have to find out how to scale it.
The override wants a float value between 0 and 1.0 so you will need to process the value in HAL.
Use the "scale" component if you want a linear response or possibly "lincurve" if you want to get fancy
Please Log in to join the conversation.
hm2_7i76e.0.7i76.0.0.analogin0-scalemax to say 2x36.3/24 =~3
This will end up being 200% (2.0) =feed override max
Please Log in to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
-
- Posts: 1018
- Thank you received: 0
I can see in gmoccapy all trhre values I set via pots in realtime.
Mike
Please Log in to join the conversation.
So this is my full code i got.
Please Log in to join the conversation.
