FTView Studio Memory Tags and Variables

arkansascontrols

Lifetime Supporting Member
Join Date
Jan 2008
Location
Arkansas
Posts
112
Question for the FTV Gurus.

I have a recurring issue with SE applications that use shared displays. I have a workaround but I'd really like to find a cleaner method.

Here's the layout.

I have an HMI that provides data on multiple identical systems. The main display provides an overview of all systems. From the main display the detail screens can be loaded for whichever system the user chooses. I use the same detail displays with tag place holders and load the displays with a parameter file for each system. This works well. However I have always have one or more detail displays that contain an ActiveX Trend object. I have Trend Templates setup for each system.

The problem is I haven't found a clean way to pass a variable to the display that it can use to load the correct trend template.

Here's what I've done in the past that I'm hoping to improve upon.

I define a Memory Type tag for System_number. From the button that loads the display I set the value of the memory tag first, then load the display with a /pParameter_File. Then in the Display_Load Event (VBA) I define taggroup and tag and assign the tag value to a VBA variable and then use the methods of the Trend ActiveX to load the trend template I want. Sounds like a Kludge Huh?

The problem is that sometimes the display loads before FTV can actually update the value of the Memory Tag, even though I'm setting that tag value before I Load the Display. So I have to hold the Display inside the Load Event with a Timer. I can't use a while loop to check for tag state change because sometimes the tag updates first so there is no consistent event I can trap for. Sometimes the tag updates first and sometimes it doesn't and the only reliable method I've found to ensure the tag has updated is to give it a few seconds, then load the trend template and let it bail out of the Load Event.

My best guess is that FTV just has a sloppy implementation of VBA, it's certainly slow so I'm assuming it's just poorly integrated. But there has to be a better way to get that info to the display so it loads the right trend template on initialization. I know I could have multiple copies of the same display with the correct trend templates defined for each display but I don't want to use any more displays than necessary I usually push the limits on the licensed number of displays.

Is there a way to pass a Variable to the display that VBA can access or a way to pass a value directly to the ActiveX Trend from the calling function/control? The way I'm doing it works and I'm not looking for alternative work-arounds. I really just feel like my limited knowledge of FTV is the problem, I can't be the only one that does this with an HMI and there just has to be a clean way to do this.
 
What version of FTView ?
The latest versions have the ability to open a display with a parameter file, that may be the way to go.

Display _000_MyScreen /PMyParameterFile
 
FTV 7.0

I am using a parameter file already for the displays tag subs, but since the Trend is an activeX and not a FTV component it won't use a Tag Sub for the template name thus you can't specify it in a parameter file.
 

Similar Topics

Hello Experts, I am trying to create a SINE Wave generator and i cannot seem to make it smoother. I have done this before but i forgot the exact...
Replies
6
Views
289
Hello all. Is there a way to upload alarm tags at the bit level to my FTView studio? I export them from my PLC thinking I will upload them to...
Replies
2
Views
408
Hello all. Many years ago I programmed an Omron PLC and HMI and I was able to control which display was being shown on the HMI from the PLC. Is...
Replies
5
Views
332
Hello all. I am trying to establish my connections in FTView Studio. Normally, after I have set up my offline tag file in communication setup I...
Replies
3
Views
654
Hello everyone, I had a problem that happening with FactoryTalk View Studio SE (V12) (Network Distributed). If i create a new project...
Replies
0
Views
636
Back
Top Bottom