VBA Code for a Pop-Up Screen In FactoryTalk View Studio Site Edition
Vložit
- čas přidán 26. 07. 2024
- Pop-up screens that are controlled from plc tags can be a challenge in FactoryTalk View Studio Site Edition, it is actually a more common task in the machine edition which is exactly why I made this video.
Because we need a good resource for pop-up screens in FactoryTalk View Studio Site Edition.
0:00 Quick Intro
0:57 Overview Of This Video
1:10 Ladder Logic Used
1:45 Making a macro in FactoryTalk View Studio SE
3:28 Display settings that are important - Set On Top
4:21 Adding a Numeric Display for VBA Code use
6:26 Setting the Numeric Display to VBA Control
6:51 Editing the VBA Code for the Pop-Up Screen
7:41 Editing the VBA Code logic to fit our application
9:25 Adding our Macro to the VBA Code
12:00 Testing the VBA Code Pop-up Screen
13:30 Further System Testing
14:46 The Final VBA Code view
16:05 Recommended Video for You
I hope it helped.
Thank you for watching the video.
Learn, Implement, Succeed
If you are interested in getting serious about your knowledge & learning how to better your career then check out our training center.
Visit:
www.allen-bradley-plc-trainin...
Other social media:
LinkedIn: / shane-welcher-sr
Facebook: / onlineplcsupport
#VBA #FTViewVBA #VBAcode
Subscribe: mmini.me/Subscribe-4-Updates
Other socials:
Facebook: facebook.com/OnlinePLCSupport
LinkedIn: www.linkedin.com/in/shane-welcher-sr/
Thank you.❤ From Viet Nam.
thank you shane it was very useful.helped
Thanks for the information Shane !!!
Glad to help
Thanks! It was very helpful!
Anytime, here to help
Hi Shane,
Thanks for this. I knew it was possible but couldn't figure out how.
Always glad to help, let me know if I can add more content to help spread knowledge
Great Video again Shane.
I want to know, if I am having 100 pop-ups screen in my project then it is a good way if I create 100 Macros for that?
Or a single macro that calls a popup if the condition allows.
However, yes...easier to make a single macro for each
Hi Shane,
Just making sure...VBA code can only be used with FactoryTalk View Studio SE not ME, correct? Not seeing any way to do this with ME at the moment, although it would be very useful if I could. Great video!
Correct, VBA code can only be used for Site Edition or Machine Edition if using the CE model panelview but it works different
Good question
Hi Shane, is this possible in machine edition? Dealing with the remote screen display logic and macros in machine edition is a real pain in the ***
Pop ups are much easier on Machine Edition, just use the global connections & use remote display number in the display tab then link that to a tag.
Or you can do this from a macro if only one screen is needed to be controlled.
hello thank you for this video, for me it worked but the text that i put in the display of the pop up is 'question mark' can you help me please
Make sure the tags on the HMI are attached to the PLC, meaning update the tag database
thank you , have another question please,
I added the num display in the main page on the line supervision like you said and I put it in non-visible but after that I had a problem on the line supervision, I could no longer press the elements in top of my supervision it's like there was an invisible page which blocked this even though I set my num display to non-visible, I don't know if it's due to that or not, I had to reinstall the backup app to resolve the problem
@@ShaneWelcher
Hi shane will you make a video on MSSQL data read and write using VBA.
That is custom to what SQL database is being built.
Meaning, every instance is different
@@ShaneWelcher To Read and write value in SQL from SCADA
@@SCADAExperts reading and writing to an SQL is dependent on the application.
Each is very different.
How do you make it so that it only pops up on a certain screen? I got it to work but my display pops up regardless of what screen I put the numeric display on.
Not sure you followed the video 100%, the VBA code is custom to only the screen you put it on.
Unless you accidentally duplicated the screen to make another one.
Remove it from the header & only add the VBA code to the screens you want to have the popup for
I originally put it on other screens as well but then the client wanted it to be on a certain screen only. I deleted the numeric display on the other screens but maybe there is something additionally I have to do to remove the vba code from that screen? Thanks for the reply.
@@natemayo4002 after you edit this to make sure you have it per the theory of operation then close the client & launch it again.
If that doesn't clear it up then you still need to verify the VBA code is in the correct place.
Alright I’ll try this for the upcoming week. Thank you for the help!
Hey! So I got it working. I think the issue was that either named the macro and numeric display the same thing or I just needed to restart my computer. Just thought I’d put that out here for anyone in the future.
How can I restrict this to a single client action?
Simply add security rights then disable the feature unless user code equals whatever you want.
Hi Sir,
I forgot the password of the VBA code in HMI *.gfx file. Could you please advise some help on this issue.
Just edit the user on the server.
Make a new password
@@ShaneWelcher thank you for your reply. Could you please give me some more detail. I do edit the user, but it doesn't work. It still shows displaycode password message box
I cannot get this to work. Any Tips on trouble shooting this?
Did you follow exactly what I show in the video?
@@ShaneWelcher I did.
I'm trouble shooting it now