<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Warning when using ROL function</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6722ef5c9b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6722ef5c9b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6722ef5c9b/</id><updated>2020-02-27T22:53:14.885000Z</updated><subtitle>Recent posts to Warning when using ROL function</subtitle><entry><title>Warning when using ROL function</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6722ef5c9b/?limit=25#ebb0" rel="alternate"/><published>2020-02-27T22:53:14.885000Z</published><updated>2020-02-27T22:53:14.885000Z</updated><author><name>Johan</name><uri>https://forge.codesys.com/u/johan/</uri></author><id>https://forge.codesys.comdc7b78f278d9253a54a72fbe9cf80268a6994c8e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My mistake, sorry.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Warning when using ROL function</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6722ef5c9b/?limit=25#fb14" rel="alternate"/><published>2020-02-27T22:53:13.272000Z</published><updated>2020-02-27T22:53:13.272000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com1a22d0b6fcfcdb925db1b47ef53e8a19792e6dca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ROL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="o"&gt;```&lt;/span&gt; &lt;span class="c1"&gt;--&amp;gt; means Status is rotated by 8&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Status:= ROL(WORD#8,Status)&lt;/p&gt;
&lt;p&gt;``` --&amp;gt; means 8 is rotated by Status&lt;/p&gt;
&lt;p&gt;br&lt;br/&gt;
Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Warning when using ROL function</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6722ef5c9b/?limit=25#ce95" rel="alternate"/><published>2020-02-27T22:53:08.812000Z</published><updated>2020-02-27T22:53:08.812000Z</updated><author><name>Johan</name><uri>https://forge.codesys.com/u/johan/</uri></author><id>https://forge.codesys.com422144e3d489b0921fad7e07f9d1470c17792d36</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I use the "ROL" function but gets a warning (1510) that I should use "Typed Literal". How do I do that on a variable that its not a constant?&lt;/p&gt;
&lt;p&gt;Example code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;STATUS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;WORD&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;16&lt;/span&gt;&lt;span class="p"&gt;#&lt;/span&gt;&lt;span class="nn"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;span class="nt"&gt;STATUS&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;ROL&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;8&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;STATUS&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Regards&lt;br/&gt;
Johan&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>