<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/de7b218464/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/de7b218464/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/de7b218464/</id><updated>2020-09-13T00:40:21.723000Z</updated><subtitle>Recent posts to Declare enumerations outside Object Organizer?</subtitle><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/de7b218464/?limit=25#a6fc" rel="alternate"/><published>2020-09-13T00:40:21.723000Z</published><updated>2020-09-13T00:40:21.723000Z</updated><author><name>bamia</name><uri>https://forge.codesys.com/u/bamia/</uri></author><id>https://forge.codesys.com10afe8ff20d12d1f12a6a4236f3ee2b71404f282</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;All the answers here did not in any way address the question. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#91ba" rel="alternate"/><published>2020-02-27T20:04:02.299000Z</published><updated>2020-02-27T20:04:02.299000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comf039c53127fd8063c3f0e84ace49de15e7a73b8d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;aha you mean this line:&lt;/p&gt;
&lt;p&gt;Enumeration values are recognized in all areas of the project even if they were declared within a&lt;br/&gt;
POU. It is best to create your enumerations as objects in the Object Organizer under the register card&lt;/p&gt;
&lt;p&gt;You read it a little too strict. They will always be global, wherever you declare them.&lt;br/&gt;
i can not put type in a varlist&lt;br/&gt;
why would you do it?&lt;br/&gt;
i will put it in the checklist to codesys&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#b406" rel="alternate"/><published>2020-02-27T20:04:01.007000Z</published><updated>2020-02-27T20:04:01.007000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com2682cff3ac1f4e578cc83a0a573b5fef4d7513cb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;can you please send this manual version as page 335 is inside libraries in my manual, manuals are written for specific machines like beckhoff, wago schneider.&lt;br/&gt;
i prefer using wetransfer.&lt;br/&gt;
I do not have all manuals of all versions.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#a2e7" rel="alternate"/><published>2020-02-27T20:03:57.341000Z</published><updated>2020-02-27T20:03:57.341000Z</updated><author><name>astrand</name><uri>https://forge.codesys.com/u/astrand/</uri></author><id>https://forge.codesys.com86c68b380b236a12868b6bca0626ddf464f67fb7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;shooter hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I can not find what you say in the docs, however i can find a story about subranges, but TYPE can only be used in the datatypes tab. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The statement is in the "User Manual for PLC Programming with CoDeSys 2.3", Document Version 6.0, CoDeSys V.2.3.9.2, page 335, 10-35. &lt;/p&gt;
&lt;p&gt;Br,&lt;br/&gt;
Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#8e6f" rel="alternate"/><published>2020-02-27T20:03:56.013000Z</published><updated>2020-02-27T20:03:56.013000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com38c9835ec00e7a48d99a655100b1d1f237935004</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I can not find what you say in the docs, however i can find a story about subranges, but TYPE can only be used in the datatypes tab. You can make a subrange in a POU, but enumeration is not direct possible.&lt;/p&gt;
&lt;p&gt;You can make variables a value like &lt;br/&gt;
red:=0 &lt;br/&gt;
orange:=1 &lt;br/&gt;
green:=10;&lt;br/&gt;
what would you like to make?&lt;br/&gt;
an enumeration is just making a variable a constant value just like a global is doing.&lt;br/&gt;
if you do it inside a POU the variable can only be used inside this pou as it is a local one.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#bdf2" rel="alternate"/><published>2020-02-27T20:03:52.193000Z</published><updated>2020-02-27T20:03:52.193000Z</updated><author><name>astrand</name><uri>https://forge.codesys.com/u/astrand/</uri></author><id>https://forge.codesys.com3a08a81a3ec5049139f0d0808ff27410e0728770</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No, that's not what I mean. I want to define an enum inside a POU (for example a function block). The documentation states that this should be possible, but still this does not work for me. The only way that works is to define ENUMS under the tab "Data types".&lt;/p&gt;
&lt;p&gt;Br,&lt;br/&gt;
Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#164b" rel="alternate"/><published>2020-02-27T20:03:50.889000Z</published><updated>2020-02-27T20:03:50.889000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comad838401dedd525201b70cba7714b391295f6dff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can not write a POU outside the organizer, so why should you need to make a enumeration outside it?&lt;/p&gt;
&lt;p&gt;You can use libraries thou.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#919d" rel="alternate"/><published>2020-02-27T20:03:47.045000Z</published><updated>2020-02-27T20:03:47.045000Z</updated><author><name>astrand</name><uri>https://forge.codesys.com/u/astrand/</uri></author><id>https://forge.codesys.com91277850b45d16174278f6a6f1d5e7382feaab3d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Bump. No-one knows?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Declare enumerations outside Object Organizer?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de7b218464/?limit=25#a515" rel="alternate"/><published>2020-02-27T20:03:45.739000Z</published><updated>2020-02-27T20:03:45.739000Z</updated><author><name>astrand</name><uri>https://forge.codesys.com/u/astrand/</uri></author><id>https://forge.codesys.com750de04b7f6d2d79315efe6f4f8e11a606c1a480</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The Codesys manual states: "Enumeration values are recognized in all areas of the project even if they were declared within a&lt;br/&gt;
POU. It is best to create your enumerations as objects in the Object Organizer under the register card Data types."&lt;/p&gt;
&lt;p&gt;But how would you do if you want to create the enumerations outside the Object Organizer? What kind of POU can hold TYPE/Enumerations? And where to put them?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>