loadrt hal_gpio dir=0x??????????????
1 means output
0 means inputloadrt hal_gpio dir=0x???????? exclude=0x???????
1 means don't use this pin
0 means use this pin
So your dir should be equal to 67105963 to be able to use these pins as inputs
loadrt hal_gpio dir=0x11111111111111010010101011
or
loadrt hal_gpio dir=67105963
#####################################
loadrt not count=3 # that means we need to invert 3 pins using alias not.0. and not.1. and not.2 each not has input (in) and output (out) so the first not input will be something like this (not.0.in) and the output will be (not.0.out)
addf not.0 servo-thread #Man pages have something like not.all but when I test it I couldn't find it
addf not.1 servo-thread. # instead of adding each function in a separate line
addf not.2 servo-thread
net dummy16 not.0.in hal_gpio.pin.16-in #then you can use the inverted pin value dummy16 = signal name does not effect our program you can name it what ever you like
net estop-ext <= not.0.out # you can use not.0.out to the signal you want
#####################################