<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to manage variable types larger than 64 bits - Ethernet/IP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/</id><updated>2024-09-23T12:06:29.584000Z</updated><subtitle>Recent posts to How to manage variable types larger than 64 bits - Ethernet/IP</subtitle><entry><title>How to manage variable types larger than 64 bits - Ethernet/IP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/?limit=25#cf6a" rel="alternate"/><published>2024-09-23T12:06:29.584000Z</published><updated>2024-09-23T12:06:29.584000Z</updated><author><name>opineiro</name><uri>https://forge.codesys.com/u/opineiro/</uri></author><id>https://forge.codesys.comdeddc1e455ef97008fc9c8c3210eb3aeb45abd5c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, I'm going to try it!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to manage variable types larger than 64 bits - Ethernet/IP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/?limit=25#7f88" rel="alternate"/><published>2024-09-23T11:57:06.135000Z</published><updated>2024-09-23T11:57:06.135000Z</updated><author><name>ph0010421</name><uri>https://forge.codesys.com/u/ph0010421/</uri></author><id>https://forge.codesys.com94ea5d78afd3a6ce8df504dacb8c8d15d9724398</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;So it's currently mapped to an array of BYTES? Can you create a UNION?&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nt"&gt;TYPE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;sBytesString&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
&lt;span class="nt"&gt;UNION&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;AsBytes&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;ARRAY&lt;/span&gt;&lt;span class="cp"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="nx"&gt;..127&lt;/span&gt;&lt;span class="cp"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;OF&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;AsString&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;128&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nt"&gt;END_UNION&lt;/span&gt;
&lt;span class="nt"&gt;END_TYPE&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Map it to the bytes, read it in the STRING!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to manage variable types larger than 64 bits - Ethernet/IP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/?limit=25#3eba" rel="alternate"/><published>2024-09-23T11:42:42.145000Z</published><updated>2024-09-23T11:42:42.145000Z</updated><author><name>opineiro</name><uri>https://forge.codesys.com/u/opineiro/</uri></author><id>https://forge.codesys.com5cdf501d3d4784a0420e3a462bf0ce9b8254caef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, that's what I thought initially.&lt;br/&gt;
The point is that I can't select a String type variable. See the attached image&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to manage variable types larger than 64 bits - Ethernet/IP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/?limit=25#a348" rel="alternate"/><published>2024-09-23T11:34:36.447000Z</published><updated>2024-09-23T11:34:36.447000Z</updated><author><name>ph0010421</name><uri>https://forge.codesys.com/u/ph0010421/</uri></author><id>https://forge.codesys.com30639a6693dbfbe763e0aa1bd0658921cb990b3c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My guess is that's a &lt;strong&gt;STRING&lt;/strong&gt;, not an INT type.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to manage variable types larger than 64 bits - Ethernet/IP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21935ead3f/?limit=25#7e37" rel="alternate"/><published>2024-09-23T10:24:24.939000Z</published><updated>2024-09-23T10:24:24.939000Z</updated><author><name>opineiro</name><uri>https://forge.codesys.com/u/opineiro/</uri></author><id>https://forge.codesys.com9d32173482f395ddb2e56f95f5001907bb254fbc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there, &lt;/p&gt;
&lt;p&gt;I have a Keyence bar code reader connected to my plc through Ethernet/IP. &lt;br/&gt;
The Bar code is 20 digits long (like 30100790020493036016), the scanner reads it correctly (I can verify that through the keyence software) but when it sends it through ETH/IP, it doesn't fit into a 64 bit variable and it trunks the data.(I've tried ULINT and LWord without success).&lt;br/&gt;
When I loaded the EDS file, the read variable was defined as a byte with 128 bits length, which is quite strange for me. (see attached picture) &lt;br/&gt;
How do I manage this variable?&lt;br/&gt;
Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>