<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Symbol Configuration / Datasource enum type on HMI</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ebeab39cce/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ebeab39cce/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/ebeab39cce/</id><updated>2020-02-27T17:57:15.332000Z</updated><subtitle>Recent posts to Symbol Configuration / Datasource enum type on HMI</subtitle><entry><title>Symbol Configuration / Datasource enum type on HMI</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ebeab39cce/?limit=25#b2fd" rel="alternate"/><published>2020-02-27T17:57:15.332000Z</published><updated>2020-02-27T17:57:15.332000Z</updated><author><name>mprestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comd8197957dbd0892bceb1f6ec089b229b27dfd3c0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;jeffgamsby hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I have a DUT which is an Enum that is configured as a exported variable in my symbol configuration and is shown as the enum type, but on the HMI the datasource shows it as an int. How am I able to get the enum value on the HMI via the datasource instead of the int value? This is Codesys v3&lt;br/&gt;
Thanks&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hello jeffgamsby,&lt;br/&gt;
No this is currently not possible since the information is lost in the symbol configuration. Also there is currently no way that the textlist gets transfered from the plc to the HMI. I added an improvement for this.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
What is the point of creating an enum with the option of text list support&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The point is that you do not need to use a textlist. You can simple use the variable in the text variables field.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: EnumVsEnumTextlist.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4884"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: EnumTextlistProperties.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4883"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbol Configuration / Datasource enum type on HMI</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ebeab39cce/?limit=25#79b9" rel="alternate"/><published>2020-02-27T17:57:14.275000Z</published><updated>2020-02-27T17:57:14.275000Z</updated><author><name>S1ack</name><uri>https://forge.codesys.com/u/s1ack/</uri></author><id>https://forge.codesys.come91a8c929f8722fcbe8f1cc0ec4e838f2831f218</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;jeffgamsby hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
So I ended up creating a textlist to map the enum int to value and using a text field to display the state. Surely there is a better way where you don't have to duplicate effort at the HMI for this?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I have this same question too.&lt;/p&gt;
&lt;p&gt;What is the point of creating an enum with the option of text list support. If you cannot access the text list on a visualization via the dynamic text configuration options.&lt;/p&gt;
&lt;p&gt;As an example...&lt;br/&gt;
When you create an enum with textlist support. The icon looks like a DUT and a textlist icon combined...&lt;br/&gt;
&lt;a class="" href="https://imgur.com/D1K1bPp" rel="nofollow"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you go to use the text list on a webvisu, the enum(with textlist support) is not available as a textlist....&lt;br/&gt;
&lt;a class="" href="https://imgur.com/43nTYrt" rel="nofollow"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="http://i.imgur.com/D1K1bPp.png"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="http://i.imgur.com/43nTYrt.png"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbol Configuration / Datasource enum type on HMI</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ebeab39cce/?limit=25#d5fd" rel="alternate"/><published>2020-02-27T17:57:11.298000Z</published><updated>2020-02-27T17:57:11.298000Z</updated><author><name>jeffgamsby</name><uri>https://forge.codesys.com/u/jeffgamsby/</uri></author><id>https://forge.codesys.comd9e61570b2a6e0b4e2e0a6bb69d829a09e93e5d1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;So I ended up creating a textlist to map the enum int to value and using a text field to display the state. Surely there is a better way where you don't have to duplicate effort at the HMI for this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbol Configuration / Datasource enum type on HMI</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/ebeab39cce/?limit=25#79d2" rel="alternate"/><published>2020-02-27T17:57:10.246000Z</published><updated>2020-02-27T17:57:10.246000Z</updated><author><name>jeffgamsby</name><uri>https://forge.codesys.com/u/jeffgamsby/</uri></author><id>https://forge.codesys.com9a6f11130f5c4d264776867ddc21eee85fd6821a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a DUT which is an Enum that is configured as a exported variable in my symbol configuration and is shown as the enum type, but on the HMI the datasource shows it as an int. How am I able to get the enum value on the HMI via the datasource instead of the int value? This is Codesys v3&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>