Vai al contenuto

A simply FBD (Function Block Diagram) program

Home Forum Programmazione IEC 61131 (LogicLab) A simply FBD (Function Block Diagram) program

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

    I’m trying to write a very simplistic FBD program: it consist of an CPU input (%IX255.0) directly connected to an output (%QX255.0) or a user variable (%MX100.0). As a result, I can’t see any change on the output variable (or relay status) when input changes.

    Using exactly the same variables works well with an LD program. I’m a beginner, I guess I missed something, thanks for your help.

    #37637
    Sergio Bertana
    Amministratore del forum

    I write to you an example how to develop a simply FBD program, that copies a logic input on a logic output. To do it you you cannot simply connect the logic input to the output, you have to use the MOV instruction.

    In the example program, I have also written the MyFunction function, this to explain to you how is possible to write the own functions or function blocks, and then use them (Any times it’s needed) in the programs.

    It’s obvious that you can manage the I/Os in any of the 5 languages provided by the IEC61131 norm, but normally it’s better to write the logic sequencies in the IL or LD languages (Example program Printout, Download).

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