Changing string display with VBA

xwei1031

Member
Join Date
Jun 2015
Location
Canada
Posts
5
Hello Guys,

I am new with VBA and am not very familiar with how to change the string display through VBA.

Right now, I am trying to make the string display function show a string variable from another function in VBA. Is there a function that I could call to display such variable?

Edit: The product I am using is Factory Talk View SE

Thanks
 
Last edited:
Place some text on the display, and call it "VBA_Text" (or anything else you want). Just make the text ??? or something.

In your VBA, the command is Elements.Item("VBA_Text").Caption = "Whatever the hell you want"

Just remember that the VBA is event driven, not cyclic like a PLC, so you'll have to work out how you trigger this command. The easiest way is to do it on display animation start, but it depends on your application as to whether that'll work for you or not.
 

Similar Topics

Hi to all. We need to change a bad powerFlex 525 to a new one. How do you save the configuration to install in the new one? Thank you all for...
Replies
5
Views
230
Hi all, I am having an issue where some of my HMI push Buttons and Indicators go in to error when I navigate to a new screen. I am using a...
Replies
16
Views
457
We have a new machine that uses an armor block to transfer input signals for conveyor position that continuously alarms out on no position change...
Replies
0
Views
87
Hello everyone, I am trying to change the IP address of the Omron PLC (NJ30-1200) and HMI (NB7W-TW01B) to fetch the network on our network...
Replies
7
Views
286
Dear Experts, I'm just started working with GEO SCADA and I need your valuable help. Currently, I'm trying to edit the alarm limits on MIMIC...
Replies
0
Views
209
Back
Top Bottom