FactoryTalk View SE Screen Control via PLC

LlndPrkr

Member
Join Date
Jul 2016
Location
Tampa, FL
Posts
6
I've been researching a way to show and hide screens in FactoryTalk SE. I found a couple of threads about it but am running up against a problem apparently not covered there. I created a VBA script that is triggered by a tag and executes this instruction:

Application.ShowDisplay ("<screenName>")

When I run the screen as a client, I get an error message like "VBA stopped because '<screenName>' not found."

Some posted code omitted the parentheses, some included a .gfx file extension but neither of these changes made any difference. I also created a display name with no spaces and still got the "not found" error.

I know the VBA code is triggering because I tested it with a MsgBox and the variable triggers the message box.

Do I need to declare the display as a VBA object somehow or is it some other problem like a path?
 
FactoryTalk View SE - Screen Control via PLC

Hi Guys. I've researched this as exhaustively as I can and am finding nothing via Google or Rockwell manuals--including a few "classroom only" tutorials I came across. There seems to be a severe shortage of formal documentation on the VBA extension of FTView.

Any ideas? o_O

I found...
FactoryTalk View SE with VBA code
FactoryTalk View SE slash screen/pop up?
FTView SE Tag Change VBA code
FactoryTalk View Studio - creating pop-ups
FactoryTalk View SE Macro to run VB Sub
FactoryTalk View Studio 6.1 SE Network Project, Display Component not Found
Visual Basic & FactoryTalk View Studio SE
Open Display using VBA in FactoryTalk SE
 
Thanks, Kuulkum. I did see that post also. It's not clear what are the core pieces of code and which are optional dressing put in by the member who posted it. He also said it may not be complete. It crashes the VBA compiler with an "external procedure" fault.

Here's my code. I suspect that I need to add some object instances, a declaration, or some such thing to expose the FTView tags to the VBA module. I've done plenty of VBA and VB, but making VBA play nice with FT is a new trick for this old dog.

Private Sub TestVbaAnchor_Change()
If SlowBlink = 1 Then
Application.ShowDisplay ("Test")
MsgBox ("Show...")
Else
Application.UnloadDisplay ("Test")
MsgBox ("...Hide")
End If
End Sub
 

Similar Topics

Say I take some MODBUS registers and pull into my Logix plc DINT array (sequential). Now, I get a little fancy… using FactoryTalk View SE 13.00...
Replies
18
Views
3,128
Hello, I am looking to control 50 identical stations from an Allen Bradley HMI using FactoryTalk View Studio ME 11.00.00. The Stations are...
Replies
25
Views
5,860
Here we are in v12 of FactoryTalk View and from what I can tell, we still don't have a quick and easy way to close a popup after opening a new...
Replies
9
Views
3,998
Good Morning , Several years ago I would use Hope Industrial Monitors , with a PC , and Rockwell Automation FactoryTalk View Runtime Software...
Replies
4
Views
1,734
V 10.00.01 Patch 6 Is there a way to have the screen backgrounds change color based on a tag value? Other than making a big rectangle and putting...
Replies
5
Views
3,798
Back
Top Bottom