Understand VBA Code in FactoryTalk View Studio SE the Easy Way

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 21

  • @ShaneWelcher
    @ShaneWelcher  2 года назад

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

  • @yinggao5238
    @yinggao5238 Год назад +1

    Thank a lot. Really like this kind of explanation and demonstration. Very specific, plain and easy to understand

  • @georgeguel6882
    @georgeguel6882 4 месяца назад +1

    This is a good Presentation. I am looking for code Snippet for an Example of how to use VBA to pass Parameters to a Display PopUp, I have used Parameter Files in the Past, but I end up with so many Parameter Files its hard to keep track of. I have also used the /T on a button, to pass parameters, but this method you can gets cumbersome with you have a lot of Parameters in one display.
    I was thinking it would be mor efficient to use VBA to pass parameters, to a display. I have an HMI tag Database. I just need an example that I can follow.

    • @ShaneWelcher
      @ShaneWelcher  4 месяца назад

      @@georgeguel6882 use the search tab on this channel and type in "VBA" then all of the VBA code videos will appear, I have one showing how to do what you are asking

    • @georgeguel6882
      @georgeguel6882 4 месяца назад

      @@ShaneWelcher I did a search, I don't see a video show how to pass parameters using VBA. can you point me to the video? I think I need to create a tag group in VBA, then Populate the Tag group then assign tags to the placeholders in the display. I am not sure exactly how to do this.

  • @igoru3063
    @igoru3063 2 года назад +1

    Which version of FactoryTalk View Studio Site Edition in 8.2 and 10.0 will this VBA code work. I don't have a Folder and TagDB data type? Need additional libraries?

    • @ShaneWelcher
      @ShaneWelcher  2 года назад

      My example was in Factory Talk SE 13.
      You can probably download the import for the VBA from ab.com
      Just verify you don't have it by looking at lists & methods
      Keep in mind that most of what you see because it is made in the HMI screen or added as a DIM in the VBA code

  • @technicalaevus9800
    @technicalaevus9800 2 года назад +1

    Thanks as always. 👌👌👌

  • @Inosix
    @Inosix Год назад

    Hi. I notice you end up using local HMI tags when creating this VBA. What about if you were trying to obtain values from an existing OPC connection?
    I am currently working on a problem that this question would help resolve. Thanks in advance.

    • @ShaneWelcher
      @ShaneWelcher  Год назад

      Then use your OPC tags

    • @Inosix
      @Inosix Год назад

      @@ShaneWelcher I don't know how to reference OPC items in VBA. If I wanted to update a caption in an text element using VBA rather than a HMI Tag, I don't seem to be able to use TAGDB.GETTAG( OPC REFERENCE).

    • @ShaneWelcher
      @ShaneWelcher  Год назад

      @@Inosix make a HMI tag that references the OPC tag then use the HMI tag in the VBA

    • @Inosix
      @Inosix Год назад

      @@ShaneWelcher Surely there is a way to directly reference items in an established OPC connection. The feature I am designing is a custom trend function. The function allows the user to open up a pop up with I/O information (value, tag, description, setpoints, lo and hi eu) along with a button to add the tag to a list. That list gets pushed to a trend when requested.
      I would need to add every tag to an HMI tag and I am still not convinced that would work. I need the HI and LO eu to update a caption on the page. Based on the suggestion you made, I would need to add each of the elements (value, tag, description, setpoints, lo and hi eu) to HMI tags. This would be truly unwieldy and require a lot of work maintaining.
      Alternatively, simply being able to something like the following would be a lot better and obvious:
      OPC.GetTag("OPC_REFERENCE_STRING")

  • @utsavtrivedi9107
    @utsavtrivedi9107 2 года назад +1

    Thanks for the valuable contain..👍
    Suggest you to please make video on New .net control feature

    • @ShaneWelcher
      @ShaneWelcher  2 года назад

      What do you want to know about .net?

  • @yariprince
    @yariprince 2 года назад

    Great! Can please share some videos on .NET Control feature?

  • @lan3516
    @lan3516 2 года назад +1

    thanks