<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Has any one seen this [:=]?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5be3e8c31f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5be3e8c31f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5be3e8c31f/</id><updated>2020-02-27T22:44:53.516000Z</updated><subtitle>Recent posts to Has any one seen this [:=]?</subtitle><entry><title>Has any one seen this [:=]?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5be3e8c31f/?limit=25#0bfb" rel="alternate"/><published>2020-02-27T22:44:53.516000Z</published><updated>2020-02-27T22:44:53.516000Z</updated><author><name>Ulrich Herschke</name><uri>https://forge.codesys.com/u/ulrich-herschke/</uri></author><id>https://forge.codesys.com881996df727a2a110fede97d10c1664342f7650e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I saw an assignment &lt;span&gt;[:=]&lt;/span&gt; already, but do not know where in CoDeSys.&lt;/p&gt;
&lt;p&gt;The ST in AB-CLX with Rockwell RSLogix5000 use this for initialising the variable to zero on start of plc. Normally all variables are there battery buffered = retain.&lt;/p&gt;
&lt;p&gt;regards Ulrich&lt;/p&gt;
&lt;p&gt;attached the excerpt from RSLogix help:&lt;/p&gt;
&lt;p&gt;Specify a non-retentive assignment&lt;/p&gt;
&lt;p&gt;The non-retentive assignment is different from the regular assignment described above in that the tag in a non-retentive assignment is reset to zero each time the controller:&lt;/p&gt;
&lt;p&gt;§   enters the RUN mode&lt;/p&gt;
&lt;p&gt;§   leaves the step of an SFC (This applies only if you embed the assignment in the action of the step and you configure the SFC for Automatic reset.)&lt;/p&gt;
&lt;p&gt;A non-retentive assignment has this syntax:&lt;/p&gt;
&lt;p&gt;tag &lt;span&gt;[:=]&lt;/span&gt; expression ;&lt;/p&gt;
&lt;p&gt;where:&lt;/p&gt;
&lt;p&gt;Component:  Description:&lt;/p&gt;
&lt;p&gt;tag represents the tag that is getting the new value; the tag must be a BOOL, SINT, INT, DINT, or REAL&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[:=]&lt;/span&gt;    is the non-retentive assignment symbol&lt;/p&gt;
&lt;p&gt;expression  represents the new value to assign to the tag&lt;/p&gt;
&lt;p&gt;If tag is this data type:   Use this type of expression:&lt;/p&gt;
&lt;p&gt;BOOL    BOOL expression&lt;/p&gt;
&lt;p&gt;SINT&lt;/p&gt;
&lt;p&gt;INT&lt;/p&gt;
&lt;p&gt;DINT&lt;/p&gt;
&lt;p&gt;REAL    numeric expression&lt;/p&gt;
&lt;p&gt;;   ends the assignment&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Has any one seen this [:=]?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5be3e8c31f/?limit=25#db7d" rel="alternate"/><published>2020-02-27T22:44:49.106000Z</published><updated>2020-02-27T22:44:49.106000Z</updated><author><name>nanoPLC</name><uri>https://forge.codesys.com/u/nanoplc/</uri></author><id>https://forge.codesys.com5a2a181766f5c10846122d32ebe269bc756116df</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You should open sample, and look up -  I have the sample of  machine control fom current program path "imported". Will working.&lt;/p&gt;
&lt;p&gt;I have not found drag-and-drop function from the PLC library&lt;/p&gt;
&lt;p&gt;window to worksheet window. ( 2.42 version )&lt;/p&gt;
&lt;p&gt;I wait for 3.0? I hope that without of bugs comming soon.&lt;/p&gt;
&lt;p&gt;Happy logical programing&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Has any one seen this [:=]?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/5be3e8c31f/?limit=25#a2d1" rel="alternate"/><published>2020-02-27T22:44:47.500000Z</published><updated>2020-02-27T22:44:47.500000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.com0bc86410c563bea3cf362bd3e153cdacef2d582b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There is code written in structured text that has the following:&lt;/p&gt;
&lt;p&gt;State is declared as INT.&lt;/p&gt;
&lt;p&gt;IF (State = 0) AND ( something )) THEN&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        &lt;span class="k"&gt;State&lt;/span&gt; &lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="n"&gt;Counter&lt;/span&gt; &lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;END_IF;&lt;/p&gt;
&lt;p&gt;Has any one seen this type of statement before? What is this? I have looked through CoDeSys help and Karl-Heinz book but no luck.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>