<?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</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/</id><updated>2020-07-21T07:12:48.443000Z</updated><subtitle>Recent posts to Visualization using methods</subtitle><entry><title>Visualization using methods</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/?limit=50#cfc8/263b" rel="alternate"/><published>2020-07-21T07:12:48.443000Z</published><updated>2020-07-21T07:12:48.443000Z</updated><author><name>ludecus</name><uri>https://forge.codesys.com/u/ludecus/</uri></author><id>https://forge.codesys.com85e0cc832db0c9feb8bd30dc7cbc0e33c93f3538</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your response m.prestel.&lt;/p&gt;
&lt;p&gt;That's exactly what i need to do, but its not a good solution. The PLC_PRG would be just a helper, which i want to eliminate.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/?limit=50#af1d/475c/90a2" rel="alternate"/><published>2020-07-21T07:06:15.438000Z</published><updated>2020-07-21T07:06:15.438000Z</updated><author><name>ludecus</name><uri>https://forge.codesys.com/u/ludecus/</uri></author><id>https://forge.codesys.com03f34dd3efb9b18bf1eca0e043c3eb396157f0fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank loraul for your sample.&lt;/p&gt;
&lt;p&gt;The method i would like to call is a method of a FB. Therefore your idea won't work.&lt;br/&gt;
Okay, i could use a function as wrapper to call the method. But that's not a simple solution.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/?limit=25#af1d/475c" rel="alternate"/><published>2020-07-13T10:26:31.978000Z</published><updated>2020-07-13T10:26:31.978000Z</updated><author><name>loraul10</name><uri>https://forge.codesys.com/u/loraul10/</uri></author><id>https://forge.codesys.com45b82ddfd78dc4c00fd8cbef3e76aefe6f925196</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
   you can use an internal visu variable to handle the click mouse, and then in the function called from TextVariable property use this variable. Please find attahced project&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/?limit=25#cfc8" rel="alternate"/><published>2020-07-13T06:27:38.706000Z</published><updated>2020-07-13T06:27:38.706000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.coma340ce6ad222bc61a4004b71ba11bca4b328dad7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello &lt;a class="user-mention" href="/u/ludecus/"&gt;@ludecus&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;have you tried to use OnMouseDown and onMouseUp and toggle a bool, which then causes your method to be called multiple cycles (e.g. check in PLC_PRG if the bool is try and then call the method).&lt;/p&gt;
&lt;p&gt;Datasources only support values.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/?limit=50#af1d" rel="alternate"/><published>2020-07-10T09:23:47.533000Z</published><updated>2020-07-10T09:23:47.533000Z</updated><author><name>ludecus</name><uri>https://forge.codesys.com/u/ludecus/</uri></author><id>https://forge.codesys.comd6b9330e568272570effcb9dd473cd724dd22418</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your response!&lt;/p&gt;
&lt;p&gt;Unfortunately this mouse click is - as all the other input configurations also - only an event. If the method or function runs more then one cycle, this wont work. Even if that would be bad while its hidden code. Or am i wrong?&lt;/p&gt;
&lt;p&gt;An other option would be, that the TextVariable would be linked to a cyclic called variable, e.g. Prg_Visu. There the variable could call a method or function until those is finished. But that will completely separate the functionality from the visualization.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/?limit=25#f8d5" rel="alternate"/><published>2020-07-09T06:05:54.669000Z</published><updated>2020-07-09T06:05:54.669000Z</updated><author><name>loraul10</name><uri>https://forge.codesys.com/u/loraul10/</uri></author><id>https://forge.codesys.combaaa1ae165de60af6865725efe9a8f9bca20254d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
  in visu properties you can replace a variable by a function call. For example, rectangle component has a "TextVariable" property where you can place a variable or a function call. This function call is executed every cycle in Visu task, and you can use to handle the mouse click through a visu local variable.&lt;/p&gt;
&lt;p&gt;In this post there is some example of how to use function calls in visu &lt;a href="https://forge.codesys.com/forge/talk/Visualization/thread/ea04556dc9/"&gt;https://forge.codesys.com/forge/talk/Visualization/thread/ea04556dc9/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But it's not a good practice because the code is hidden in a visu frame. I think, it's better if you use a FB associated to a visu frame. &lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visualization using methods</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8860f90d2b/?limit=50#e709" rel="alternate"/><published>2020-06-22T06:40:03.248000Z</published><updated>2020-06-22T06:40:03.248000Z</updated><author><name>ludecus</name><uri>https://forge.codesys.com/u/ludecus/</uri></author><id>https://forge.codesys.com6308a9a59df3d7d97ac9766aff1e8b731e1af421</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I tried many things but i didn't solved my issue.&lt;/p&gt;
&lt;p&gt;In an visualization frame i would like to run a method by the mouse click event.&lt;br/&gt;
If the button is clicked, the method should run (multiply cycles) until the method returns a value.&lt;/p&gt;
&lt;p&gt;My issue is, that i can't find a way within the frame.&lt;br/&gt;
Do i really use to have a POU which handles the cyclic call?&lt;br/&gt;
Isn't there any code behind within the frame possible?&lt;/p&gt;
&lt;p&gt;An other way is to use a separate HMI project and map with data sources.&lt;br/&gt;
How can i map also methods? Variables, properties and transitions are mappable, why doesn't work methods?&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>