<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Timing of a variable's value switch by a visualisation tool</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a58e4b9f03/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a58e4b9f03/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a58e4b9f03/</id><updated>2020-02-27T14:03:03.818000Z</updated><subtitle>Recent posts to Timing of a variable's value switch by a visualisation tool</subtitle><entry><title>Timing of a variable's value switch by a visualisation tool</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a58e4b9f03/?limit=25#6fe0" rel="alternate"/><published>2020-02-27T14:03:03.818000Z</published><updated>2020-02-27T14:03:03.818000Z</updated><author><name>MrX</name><uri>https://forge.codesys.com/u/mrx/</uri></author><id>https://forge.codesys.com71a8055171f7dc8dde525834db2f9cc86a2c907f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm doing a simple exercise for learning purpose about SFC and ST on CodeSys, in which there is a dip switch object in the visualisation.&lt;br/&gt;
The dip switch change the boolean value of a variable called sig1.&lt;/p&gt;
&lt;p&gt;The application is running in a step that execute this code when it's active:&lt;br/&gt;
sig1 := TRUE;&lt;br/&gt;
(I'm aware that it's better to put this code in the entry action of the step, but it is only a basic test that I'm doing)&lt;/p&gt;
&lt;p&gt;and the exit transaction is:&lt;br/&gt;
"NOT sig1"&lt;/p&gt;
&lt;p&gt;If I change sig1 from TRUE to FALSE by the dip switch, it doesn't assert the exit transaction because the code "sig1 := TRUE;" will change another time the sig1 variable.&lt;/p&gt;
&lt;p&gt;I think that this is due to the fact that the dip switch will always be slower than the assigment in the step action, but It could be that a changement via the visualization is not made immediately but only before the next iteration of the step action. &lt;/p&gt;
&lt;p&gt;Could someone explain to me this behaviour?&lt;br/&gt;
In particular, if a variable's value changement made by a visualisation object is done immediately or not.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>