Use Enums and Constants in a TIA Portal global library

0
Hello,    is it possible to export Enums and Constants and use it in a global lib in TIA Portal?    Thanks in advance!     
asked
1 answers
1

Hi Patrick,

 

I'm afraid that this is unfortunetly not possible. At least not in the way that I suggest you are intending to use it. 

In general you are able to use constants or enums when developing a TIAX library. However it is not possible to export these structures for usage in TIA Portal.

First of all, because one is not able to define global constants within the TIAX library workflow. Second of all, because enums or named values defined within a TYPE-section as shown below are converted into their basetypes when exporting the ax-library into TIA Portal. So for the example given below you will end up with an INT for the named value and an UINT for the enum. 

image.png

 

 

answered