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

Showing an boolean input with a lamp

pomdas
2020-03-05
2020-03-06
  • pomdas

    pomdas - 2020-03-05

    Hello,
    I am quite new to Codesys and now I am trying my first tiny examples with it. My problem should be simple to solve, but I did not find a solution, yet. I have some boolean inputs connected to a physical switch connected with a PROFINET module from Murr. I can watch the boolean signals in a variable table and see that they change corresponding to the physical switch. Now I created a visualization, put a lamp on it and assigned the boolean input to it, but the lamp is not illuminating. The boolean variable is still changing its state. What might I do wrong?
    Regards
    pomdas

     
  • jeffersonhui

    jeffersonhui - 2020-03-05

    Hi, pomdas,

    Do you have the boolean variable in the lamp Properties -> Position -> "Variable" text box? It should be in the highlighted textbox in my attached lamp.png image. If it still does not work, can you attach a screenshot?

    Thanks,
    Jefferson

     
  • pomdas

    pomdas - 2020-03-06

    Hi Jefferson,

    yes, I have inserted this. Attached you find the assignment and the setup of the raspberry.

    Pomdas

     

Log in to post a comment.