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

Codesys v3: Visu element access via ST

mrfredley
2015-04-30
2015-04-30
  • mrfredley

    mrfredley - 2015-04-30

    Hi,

    I have a visu that has a polygon with multiple points and I was wondering if there's a possibility to import the coordinates of these points to an array of VisuStructPoints? Could it be through VisuElems-library?

    I have tried to get some information on the VisuElems-library as it seems to be a way to access the elements of visu's but I'm a bit too dumb to get the picture right.

    Is there documentation on the library (or examples that might have some hints to the right direction)? The methods itself are not that self-explanatory, or I've missed the correct ones.

    I can do the points manually but I was thinking if there's a more "automatic" way to do this.

    Thanks for all willing to give insight, I really appreciate it.

    Codesys 3.5 SP 5 patch 3 + RPi Runtime.

     
  • loraul

    loraul - 2015-04-30

    Hi,
    you can use the property Dynamic Points of this component to set an array of points.

    IMG: Untitled.png

     
  • mrfredley

    mrfredley - 2015-04-30

    loraul hat geschrieben:
    Hi,
    you can use the property Dynamic Points of this component to set an array of points.

    Thanks loraul but I'm looking for a solution that would do the opposite. I have the polygon in my visu and I would like to get the coordinates from the visu to an Array of VisuStructPoints. If it's possible in the first place.

    I know it's possible doing it by hand (...or with a "clipboard sniffer"), but I'm wondering if there's a way of doing this in CoDeSys.

     

Log in to post a comment.