VBA Code for a Pop-Up Screen In FactoryTalk View Studio Site Edition

Sdílet
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

Komentáře • 39

  • @ShaneWelcher
    @ShaneWelcher  Před 2 lety

    Subscribe: mmini.me/Subscribe-4-Updates
    Other socials:
    Facebook: facebook.com/OnlinePLCSupport
    LinkedIn: www.linkedin.com/in/shane-welcher-sr/

  • @dungnguyenhuu2438
    @dungnguyenhuu2438 Před měsícem +1

    Thank you.❤ From Viet Nam.

  • @prabum5962
    @prabum5962 Před 2 lety +1

    thank you shane it was very useful.helped

  • @lanthonyperdum6430
    @lanthonyperdum6430 Před 2 lety +1

    Thanks for the information Shane !!!

  • @celsoferraz2033
    @celsoferraz2033 Před 2 lety

    Thanks! It was very helpful!

  • @msh828vabch
    @msh828vabch Před 2 lety +1

    Hi Shane,
    Thanks for this. I knew it was possible but couldn't figure out how.

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety

      Always glad to help, let me know if I can add more content to help spread knowledge

  • @rohitmehar5047
    @rohitmehar5047 Před 2 lety +1

    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?

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety +1

      Or a single macro that calls a popup if the condition allows.
      However, yes...easier to make a single macro for each

  • @eeng7968
    @eeng7968 Před 2 lety +1

    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!

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety

      Correct, VBA code can only be used for Site Edition or Machine Edition if using the CE model panelview but it works different

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety

      Good question

  • @HelloWorld-lt5oc
    @HelloWorld-lt5oc Před 2 lety +1

    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 ***

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety

      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.

  • @m.o.hmehidi548
    @m.o.hmehidi548 Před 6 měsíci +1

    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

    • @ShaneWelcher
      @ShaneWelcher  Před 6 měsíci

      Make sure the tags on the HMI are attached to the PLC, meaning update the tag database

    • @m.o.hmehidi548
      @m.o.hmehidi548 Před 5 měsíci

      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

  • @SCADAExperts
    @SCADAExperts Před 2 lety +1

    Hi shane will you make a video on MSSQL data read and write using VBA.

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety

      That is custom to what SQL database is being built.
      Meaning, every instance is different

    • @SCADAExperts
      @SCADAExperts Před 2 lety

      @@ShaneWelcher To Read and write value in SQL from SCADA

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety

      @@SCADAExperts reading and writing to an SQL is dependent on the application.
      Each is very different.

  • @NateMayo-rv5co
    @NateMayo-rv5co Před rokem +1

    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.

    • @ShaneWelcher
      @ShaneWelcher  Před rokem

      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

    • @natemayo4002
      @natemayo4002 Před rokem +1

      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.

    • @ShaneWelcher
      @ShaneWelcher  Před rokem +1

      @@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.

    • @natemayo4002
      @natemayo4002 Před rokem +1

      Alright I’ll try this for the upcoming week. Thank you for the help!

    • @natemayo4002
      @natemayo4002 Před rokem +1

      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.

  • @chrisjones9110
    @chrisjones9110 Před 2 lety +1

    How can I restrict this to a single client action?

    • @ShaneWelcher
      @ShaneWelcher  Před 2 lety

      Simply add security rights then disable the feature unless user code equals whatever you want.

  • @ViKisu
    @ViKisu Před 4 měsíci

    Hi Sir,
    I forgot the password of the VBA code in HMI *.gfx file. Could you please advise some help on this issue.

    • @ShaneWelcher
      @ShaneWelcher  Před 4 měsíci

      Just edit the user on the server.
      Make a new password

    • @ViKisu
      @ViKisu Před 4 měsíci

      @@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

  • @scottkinney8669
    @scottkinney8669 Před 2 lety

    I cannot get this to work. Any Tips on trouble shooting this?