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

Custom Graphics

allen00se
2016-08-23
2017-02-07
  • allen00se

    allen00se - 2016-08-23

    Hello all, I am new to CODESYS and I am trying to find a tutorial or documentation on how to get some custom graphics into my Visualization. I have a microbrew set up in my garage and am in the process of flipping the control system over from some python scripts to CODESYS, only problem is I can't figure out some of the visualization stuff.

    Here is an example of what I am shooting for, I want graphical liquid levels in my tanks and pumps, valves, and pipes that change colors based on status.

    I would assume that I need to design all of my graphics in photoshop first, then just place them as some type of image... there just doesn't seem to be much info online regarding how do do these types of things. For example how do I make the blue fluid level match the tank level value? How do I turn my pump from red to green? How do I turn a pipe from gray to blue? Etc...

    Thanks in advance..

    IMG: Bild

     
  • wollvieh

    wollvieh - 2016-08-25

    look at this, it could be a solution for you.

    l viewtopic.php?f=23&t=7136#p15673 l

     
  • wollvieh

    wollvieh - 2016-08-25

    here you'll find the documentation of the V2.x Visualisation.
    Most of the properties work.

    P.S. : i personally prefere the wine.

    CoDeSys_Visu_V23_E.zip [806.05 KiB]

     
  • allen00se

    allen00se - 2016-08-29

    wollvieh hat geschrieben:
    look at this, it could be a solution for you.
    l viewtopic.php?f=23&t=7136#p15673 l

    Exactly the kind of stuff I am looking for!

     
  • tommyslavov

    tommyslavov - 2017-02-03

    Hi,
    I'm also interested about custom graphics. But when I click on viewtopic.php?f=23&t=7136#p15673 shows me "The requested topic does not exist". Could you provide an active link or send me to my e-mail:tommyslav@gmail.com.

     
  • Anonymous - 2017-02-05

    Originally created by: AntonZ

    When I need graphical, I usually have some kind of slightly simplified 2D visuals which are based on 3D CAD. Pretty close to the real thing minus details that are irrelevant to the control system. I make that a bit smaller than the screen size that will be used. Set it as the background image for the visualisation. Then just use standard CoDeSys visual ingredients to add colors, buttons and any other status indicators or inputs. It is not hard to make status lights. Only slightly more work to overlay pipes from my background image with pipes drawn using standard CoDeSys rectangles or polygons that change color. A few triangles make a valve symbol.

    If a control can have only two colors, I use normal color and alarm color, combined with alarm state. If I need more colors I use the Color Variables properties and a bit of code which sets the color variable based on status of the object at hand.

    Works for me. Your mileage may vary.

     
  • tommyslavov

    tommyslavov - 2017-02-07

    That is a possibility, but there are must be other way to do that.Do you know how I can see the link in post above?

     
  • Anonymous - 2017-02-07

    Originally created by: AntonZ

    No idea. Perhaps older topics are deleted or archived after some time. Not sure about that though.

     

Log in to post a comment.