Enum_to_string

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?
 
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

Hello, I am working with EOTE 4.0 and HMI Magelis Harmony ST6500 I want to display a string value inside a object Parts/String Display from...
0
Replies
390
Views
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...
4
Replies
3,222
Views
Hello, I have rslogix 5000 project and i would like to make simulation with rslogix emulate 5000 and wonderware intouch 2012,I already create...
1
Replies
16,148
Views
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...
20
Replies
24,734
Views
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...
10
Replies
8,060
Views
Top