The FB IOEncoder allows management of the position from an incremental encoder using two digital inputs The new version v1 differs from the previous one by eliminating the Enable input and the Enabled output. The encoder counter is now always enabled.
Internally, the new version uses bit addressing mode to store the APhase and BPhase signals.
LIMemo : BYTE; (* Logic input memo *)
LIMemo.0:=APhase; //Logic input memo
LIMemo.1:=BPhase; //Logic input memo
I have tried compiling the example given in the manual using the latest released version of LogicLab (ver. 10.0.0.0) without any problems. What version of LogicLab are you using?
Alternatively, you can use the previous version of the FB; it works exactly the same.