<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to detect change of value in a variable</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/595f79005b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/595f79005b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/595f79005b/</id><updated>2020-02-27T17:14:09.486000Z</updated><subtitle>Recent posts to detect change of value in a variable</subtitle><entry><title>detect change of value in a variable</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/595f79005b/?limit=25#192d" rel="alternate"/><published>2020-02-27T17:14:09.486000Z</published><updated>2020-02-27T17:14:09.486000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com0bf90637dff44e65ef52ec0dd41f284dd3ac0b01</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello:&lt;/p&gt;
&lt;p&gt;Very thanks, but my question was oriented to whether there is a property that you can give to some points to know that they have modified their value, or to launch an action when one is modified.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>detect change of value in a variable</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/595f79005b/?limit=25#fc41" rel="alternate"/><published>2020-02-27T17:14:06.740000Z</published><updated>2020-02-27T17:14:06.740000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.combd05adb8c10ae590b1a120d72b71568c1004276f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; ph0010421&lt;/p&gt;
&lt;p&gt;IF myVar &amp;lt;&amp;gt; oldMyVar THEN&lt;br/&gt;
    oldMyVar := myVar;&lt;br/&gt;
    //do something&lt;br/&gt;
END_IF;&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;xExecute := (myVar &amp;lt;&amp;gt; oldMyVar);&lt;br/&gt;
oldMyVar := myVar;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>detect change of value in a variable</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/595f79005b/?limit=25#45ef" rel="alternate"/><published>2020-02-27T17:14:05.741000Z</published><updated>2020-02-27T17:14:05.741000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.comd7e0187f2bee25a5f5e68602a3799c911896fc95</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello:&lt;/p&gt;
&lt;p&gt;There is some way to declare variables to detect if a change has occurred in them and to undertake an action, method or execute ST command.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>