CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon May 29, 2017 9:50 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Custom Graphics
PostPosted: Tue Aug 23, 2016 2:46 pm 
Offline

Joined: Thu Aug 18, 2016 4:32 pm
Posts: 29
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.

Image

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..


Top
   
 Post subject: Re: Custom Graphics
PostPosted: Thu Aug 25, 2016 8:27 pm 
Offline
User avatar

Joined: Sat Aug 08, 2015 10:01 am
Posts: 38
look at this, it could be a solution for you. :?:

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


Last edited by wollvieh on Thu Aug 25, 2016 8:41 pm, edited 1 time in total.

Top
   
 Post subject: Re: Custom Graphics
PostPosted: Thu Aug 25, 2016 8:38 pm 
Offline
User avatar

Joined: Sat Aug 08, 2015 10:01 am
Posts: 38
here you'll find the documentation of the V2.x Visualisation.
Most of the properties work.

Attachment:
CoDeSys_Visu_V23_E.zip


P.S. : i personally prefere the wine. :lol:


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: Custom Graphics
PostPosted: Mon Aug 29, 2016 3:55 pm 
Offline

Joined: Thu Aug 18, 2016 4:32 pm
Posts: 29
wollvieh wrote:
look at this, it could be a solution for you. :?:

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



Exactly the kind of stuff I am looking for!


Top
   
 Post subject: Re: Custom Graphics
PostPosted: Fri Feb 03, 2017 8:34 am 
Offline

Joined: Wed Feb 01, 2017 2:43 pm
Posts: 2
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.


Top
   
 Post subject: Re: Custom Graphics
PostPosted: Sun Feb 05, 2017 1:55 am 
Offline

Joined: Sat Jul 23, 2016 2:34 pm
Posts: 10
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.


Top
   
 Post subject: Re: Custom Graphics
PostPosted: Tue Feb 07, 2017 1:38 pm 
Offline

Joined: Wed Feb 01, 2017 2:43 pm
Posts: 2
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?


Top
   
 Post subject: Re: Custom Graphics
PostPosted: Tue Feb 07, 2017 7:09 pm 
Offline

Joined: Sat Jul 23, 2016 2:34 pm
Posts: 10
No idea. Perhaps older topics are deleted or archived after some time. Not sure about that though.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited