<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Passing properties as VAR_IN_OUT variables.</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/10418360b3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/10418360b3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/10418360b3/</id><updated>2025-05-13T11:04:36.189000Z</updated><subtitle>Recent posts to Passing properties as VAR_IN_OUT variables.</subtitle><entry><title>Passing properties as VAR_IN_OUT variables.</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/10418360b3/?limit=25#bc33/fd38" rel="alternate"/><published>2025-05-13T11:04:36.189000Z</published><updated>2025-05-13T11:04:36.189000Z</updated><author><name>vsgn</name><uri>https://forge.codesys.com/u/vsgn/</uri></author><id>https://forge.codesys.com563f80fe005d1785e69a6de92e7a8857172ab79c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, in my experience, the best options for such a case could be:&lt;br/&gt;
1. Pass a FunctionBlock via VAR_IN_OUT, containing all variables, mehods and properties needed for the logic of this graphic element (be aware of implementing correcly both get and set accessor for properties)&lt;br/&gt;
2. Pass an Interface via VAR_INPUT, of which you can use obviously only Properties and Methods. This is much more elegant for me. Here, you can just pass directly the instance of a FunctionBlock implementing such Interface as input.&lt;/p&gt;
&lt;p&gt;Hope you'll find this suggestions useful.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Passing properties as VAR_IN_OUT variables.</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/10418360b3/?limit=25#bc33" rel="alternate"/><published>2025-04-30T09:01:36.267000Z</published><updated>2025-04-30T09:01:36.267000Z</updated><author><name>stribor</name><uri>https://forge.codesys.com/u/stribor/</uri></author><id>https://forge.codesys.comd06e8090fc8d2ed5926570ca93c62a03e98fe07f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;if i only use it as input variable I won't be able to update its state within the visu object. Lets say i have real value as a property, i would like the slider object to display this value and also modify it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Passing properties as VAR_IN_OUT variables.</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/10418360b3/?limit=50#2169" rel="alternate"/><published>2025-03-06T16:43:12.929000Z</published><updated>2025-03-06T16:43:12.929000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.com85a27a9a5db22530e34b6c7c50e9cf81b3fc733d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Use a VAR_INPUT for properties.  The reason for the error is that you can't get a reference to a property.  Using a VAR_INPUT will copy the property to an input variable.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Passing properties as VAR_IN_OUT variables.</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/10418360b3/?limit=25#788c" rel="alternate"/><published>2025-03-01T09:31:14.377000Z</published><updated>2025-03-01T09:31:14.377000Z</updated><author><name>stribor</name><uri>https://forge.codesys.com/u/stribor/</uri></author><id>https://forge.codesys.com617743edf681ada37d163bfd7ebd8f6414eb1b55</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am designing a custom slider object and i ran into a problem when i want to use properties with it. I can update the basic variables if i have a slider variable defined as VAR_IN_OUT, but it does not work with properties.&lt;/p&gt;
&lt;p&gt;How can i achieve same functionality that some basic objects have (for example basic Slider that comes withing the codesys libraries) such that i can pass both variables and properties to it and they can be modified within the object?&lt;/p&gt;
&lt;p&gt;I am using Codesys V3.5 SP20 Patch 5.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>