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..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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..
look at this, it could be a solution for you.
l viewtopic.php?f=23&t=7136#p15673 l
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]
Exactly the kind of stuff I am looking for!
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.
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.
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?
Originally created by: AntonZ
No idea. Perhaps older topics are deleted or archived after some time. Not sure about that though.