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

Dynamically generate nested Components

2021-11-04
2021-11-15
  • thecolonel26

    thecolonel26 - 2021-11-04

    Creating dynamic nested components is pretty trivial in Qt, WPF, and Blazor etc. Is there any way to do it in Codesys?

    Basically I want to have a changeable number of the blue objects on the screen and also have a changeable number of the red rows in that.

    Image

     
  • m.prestel

    m.prestel - 2021-11-05

    Hey,

    no this is not possible to create or remove elements/complete frames.

    Yes it is easy in these languages, but they also do way more things dynamically which isn't really the goal of IEC 61131.

    Best regards,
    Marcel

     
  • thecolonel26

    thecolonel26 - 2021-11-05

    And there is also no way to create a Visu component in JavaScript and import it?

     

    Last edit: thecolonel26 2021-11-05
  • m.prestel

    m.prestel - 2021-11-08

    There will be a nice and clean integration of html5 controls, but this is currently in development.

    An old and ugly interface is already available, see https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/#efeb for more.

    Best regards,
    Marcel

     
    • thecolonel26

      thecolonel26 - 2021-11-08

      Is that the correct link? It seems to be a list of example projects for the Pi, but the links don't seem to work.

       
      • m.prestel

        m.prestel - 2021-11-08

        Well I copied it from the post, but it seems to not work.
        Check this thread for Google Maps and there should be.

        It is not a good and explaining example but maybe a start for you.

         
  • rickj

    rickj - 2021-11-15

    You could do something similar by using a table component and populating/formatting appropriately.

     

Log in to post a comment.