Compilation errors compiling IOEncoder FB – Support Elsist https://support.elsist.biz/forums/topic/compilation-errors-compiling-ioencoder-fb/feed/ Fri, 30 Oct 2026 07:57:49 +0000 https://bbpress.org/?v=2.6.20 it-IT https://support.elsist.biz/forums/topic/compilation-errors-compiling-ioencoder-fb/#post-84949 Compilation errors compiling IOEncoder FB https://support.elsist.biz/forums/topic/compilation-errors-compiling-ioencoder-fb/#post-84949 Tue, 24 Mar 2026 07:27:27 +0000 George I get some compilation errors on a MPS054:

IOEncoder_v1(38) - error A4135:  LIMemo => Invalid index data type
IOEncoder_v1(39) - error A4135:  $$TMP0 => Invalid index data type

What is the problem?

]]>
https://support.elsist.biz/forums/topic/compilation-errors-compiling-ioencoder-fb/#post-84952 Rispondi a: Compilation errors compiling IOEncoder FB https://support.elsist.biz/forums/topic/compilation-errors-compiling-ioencoder-fb/#post-84952 Tue, 24 Mar 2026 07:29:48 +0000 Sergio Bertana 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.

]]>