Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Problem with FB execution

  • danieldiaz - 2024-04-02

    Hello everyone,

    I've been working on a system which needs an error function, with this purpose I've created a FB programmed in LD, after debugging I run the simulation.

    It seems that the variable linked to a coil doesn't change the value when the contacts are associated to input variables. When I use internal variables the logic works properly. I don't know if the problem is related to the variables definition or with the logic program.

    As you can see in the image, I1 and I2 are variables declared on the FB, the rest are input variables. If I force the eStop and Reset signals to TRUE the coil value should change, but it doesn't. However in the second network if I1 is TRUE the coil change to TRUE as it has to be.

    To sum up, my doubt is why that coil doesn't change its value?

    I would like someone to shed a light on this. Thanks!


    Last edit: danieldiaz 2024-04-02
    • danieldiaz - 2024-04-05

      Problem Solved, I was overwriting the variables somewhere else


Log in to post a comment.