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 Mon Dec 17, 2018 10:26 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 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
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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