Your encoders would be far more useful if they gave direction as well as count.
My experience with your encoders was negative and I’m sorry I purchased them . They seem oversized and sloppy.
I recommend changing the design to add quadrature slot detector and adding an easyC function to support it. A/B non absolute outputs are easy to use if you program in MPLAB where you have access to interrupt programming. However, I didn’t see a way using easyC.
You can , however, use easyC with absolute analog output encoders like those I used on my Vex balance bot.
https://vexforum.com/t/working-vex-pendulum-balance-robot/13545/1
These encoders are made by US Digital and although twice the price, they provide superior performance with a ballbearing shaft that fits Vex gears and they give direction of course. See absolute magnetic analog output encoders from US Digital MA3-A-B8. http://www.usdigital.com/products/ma3 ($35 each)