Skip to content

Function Bock Diagram - Help reviewing program

Hello to everyone, I'm a beginner user of PLCnext Enginner software. Recently I've been learning about the languages of IEC 61131, especially structured text and function block diagram.

With structured text I made a program that increments a counter every second, as shown below:

And as you can see it worked. For the program to run I used the simulation in the cockpit for the controller AXC F 1152.

I want to do the same program with the simulation, but this time with function block diagram. As you can see I used the following logic and variables, but I didn't manage the program to increment the counter every second automatically. I have to do it myself selecting the variable timeinput and clicking in overwrite/force and pass the variable from TRUE value to FALSE, and to TRUE again. Doing that process the counter increments its value one by one.

I will be very thankful if you could recommend me what can i do to make it automatically? I think I'm missing something important about how function block diagram language works.

And maybe do you know where i can find documentation to continue working in programs like this one with the simulation of controller AXC F 1152?


Thank you!,

best regards,

Francisco.

Comments

  • edited June 2024

    Hi, in your fbd variant, there is no reset conditions for timerinput variable.

    Actually, there is no necessary to use R_TRIG and you may not use additional variables. You can simplify program in the next way.

    Inverted delayed signal from timer output will initiate loop for single cycle TRUE output value each second.

    OR


    BR

  • Hi Oleksandr,

    thank you very much for your answer.I will try the programs you recommended me. It's a great help!

    Kind regards,

    Francisco.

Sign In or Register to comment.