<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Next problem with Pointer</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/1ca2eaa476/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/1ca2eaa476/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/1ca2eaa476/</id><updated>2020-02-27T22:18:22.064000Z</updated><subtitle>Recent posts to Next problem with Pointer</subtitle><entry><title>Next problem with Pointer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/1ca2eaa476/?limit=25#c18b" rel="alternate"/><published>2020-02-27T22:18:22.064000Z</published><updated>2020-02-27T22:18:22.064000Z</updated><author><name>Paul</name><uri>https://forge.codesys.com/u/paul/</uri></author><id>https://forge.codesys.coma64b5a82a19fff97305a8c0302034206c205d84d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tray next me exam:&lt;/p&gt;
&lt;p&gt;In buffer is saved structure. In first byte &lt;/p&gt;
&lt;p&gt;buffer&lt;span&gt;[1]&lt;/span&gt; is byte item&lt;/p&gt;
&lt;p&gt;buffer&lt;span&gt;[2 - 5]&lt;/span&gt; is DWORD item (status bits) &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ARRAY&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;..&lt;/span&gt;&lt;span class="mi"&gt;1024&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="n"&gt;OF&lt;/span&gt; &lt;span class="n"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;tmp&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;POINTER&lt;/span&gt; &lt;span class="n"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;tmp&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;adr&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="o"&gt;)+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;numdw&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;tmp&lt;/span&gt;&lt;span class="o"&gt;^;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If I offset 1-3 is problem with byte older. Is not same as source array? If I offset about full DWORD is true. Way?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>