<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Visualization using methods and cyclic ST-calls</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/</id><updated>2024-03-03T06:31:28.232000Z</updated><subtitle>Recent posts to Visualization using methods and cyclic ST-calls</subtitle><entry><title>Visualization using methods and cyclic ST-calls</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/?limit=25#bea2/973b/56f7" rel="alternate"/><published>2024-03-03T06:31:28.232000Z</published><updated>2024-03-03T06:31:28.232000Z</updated><author><name>sturmghost</name><uri>https://forge.codesys.com/u/sturmghost/</uri></author><id>https://forge.codesys.combb926f93e666b408a7df04de1353fb1d17a9e6ca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not sure what you mean but you can define a visu initialization program and call it once at the visu initialization step. Look in the Visualization Manager there is a possibility to define such a program. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods and cyclic ST-calls</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/?limit=25#bea2/973b" rel="alternate"/><published>2024-03-01T11:53:48.420000Z</published><updated>2024-03-01T11:53:48.420000Z</updated><author><name>macros8</name><uri>https://forge.codesys.com/u/macros8/</uri></author><id>https://forge.codesys.com50f3c2f41f3dbf9feac0f8b76a574141027e99bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Have you found the way how to call any function in case the visu is opened? Like on event when the screen is opened to initialize some variables etc.? I can´t... :/&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods and cyclic ST-calls</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/?limit=25#bea2" rel="alternate"/><published>2024-01-22T17:15:04.682000Z</published><updated>2024-01-22T17:15:04.682000Z</updated><author><name>sturmghost</name><uri>https://forge.codesys.com/u/sturmghost/</uri></author><id>https://forge.codesys.comff80f83cda26113458816015d6cdc58491ae2661</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I found a way to do it: &lt;/p&gt;
&lt;p&gt;You can use, for example, the text variable property of any visualization element and call a function in it.&lt;/p&gt;
&lt;p&gt;Example: Write a test POU as a function (FUN), like MyTestFun which need a boolean Variable as an input value.&lt;/p&gt;
&lt;p&gt;Now write into the text variable property: &lt;/p&gt;
&lt;p&gt;MyTestFun(bBooleanValue)&lt;/p&gt;
&lt;p&gt;Thats it. The function is called at each visu_task cycle.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods and cyclic ST-calls</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/?limit=50#0f70" rel="alternate"/><published>2023-10-17T00:56:32.553000Z</published><updated>2023-10-17T00:56:32.553000Z</updated><author><name>SiegeLion</name><uri>https://forge.codesys.com/u/smartcoco/</uri></author><id>https://forge.codesys.comb6d4c9e9e83bd08077f02ebd6588df9f745c7f68</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think what you want is a declaration period function for the page, but unfortunately CODESYS does not have it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods and cyclic ST-calls</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/?limit=25#fbcc" rel="alternate"/><published>2023-10-03T12:20:07.689000Z</published><updated>2023-10-03T12:20:07.689000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comcd509386491fdd867b867380f8e5bf96c960a30d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think you want to implement client side scripting?&lt;br/&gt;
Maybe creating HTML5 objects is an option, because the JavaScript is executed on the client side. &lt;/p&gt;
&lt;p&gt;See &lt;a class="" href="https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_html5_dev.html" rel="nofollow"&gt;html5&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods and cyclic ST-calls</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/eb9ecadf34/?limit=25#603c" rel="alternate"/><published>2023-10-02T08:24:43.430000Z</published><updated>2023-10-02T08:24:43.430000Z</updated><author><name>sturmghost</name><uri>https://forge.codesys.com/u/sturmghost/</uri></author><id>https://forge.codesys.comad0acd9eb083b257b888846fb9edd920e6cafa1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Im looking for a way to implement ST-code into the visualization element without creating a helper POU or method in my device/application tree. &lt;/p&gt;
&lt;p&gt;Like visualization properties are evaluated at each VISU_TASK cycle I want to be able to create own ST code which interacts with the visualization interface variables.&lt;/p&gt;
&lt;p&gt;To be more specific I want to have a property which executes user defined ST-code at each VISU_TASK cycle exactly like its already possible for Input Configuration on various mouse and dialog events. Also a property for initialization (so only executed once) and a timed property would be nice.&lt;/p&gt;
&lt;p&gt;With the situation right now I'll have to create a POU function which handles the ST-code and misuse a property, like the text variable, to execute this POU function at each VISU_TASK cycle.&lt;/p&gt;
&lt;p&gt;Or does it exist and I don't know it?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>