CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Sep 18, 2019 8:14 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Jul 28, 2018 6:51 pm 
Offline

Joined: Fri Jul 27, 2018 6:31 pm
Posts: 4
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

Thanks


Top
   
PostPosted: Mon Jul 30, 2018 7:20 pm 
Offline

Joined: Fri Jul 27, 2018 6:31 pm
Posts: 4
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?


Top
   
PostPosted: Mon Sep 16, 2019 6:34 pm 
Offline
User avatar

Joined: Wed Sep 26, 2018 5:27 pm
Posts: 14
jeffgamsby wrote:
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?

I have this same question too.

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.

As an example...
When you create an enum with textlist support. The icon looks like a DUT and a textlist icon combined...
Image

When you go to use the text list on a webvisu, the enum(with textlist support) is not available as a textlist....
Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited