<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Different types of values in the same array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/</id><updated>2020-02-27T13:49:13.844000Z</updated><subtitle>Recent posts to Different types of values in the same array</subtitle><entry><title>Different types of values in the same array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/?limit=25#28f9" rel="alternate"/><published>2020-02-27T13:49:13.844000Z</published><updated>2020-02-27T13:49:13.844000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.com3a612122f4fe0fc9a1eccff4b000d853fced72b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you I aprreciate it so much..it's a big help for me&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Different types of values in the same array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/?limit=25#8ac7" rel="alternate"/><published>2020-02-27T13:49:13.731000Z</published><updated>2020-02-27T13:49:13.731000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.combd6aa55db785c69742db05f94d5bad6e17d5729c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;First create the structure:&lt;/p&gt;
&lt;p&gt;Then create an array of this structure:&lt;/p&gt;
&lt;p&gt;You can get access to the items in the array in e.g. structured text as:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;astMyStruct&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;byByte&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;astMyStruct&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;sString&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Hello'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;img alt="IMG: ScreenShot1.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1433"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ScreenShot2.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1434"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ScreenShot3.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1435"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Different types of values in the same array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/?limit=25#66ef" rel="alternate"/><published>2020-02-27T13:49:13.399000Z</published><updated>2020-02-27T13:49:13.399000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.com2fb3d1b867816d841794ff480e2d3c572b502682</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your reply, can you explain it a little more please...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Different types of values in the same array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/?limit=25#bab9" rel="alternate"/><published>2020-02-27T13:49:13.310000Z</published><updated>2020-02-27T13:49:13.310000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comd30415565f871a3e0d0c7ffd5a04aa29c3fbdc9b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Create an array of structures.&lt;br/&gt;
First define the structure (type DUT) with a string and a byte.&lt;br/&gt;
Then declare a variable as an array of this structure.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Different types of values in the same array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e076149c8/?limit=25#d6f0" rel="alternate"/><published>2020-02-27T13:49:13.224000Z</published><updated>2020-02-27T13:49:13.224000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.com31363d6900ed8412a31d26b56ab283013d6283d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I want to make a 10x2 array but in each column I want to have different type of data .In the first column string type in the second bytes, is it possible to make something like that?Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>