To String Method in Factory Talk Studio?

NathanA

Member
Join Date
Aug 2017
Location
Arkansas
Posts
6
This is probably a dumb question, but I'm using a string display. One of my tags has an integer value. How do I display it as a string with the expression editor?

If {::[New_Shortcut]L23:0} < 1 Then "Blank" Else {::[New_Shortcut]L23:40}

I got it to work by creating an HMI tag as a string and linking the plc tag to that HMI tag.

If {::[New_Shortcut]L23:0} < 1 Then "Blank" Else Value

My question is why does that automatically convert the integer into a string but the expression editor doesn't convert the plc value into a string?
 

Similar Topics

I am looking for an AOI that can do string.replace(sSearch,sReplace). Thanks.
Replies
8
Views
2,197
I want to create a time stamp within my PLC when an event occurs and then read and display it as a string tag in my HMIs. I figured that someone...
Replies
3
Views
1,670
All, I am trying to reset timers when a Work Order change occurs. The Work Order comes in as a string and I am comparing it to a tag...
Replies
2
Views
83
Hello, I am using studio 5000 pro and am trying to figure out the structured text. Here's my scenario: An operator scans a barcode, the barcode...
Replies
15
Views
283
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
189
Back
Top Bottom