Multipul Macrs in Factorytalk

leighigh

Member
Join Date
Dec 2012
Location
Colorado
Posts
81
Can more then one macro be executed when starting a display or shuting down a display?
If yes what is the proper syntax.
 
The simplest method (assuming FTView Standalone or SE, not ME) is to make another macro that simply calls the subsidiary macros you want one at a time, and put the new 'master' macro in the startup/shutdown command box on the dialog for the display (Right click display, "Display Settings | Behavior"

That may work for you, but sadly, FTView sometimes manages to completely unload a display before the macro chain terminates (depending on what you are doing), so I typically try to put all of my startup/shutdown code in VBA and handle it there.

If you go the VBA route, you want to use the Display related system calls "Display_AnimationStart()" and "Display_BeforeAnimationStop()".

A simple example would be for trend displays, this is a simple method of retaining settings to the trend between closing and opening the window again:

Code:
Private Sub Display_AnimationStart()
    Trend.LoadTemplate "LastView"
End Sub

Private Sub Display_BeforeAnimationStop()
    Trend.SaveTemplate "LastView"
End Sub
 

Similar Topics

Hello all, I'm having trouble opening an application. After clicking open I'm prompted to login and after putting in username & password it...
Replies
0
Views
60
Has anyone found information on using the variable message file? I keep looking for documentation on how to implement the message file name as a...
Replies
0
Views
63
I have two identical machines running similar HMI projects, the only difference is one is done in FactoryTalk View Version 10 and the other is...
Replies
5
Views
227
how to communicate FactoryTalk Optix and Mitsubishi Q Series. I want to know the details of that
Replies
0
Views
68
Hoping someone can give me some guidance or confirmation of what I need to do. We have a FactoryTalk SE program that I need to change the IP...
Replies
2
Views
121
Back
Top Bottom