<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Slider instance value when accessed through "execute ST-code"</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ddddb789af/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ddddb789af/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/ddddb789af/</id><updated>2025-02-07T18:33:26.031000Z</updated><subtitle>Recent posts to Slider instance value when accessed through "execute ST-code"</subtitle><entry><title>Slider instance value when accessed through "execute ST-code"</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ddddb789af/?limit=25#c7fe" rel="alternate"/><published>2025-02-07T18:33:26.031000Z</published><updated>2025-02-07T18:33:26.031000Z</updated><author><name>pernockham</name><uri>https://forge.codesys.com/u/pernockham/</uri></author><id>https://forge.codesys.com7c229b58246f13fac8d77dafe14cab1e0010e01f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think this will not work. I reworked and used an int as source instead.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Slider instance value when accessed through "execute ST-code"</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ddddb789af/?limit=25#b6ea" rel="alternate"/><published>2025-02-06T22:38:16.695000Z</published><updated>2025-02-06T22:38:16.695000Z</updated><author><name>pernockham</name><uri>https://forge.codesys.com/u/pernockham/</uri></author><id>https://forge.codesys.coma1420a1d09713ae47698ac417add15bd93312856</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a time which I want to modify with a slider. &lt;/p&gt;
&lt;p&gt;I have confirmed it is possible to set the value of the slider by to_real(time) (I can see that the slider changes according to 'my_time_value's value).  &lt;/p&gt;
&lt;p&gt;Slider variable: to_real(my_time_value);&lt;/p&gt;
&lt;p&gt;However I fail to access the current slider instance value when I want to write back the  value as time (write to a variable will not work as I need a type-conversion before assignment).&lt;/p&gt;
&lt;p&gt;my_time_value := to_time(slider-instance-value);&lt;/p&gt;
&lt;p&gt;I tried with this^.? but could not see anything interesting and also THIS^.GEN_Instance.? but nothing resemble what could be the sliders value. Anyone that knows? Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>