Changing Visualization with digital Input

2022-05-09
2022-06-08
  • 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 - 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
    • princessdvlk - 2022-06-08

      hi, could you please help me with this issue. i am suddenly unable to download the code into my plc and i have no clue what is wrong. i am pasting the link that describes the issue here.

      https://forge.codesys.com/forge/talk/Engineering/thread/7053c43207/#7c33

       

Log in to post a comment.