Sensor not set

plunje
2024-05-26
2024-05-28
  • plunje - 2024-05-26

    A got a larger project but this very small example makes it clear. I have a button, and after it's clicked a lamp should flip on and stays on, and when the mouse-button is released it should stay on. When I try that in the PLC_PRG it works, but when I change it to a function block (seet attched demo proj) it isn't. I'm fairly new to PLC programming but are very experienced C# engineer, but this goes above my head...

     
  • TimvH

    TimvH - 2024-05-27

    Your function block instance is not called, so the code is not executed to set the light on when the button is pressed.

     
  • plunje - 2024-05-28

    Thanks a lot!

     

Log in to post a comment.