Vai al contenuto

Compilation errors compiling IOEncoder FB

Home Forum Programmazione IEC 61131 (LogicLab) Compilation errors compiling IOEncoder FB

Stai visualizzando 2 post - dal 1 a 2 (di 2 totali)
  • Autore
    Post
  • #84949
    George
    Partecipante

    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?

    #84952
    Sergio Bertana
    Amministratore del forum

    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.

Stai visualizzando 2 post - dal 1 a 2 (di 2 totali)
  • Devi essere connesso per rispondere a questo topic.