<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Compare structures</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a52f5c4dd6/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a52f5c4dd6/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a52f5c4dd6/</id><updated>2020-02-27T13:52:13.415000Z</updated><subtitle>Recent posts to Compare structures</subtitle><entry><title>Compare structures</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a52f5c4dd6/?limit=25#5119" rel="alternate"/><published>2020-02-27T13:52:13.415000Z</published><updated>2020-02-27T13:52:13.415000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comba6622557f98a1f883ccb49ef70ce6833a63c29a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In the memory library is a function "compare".&lt;br/&gt;
This uses 2 pointers to memory blocks.&lt;br/&gt;
If the result is 0, they are the same, otherwise the return value refers to the first byte where the difference is.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compare structures</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a52f5c4dd6/?limit=25#c648" rel="alternate"/><published>2020-02-27T13:52:12.922000Z</published><updated>2020-02-27T13:52:12.922000Z</updated><author><name>switcher</name><uri>https://forge.codesys.com/u/switcher/</uri></author><id>https://forge.codesys.com9b7dfef4e27bfe7ed1723fd1041cefc0cd78daae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you Scott,&lt;br/&gt;
I already implemented this as you suggested. It works fine.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Zdenko.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compare structures</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a52f5c4dd6/?limit=25#f0ce" rel="alternate"/><published>2020-02-27T13:52:12.760000Z</published><updated>2020-02-27T13:52:12.760000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comdc602441bcb7fb7e8beec64ee19cbf4c4d4f8b18</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;You use pointers and compare each byte of the first with the second.  See BUFFER_COMP in the OSCAT library for a free, already existing function.  Otherwise you can make your own. SIZEOF() will tell you how many bytes to compare.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compare structures</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a52f5c4dd6/?limit=25#87d9" rel="alternate"/><published>2020-02-27T13:52:12.604000Z</published><updated>2020-02-27T13:52:12.604000Z</updated><author><name>switcher</name><uri>https://forge.codesys.com/u/switcher/</uri></author><id>https://forge.codesys.comef588ec8f3b6f7c18456dfa9cb5310caaf320322</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How can we compare two structures between them? &lt;br/&gt;
I mean compare values of structure 1 members EQUAL to values of structure 2 members, like IF STRUCTURE 1 = STRUCTURE 2 THEN....&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br/&gt;
Best regards,&lt;br/&gt;
Zdenko.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>