I think I'm just going to have to unplug the enable pins for now as i've just demonstrated to myself that I don't know what I'm doing with "not" and addf !
Markyd wrote: still no luck, regardless of what syntax i use. I've tried all the variations below without success. I've even tried the xdir pin but the result is the same. Does the hal_pi_gpio accept invert?
#setp hal_pi_gpio.pin-29-invert true
The # at the beginning makes the line a comment. Did you actually have the # as the first character on the line?
If so, try without the #.
Hello
I'm using RPI4 with 7i92 for the moment but I want to add one encoder for feed override using the RPI GPIO driver.
This is what I added to my hal file but I don't get reading on Hal Meter hal_pi_gpio.pin-03-in and hal_pi_gpio.pin-05-in. I also tried different pins with no success.
Can someone please point me what I'm doing wrong
net feedcount halui.feed-override.counts <= encoder.0.counts
net feedup encoder.0.phase-A <= hal_pi_gpio.pin-03-in
net feeddown encoder.0.phase-B <= hal_pi_gpio.pin-05-in
_______________________________________________________
pi@linuxcnc:~ $ halcmd show all hal_pi
Component Pins:
Owner Type Dir Value Name
29 bit OUT FALSE hal_pi_gpio.pin-03-in ==> feedup
29 bit OUT FALSE hal_pi_gpio.pin-05-in ==> feeddown
29 bit IN FALSE hal_pi_gpio.pin-07-out
29 bit IN FALSE hal_pi_gpio.pin-08-out
29 bit IN FALSE hal_pi_gpio.pin-10-out
29 bit IN FALSE hal_pi_gpio.pin-11-out
29 bit IN FALSE hal_pi_gpio.pin-12-out
29 bit IN FALSE hal_pi_gpio.pin-13-out
29 bit IN FALSE hal_pi_gpio.pin-15-out
29 bit IN FALSE hal_pi_gpio.pin-16-out
29 bit IN FALSE hal_pi_gpio.pin-18-out
29 bit IN FALSE hal_pi_gpio.pin-19-out
29 bit IN FALSE hal_pi_gpio.pin-21-out
29 bit IN FALSE hal_pi_gpio.pin-22-out
29 bit IN FALSE hal_pi_gpio.pin-23-out
29 bit IN FALSE hal_pi_gpio.pin-24-out
29 bit IN FALSE hal_pi_gpio.pin-26-out
29 bit IN FALSE hal_pi_gpio.pin-29-out
29 bit IN FALSE hal_pi_gpio.pin-31-out
29 bit IN FALSE hal_pi_gpio.pin-32-out
29 bit IN FALSE hal_pi_gpio.pin-33-out
29 bit IN FALSE hal_pi_gpio.pin-35-out
29 bit IN FALSE hal_pi_gpio.pin-36-out
29 bit IN FALSE hal_pi_gpio.pin-37-out
29 bit IN FALSE hal_pi_gpio.pin-38-out
29 bit IN FALSE hal_pi_gpio.pin-40-out
29 s32 OUT 0 hal_pi_gpio.read.time
29 s32 OUT 0 hal_pi_gpio.write.time
_______________________________________________________
Last edit: 5 years 9 months ago by nion. Reason: Incomplete question