<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to User-Defined Data Types</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8679e0e58d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8679e0e58d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8679e0e58d/</id><updated>2020-02-27T19:22:41.958000Z</updated><subtitle>Recent posts to User-Defined Data Types</subtitle><entry><title>User-Defined Data Types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8679e0e58d/?limit=25#8c4d" rel="alternate"/><published>2020-02-27T19:22:41.958000Z</published><updated>2020-02-27T19:22:41.958000Z</updated><author><name>martino</name><uri>https://forge.codesys.com/u/martino/</uri></author><id>https://forge.codesys.comcaa5b7311e8fc38edf988d707853420a557b22d4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, This helps a lot&lt;br/&gt;
Also I should note that I was declaring the TYPE and STRUCT in the ST code, but realized I was supposed to add it in the Data Types Tab&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>User-Defined Data Types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8679e0e58d/?limit=25#fe55" rel="alternate"/><published>2020-02-27T19:22:38.502000Z</published><updated>2020-02-27T19:22:38.502000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comf2a703a8d7cf4d2eb241906fc54096039ef1a056</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;in your POU you say :&lt;br/&gt;
VAR&lt;br/&gt;
history array&lt;span&gt;[1..10]&lt;/span&gt; of Historyarr;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;in the ST you write for example&lt;/p&gt;
&lt;p&gt;history&lt;span&gt;[1]&lt;/span&gt;.anglerequested :=setangle;&lt;/p&gt;
&lt;p&gt;it works the same as when you say array of INT but now the whole structure can be used.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>User-Defined Data Types</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8679e0e58d/?limit=25#7eee" rel="alternate"/><published>2020-02-27T19:22:37.281000Z</published><updated>2020-02-27T19:22:37.281000Z</updated><author><name>martino</name><uri>https://forge.codesys.com/u/martino/</uri></author><id>https://forge.codesys.com3942d835b8aace2474f84f026eb2ef7f50d6f035</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm very new to Structured Text and dealing with user-defined data types. I've looked online and on the codesys manual, and from what i've read, it seems like this should work:&lt;/p&gt;
&lt;p&gt;TYPE HistoryArr :&lt;br/&gt;
STRUCT&lt;br/&gt;
    BaseRequested:REAL;&lt;br/&gt;
    BaseActual:REAL;&lt;br/&gt;
    AngleRequested:REAL;&lt;br/&gt;
    AngleActual:REAL;&lt;br/&gt;
    DateAndTime:DT;&lt;br/&gt;
END_STRUCT&lt;br/&gt;
END_TYPE&lt;/p&gt;
&lt;p&gt;Codesys wants me to declare HistoryArr.. What type would I declare this as? eg. WORD, INT, etc&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>