<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to string CRC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2b04e5dbf/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2b04e5dbf/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a2b04e5dbf/</id><updated>2020-02-27T14:35:30.438000Z</updated><subtitle>Recent posts to string CRC</subtitle><entry><title>string CRC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2b04e5dbf/?limit=25#4943" rel="alternate"/><published>2020-02-27T14:35:30.438000Z</published><updated>2020-02-27T14:35:30.438000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.com30a0adcf7d29e107c7e55c5ba70f2f7ac9c92c8e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;stolen from  l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?t=948" rel="nofollow"&gt;viewtopic.php?t=948&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;MyString   AT %MW0:      STRING(80);&lt;br/&gt;
MyBArray   AT %MW0:      ARRAY &lt;span&gt;[0..79]&lt;/span&gt; OF BYTE;&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;byByte:BYTE;&lt;br/&gt;
sString:STRING(8 ); (&lt;em&gt;a normal string has a size of 80 chars&lt;/em&gt;)&lt;br/&gt;
abyByte: pointer to POINTER TO ARRAY&lt;span&gt;[0..7]&lt;/span&gt; OF BYTE;&lt;br/&gt;
abyByte:=ADR(sString); (&lt;em&gt;if lengths do not match you can get real weird problems&lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;byByte:=abyByte^&lt;span&gt;[i]&lt;/span&gt;;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>string CRC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2b04e5dbf/?limit=25#1a12" rel="alternate"/><published>2020-02-27T14:35:29.909000Z</published><updated>2020-02-27T14:35:29.909000Z</updated><author><name>keobe</name><uri>https://forge.codesys.com/u/keobe/</uri></author><id>https://forge.codesys.com0e38eff89ff0a50c1593ec804aa1ae0b24645f0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;thank you for your suggestion,&lt;br/&gt;
but the crc_gen only works on byte array, need to change the string to byte array! how, no lib function supports this conversion.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>string CRC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2b04e5dbf/?limit=25#cdb9" rel="alternate"/><published>2020-02-27T14:35:29.315000Z</published><updated>2020-02-27T14:35:29.315000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.comfe0cd6cde5c2748096ba5c11a69819fa68b56b25</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;look at oscat basic library it as the function CRC_GEN that will calculate if for you&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.oscat.de/downloadmanager/viewcategory/3.html" rel="nofollow"&gt;http://www.oscat.de/downloadmanager/viewcategory/3.html&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>string CRC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2b04e5dbf/?limit=25#7698" rel="alternate"/><published>2020-02-27T14:35:27.941000Z</published><updated>2020-02-27T14:35:27.941000Z</updated><author><name>keobe</name><uri>https://forge.codesys.com/u/keobe/</uri></author><id>https://forge.codesys.comaed965c2fde1b48655528d8bdefb07138a14d008</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;HI&lt;br/&gt;
I have a string 'CA,0,0,3,0,0,1,ED$R$N'&lt;br/&gt;
may i know how to write a source code using codesys 2.3 in ST to calculate the  CRC of this string?&lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>