CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Object oriented Web-Visu
https://forum.codesys.com/viewtopic.php?f=5&t=8999
Page 1 of 1

Author:  Heimchen [ Sun Jul 22, 2018 11:10 am ]
Post subject:  Object oriented Web-Visu

Hello,
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?
Regrads,
Christian

Author:  Hermsen [ Mon Feb 04, 2019 9:14 am ]
Post subject:  Re: Object oriented Web-Visu

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.

Author:  Maximilian_K [ Fri Aug 23, 2019 10:10 pm ]
Post subject:  Re: Object oriented Web-Visu

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.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/