Hi keyboard,
with my example above i wanted to show how to use mux-gen to avoid the 100% problem of the potentiometer.
The shown lines are just a part of my hal and therefore of course not complete.
with these entries the potentiometer can be mounted. It should work this way or something similar. The pin names have to be adapted to the used 7i76e.
Code:
######################################################
## Feed-Override
## mit Poti
######################################################
loadrt mux_generic config=fs2
addf mux-gen.00 servo-thread
setp hm2_7i92.0.7i84.0.2.analogin0-scalemax 240
setp halui.feed-override.direct-value true
setp halui.feed-override.count-enable true
setp halui.feed-override.scale 0.01
setp mux-gen.00.in-float-00 100
net feedpot-raw mux-gen.00.in-float-01 hm2_7i92.0.7i84.0.2.analogin0
net machine-is-on mux-gen.00.sel-bit-00
net feedpot-mux mux-gen.00.out-s32 halui.feed-override.counts
If you really want to see the complete hal and ini files, let me know.
--
Roland