VBA code in FactoryTalk view studio

zdinani

Member
Join Date
Oct 2016
Location
montreal
Posts
2
Hi,
I have a question regarding FactoryTalk view studio. I have a page with bunch of editable variables and it works perfectly, it means that as soon as I modify a varible and press enter, it changes and follow my order but I would like to add a button of save on the same page to make me able instead of pressing enter on keyboard, just click on Save button. It 's look crazy a little bit but this is according to client requirement. I know that I need to write a VBA code to stop the process of modification till I press save but I do not have any clue to writ that. would you please comment if you have any idea?
 
Here is a link to FactoryTalkView.pdf

https://www.rockwellautomation.com/...aotm/sessions/manuals/L06-FactoryTalkView.pdf

What you want to do is write your variables in the hmi, and then take those values from the textBox or whatever input you are using and write to your desire variable address on the hmi/plc.

Ideally what you want to do is have a method called OnClickSaveButton or something along those lines and call that method when you hit the save button. You can right click on the button, and launch VBA.

Also you might have to edit your current input object script to prevent passing the new variable as soon as you hit enter.

Hope this helps.
 

Similar Topics

Hello guys, can anyone help me with FactoryTalk View Studio. I need to use a Global Object that contains VBA Macros in different displays, but it...
Replies
1
Views
1,677
Hi, I've got a project where I have to execute a VBA code cyclically - let's say every 1 minute. I've created a 'hidden' display which is opened...
Replies
2
Views
8,837
Hi all, First time poster. I am having some issues getting some VBA code to copy over to FactoryTalk in hopes of displaying a screen for a...
Replies
6
Views
13,592
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,814
Hoping for some help on this one, we are running FTVIEW SE distributed on a server. The client file runs fine on this server. We have...
Replies
4
Views
3,753
Back
Top Bottom