Expression Issue and tag placeholders

Fred R

Member
Join Date
Feb 2013
Location
St. Louis
Posts
7
I am trying to compare two values that are tag place holders like this #3 == #10 for a visibility expression.

In my parameter file #3 is a direct- reference to a tag in the PLC that is a decimal, #10 is a value 3713.

When I try to run it in FactoryTalk, I get an error ‘Failed to resolve item's ID '3713' because it does not exist on any server’ to me it looks like it is trying to use it as a name and not its value.


Is there a way to force the expression to make #10 a numeric value instead?​
 
Welcome to the Forum !

You're correct that Placeholders are looking for Tag References.

I think the easiest workaround for this is to create an HMI Tag that contains the constant value you want to use, and reference that.

In the past, I've just given these names like "Constant_4096" and put them in their own folder.
 
As usual Ken speaks the truth. I have struggled with this and there is no work around that I have found so far other than Ken's suggestion.

I as a matter of practice usually have HMI tags called "1", "2","3" etc. I always have 0-9 and have had them much higher. I make them memory tags and place them in the root folder. This allows me to use them in expressions as needed anywhere in my application. I prefer not to put them in a folder or prefix them.

RSL
 

Similar Topics

I am trying to do an expression in RSView studio to change the color of an object which will have 3 states. I have done this before using 2 tags...
Replies
7
Views
5,191
Morning, we are changing how we control an HMI by having our users sign into iFix which then sends a tag to the HMI. Looking at a specific DINT...
Replies
2
Views
71
I'm writing some structured text that's handling a data structure that comes from a PC. The PC structure is in the "new" LREAL 64-bit floating...
Replies
3
Views
501
Good Morning, I've been working on an HMI using the Panel View 5000 series. I admittedly was not very good at Factory Talk View Studio, but I...
Replies
7
Views
1,015
Hey everyone, I am trying to right an expression in FTView and getting syntax errors. If {[PLC]System.Auto} Then 1 OR If {[PLC]System.Estopped}...
Replies
2
Views
587
Back
Top Bottom