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.
@@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
@@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.
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?
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
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 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 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")
Subscribe: mmini.me/Subscribe-4-Updates
Other socials:
Facebook: facebook.com/OnlinePLCSupport
LinkedIn: www.linkedin.com/in/shane-welcher-sr/
Thank a lot. Really like this kind of explanation and demonstration. Very specific, plain and easy to understand
Glad to help
Thanks as always. 👌👌👌
Glad to help
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.
@@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
@@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.
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?
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
Thanks for the valuable contain..👍
Suggest you to please make video on New .net control feature
What do you want to know about .net?
thanks
Welcome
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.
Then use your OPC tags
@@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).
@@Inosix make a HMI tag that references the OPC tag then use the HMI tag in the VBA
@@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")
Great! Can please share some videos on .NET Control feature?
Maybe in the future