CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Symbol Configuration / Datasource enum type on HMI
https://forum.codesys.com/viewtopic.php?f=25&t=9018
Page 1 of 1

Author:  jeffgamsby [ Sat Jul 28, 2018 6:51 pm ]
Post subject:  Symbol Configuration / Datasource enum type on HMI

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

Author:  jeffgamsby [ Mon Jul 30, 2018 7:20 pm ]
Post subject:  Re: Symbol Configuration / Datasource enum type on HMI

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?

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/