Enum_to_string

Join Date
Nov 2017
Location
Luleå
Posts
1
Hi!

Is it not possible to convert a Enumeration name to string?

I am currently working in B&R, and ST, but I cannot find a solution for any IEC 61131-3 language.

If it is not possible, why?
Is not the enumeration string-part downloaded to the PLC?
 
No, enumeration names are part of your enumeration type definition. What are you trying to achieve?
 
I think you're right that the string value is now transferred. Try opening a blank project and connecting to your PLC and adding the enumeration to the watch window. If the value shows up as the enumeration text, then they do now transfer the text to the PLC.

This is above and beyond norma already, but you MIGHT be able to get at that text if it exists. You can try the Sys_Lib library's variable services to see if you can extract the text value instead of just the numeric value. Look at PV_xList() and PV_xGetVal().

It's a longshot, once the enumeration is compiled (for any platform, not just B&R), it typically doesn't contain any string information. I think B&R started including it somehow for the watch windows not too terribly long ago, but it may be that you need the matching source code open and AutomationStudio is getting that string data instead of pulling it up from the PLC.
 

Similar Topics

Im getting trouble with my plc using 1747 pic connection, i found this solution: http://www.plctalk.net/qanda/archive/index.php/t-63919.html, but...
Replies
4
Views
2,231
Hello, I have rslogix 5000 project and i would like to make simulation with rslogix emulate 5000 and wonderware intouch 2012,I already create...
Replies
1
Views
14,819
I got this problem whenever I try to browse for available OPC server in MMC for my FSGateway within my local computer.My target OPC server is...
Replies
20
Views
21,431
I was able to load and activate all of my Rocksoft software on my new dell m90 except RSLinx (can't do anything without that). During install at...
Replies
10
Views
7,266
I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
148
Back
Top Bottom