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

Changing Visualization with digital Input

2022-05-09
2022-05-09
  • princessdvlk

    princessdvlk - 2022-05-09

    Hello All,

    I am using Raspberry Pi based PLC with Codesys SP17 Patch3. I am planning on changing the visualization screen when an Input that is connected at GPIO4 of raspberry Pi is pressed. Is there a way I can do it? I am confused.

    Thanking you all!

     
  • ludecus

    ludecus - 2022-05-09

    The simplest way to do so is to use a Frame of the CODESYS Visu Element list.
    https://help.codesys.com/webapp/_visu_elem_frame;product=core_visualization;version=3.5.17.0

    The Frame requires a Switch frame variable as INT.

    Somewhere in your code, each press could increase the linked variable.

    BTW: Most of the Visualizations use a code behind.

     
    • princessdvlk

      princessdvlk - 2022-05-09

      Hi!

      Yes, this worked. Thank you so much for your help. I could switch in between the screens successfully. :)

      Best Regards!

       
      πŸ‘
      1

Log in to post a comment.