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,163
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,656
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
167
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
128
Back
Top Bottom