Factory Talk View Visibility and Parameter File

DJ DiP

Member
Join Date
Jul 2014
Location
Pennsylvania
Posts
7
Okay so I am using Factory Talk Studio 8.1 and am having a hard time figuring out how to use a parameter file to control the visibility of a button. I have 4 different parameter files and tried having the place holders control the visibility of each of the buttons so that when they are clicked they cannot be clicked until another parameter file is loaded. Example visibility: #1=1 visible. This comes up with an error "expression contains a tag that has an error value: #1=1". I am trying to do this so that the popup does not come up saying "GoToDisplayButton's requested display is already open". I know there is a parameter file tag in the global connections that could be of use but I'm not sure if the HMI writes to the PLC or my guess is that it only reads from the PLC. Any ideas?
 
It thinks the number "1" is a tag. Easiest way around this is to make an HMI tag with the value of 1, and make it retentive.
 
I would normally make a tag but the go to display buttons do not write to tags so there is no way of knowing which parameter file is selected.
 
I would normally make a tag but the go to display buttons do not write to tags so there is no way of knowing which parameter file is selected.
You're missing the hint given by @jkerekes. Create an HMI tag, something like visibility_control and rewrite the parameter file:
Code:
#1 = visibility_control
 
That worked thank you! I originally ignored that because I didn't actually use #1=1 I just posted that as an example. What I didn't do was create a tag in the HMI I was just setting #3=cp1000.
 
Distributed Station HMI tag issue

Good Morning/ Afternoon all.
Stumbled across this thread looking for help on a similar issue.
Inherited an application with the HMI Tag solution implemented.
The Issue I have now is that if 2 people are viewing an application at the same time,(network distributed) the HMI tag will get overwritten with a new value by the most recent push button, and can cause the HMI tag to change value.

Is there any other solution to this?
I am passing in a value #5 = 0 OR 1and up until now I am Setting (Pump_visibility)=#105 from the parameter file of the button.
#5 is also equal to #105.

Any help would be greatly appreciated.
 
The Issue I have now is that if 2 people are viewing an application at the same time,(network distributed) the HMI tag will get overwritten with a new value by the most recent push button, and can cause the HMI tag to change value.

The OP was for FTView Machine Edition, so it worked well because only 1 HMI is using the tag database; like FTView SE Station


If you have only a few clients, you could try to use multiple HMI tag folders. One folder for each client.
But then the HMI would need to know which client it was running on, and only use that HMI tag folder.
It's not a great solution, and it really doesn't work with many clients.


After that, you will need to use VBA.
Setting visibility of an object with VBA is not too hard. You can also add a VBA click action to a button which makes other objects/groups visible or not.
The good thing about VBA (in this case) is that it is client-side; it only runs on the local client. So that will only affect the one client, and is not shared to the others.
 
The OP was for FTView Machine Edition, so it worked well because only 1 HMI is using the tag database; like FTView SE Station


If you have only a few clients, you could try to use multiple HMI tag folders. One folder for each client.
But then the HMI would need to know which client it was running on, and only use that HMI tag folder.
It's not a great solution, and it really doesn't work with many clients.


After that, you will need to use VBA.
Setting visibility of an object with VBA is not too hard. You can also add a VBA click action to a button which makes other objects/groups visible or not.
The good thing about VBA (in this case) is that it is client-side; it only runs on the local client. So that will only affect the one client, and is not shared to the others.

Thanks for the feedback.
I understand what your saying.
I have developed a solution using a PLC tag and passing in a placeholder and driving a visibility clause of the placeholder passed in.
It's strange what I am actually trying to do but have a working solution.

Lesson learned for the future, HMI tag's that can be written to from the front end are better for single clients.

Again, thanks for your help.
 

Similar Topics

Hi all, Attached below is an example of what is happening to our existing SCADA. It seems after patching some Rockwell Software that I thought...
Replies
9
Views
313
The client has an application that when communication between the PLC and the Factory Talk VIEW supervisory fails, the object in the supervisory...
Replies
5
Views
277
Hello all, I am looking for a way to have a user get logged out after an X amount of time because to default so that user privilages are no...
Replies
4
Views
566
Hello everybody. I was wondering if there is a way in FTVIEW Studio to close ) view after x min without interaction . My issue is the following...
Replies
2
Views
354
Is there a way to choose the base font in ME. Text in the Arial Unicode MS which is the default font on my FTVS doesnt show up properly on a...
Replies
1
Views
661
Back
Top Bottom