Perfect. All working.
The format string name%12bname%12e the 12e is to reference a pin true when all the bits are not 0 and another pin -not when all are 0. I think is to reference a index cero for the encoder.
I have probed and worked.
You are very kind, thank for the help.