Understand VBA Code in FactoryTalk View Studio SE the Easy Way

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 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

  • @technicalaevus9800
    @technicalaevus9800 2 ปีที่แล้ว +1

    Thanks as always. 👌👌👌

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

  • @georgeguel6882
    @georgeguel6882 6 หลายเดือนก่อน +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  6 หลายเดือนก่อน

      @@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 6 หลายเดือนก่อน

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

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