Vai al contenuto

Information about eTO_JUNK() instruction

Home Forum Programmazione IEC 61131 (LogicLab) Information about eTO_JUNK() instruction

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

    I did know anything about eTO_JUNK()  function…

    #81781
    Sergio Bertana
    Amministratore del forum

    The IEC 61131 norm requires that all functions have a return value and that the return value must transferred to a variable of the same type.

    This forces to define variables only to store the return values ​​from the functions even if these values ​​are not useful in the development of the program.

    The eTO_JUNK instruction (Present in the library package version from PCK055A030) allows to discard the return value of the functions without generating warnings or compilation errors.

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