Ftview vba

FTnewbie

Member
Join Date
Nov 2023
Location
Buenos aires
Posts
3
Greetings, I have this question: How can I add a tag, in my case LS:0 {#5} (literal string of tag #5), to a variable using VBA? I couldn't find any documentation on this... Thank you.
 
Welcome to the forum! Maybe I am misunderstanding but I believe you need to Concatenate the strings. It's been a while since I used FTV VBA. Try searching the FTV VBA Help.

"
To open VBA Help:
From the Help menu in the VBA IDE, select Microsoft Visual Basic Help.
Alternatively, in any area of the IDE, press F1.
"

pg 531

https://literature.rockwellautomation.com/idc/groups/literature/documents/um/viewse-um006_-en-e.pdf


It might be the & operator in other words String1 & String2 would give you String1String2
 
Last edited:
Let me try explain better...

I am begginer to HMI and PLCs, and I'm working on a complex FactoryTalk project. I have been assigned a task that I need to research how to develop an automatic alarm and event filter for the object with which the operator has interacted. Forgive me if I confuse any specific FactoryTalk concepts, but I will try to be as clear as possible about my issue.

1. The operator will select the motor from which they want to obtain information. In this case, a popup for a soft-starter motor will open.

https://prnt.sc/vzW9qy0wAghG

2. Then, the global Soft-Starter motor popup will open with the information for that device, and the operator will check for specific motor events and alarms. (This is Portuguese)

https://prnt.sc/GHeL7ZZGlz1e

3.So here is the issue. Only the alarms and events specific to this motor should be shown to the operator, but it displays all the others.

https://prnt.sc/26QtJEnBHI7Z

I tried to use filters using the tag of the clicked motor, but I wasn't successful (I believe it can only read 'strings' in properties). So, I thought that one of the possible solutions would be to use VBA... But i have no idea how to do this.

Edit Motorname Object Parameter is #5
 
Last edited:
I sought technical assistance from Rockwell Automation, but they only responded with:

ID: QA49458 | Access Levels: TechConnect
Filter based on Tag name using Alarm and Event Summary object
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/619802


ID: QA41455 | Access Levels: TechConnect
FactoryTalk View SE: Pass Tag Parameter to the Alarm and Event Summary Filter
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/1052965

And unfortunately i dont have TechConnect contract :(
 
Long time since I used FT but did use RSV32 a long time ago, alarms & Events should be logged into some Database could you not do a filter query in VBA on the database?.
 

Similar Topics

Hi all. Currently I'm working on a VBa script for FTView. I would like to understand a bit better about some commands. 1) What are the...
Replies
3
Views
600
Hi all. I'm running a VBA code on my FTView which is actually working, but everytime I open the display that calls the VBA code, it throws the...
Replies
28
Views
1,820
Hello Every one, I need a help on vba code for getting data from MSSQL server 2014 to display in FTview SE client version 12 . Thanks. Please...
Replies
4
Views
1,820
I've been messing around with trying to find a way to clear all PlantPAx AOI latched alarms via the Alarm Banner or Summary objects. So far, I can...
Replies
2
Views
1,742
I have a VBA on an alarm banner that calls a large number of pop-ups alarms based on changes of digital PLC tag value. Problem is that when the...
Replies
2
Views
2,326
Back
Top Bottom