CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Thu Feb 27, 2020 9:19 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Object oriented Web-Visu
PostPosted: Sun Jul 22, 2018 11:10 am 

Joined: Tue Nov 23, 2010 1:10 pm
Posts: 1
I'm implementing a home automation with Codesys on a Wago PLC. To control shutters I always build a visu containing the same buttons for up and down, color switchings for movement visualization and a text output for the current position. Always the same for 29 shutters, only tha variables differ. Is it possible to create a common visu (like a function block) and connect it to a struct or ins/outs of a function block, so that I have to set only one variable instead of 5?

PostPosted: Mon Feb 04, 2019 9:14 am 

Joined: Wed Dec 28, 2016 11:00 pm
Posts: 76
Rather late then never;
For Codesys v2.3 you should look into the "placeholder" ($placeholder$) concept in the manual of Codesys v2.3.
For Codesys v3.5 you should take a look at graphic references in the manuals of v3.5.

PostPosted: Fri Aug 23, 2019 10:10 pm 

Joined: Sat Feb 27, 2016 5:01 am
Posts: 18
At the top of each visualization element there is an interface editor where you can define variables to be passed into each implementation of the visu element.

For example, you can create a "Switch" visu with a VAR_IN_OUT of Switch (an object containing properties and methods of the switch) and then wherever you want the switch visu to be used, place a frame and make the reference the Switch visu.

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

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 0 guests

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