In your main VB file, whether it is Windows Form or console application doesn't matter. Now that we got the basics out of the way, you need to call this from your application. Also, the similar is true but the functions is WriteString, WriteFloat, WriteInteger and WriteDiscrete. So if you want to read the first 132 characters from the string variable with the tag SBuffer, then you call IntouchToolkit.ReadString("SBuffer", 132) or you can use ReadInteger, ReadDiscrete and ReadFloat for the respective types. This will allow you to read/write Strings, Floats, Booleans(Discrete), and Integers. The Intouch.vb file is going to contain our commands for reading and writing values with the Wonderware database. However it isn't very pretty, so that is why we use the Intouch.vb file. The Ptacc.vb file will contain everything necessary to communicate with Wonderware. Doing this will allow you to communicate with the Wonderware database. To do this, you need to copy the Intouch.vb and the Ptacc.vb into your project as well as reference the wwheap.dll and the ptacc.dll. These files were created based on information from Wonderware West and my experience with using the 2 DLLs. After that, all that will be left is your application to call the read/write functions of the Wonderare Toolkit. We will create 2 VB files that are required to call the Wonderware toolkit ( ptacc.dll and wwheap.dll). This code will contact the Wonderware running on the same computer. However, DDE is no longer supported so we will be using the Wonderware Toolkit. At most of these facilities, they need a function in the Wonderware application, but Wonderware can't do it. I have also come across it in waste water plants as well as food processing plants (Cheese Cake to be exact!!!). In this industry, many companies use a product called Wonderware. I write HMI/SCADA software mostly for the oil and gas industry. I usually have to do this to extend the functionality or to fill in the gaps between what Wonderware can do and what the customer requires. This will show you how to write applications that communicate with Wonderware. It is just a common program in the SCADA industry. Wonderware is fairly easy to use, although I am not a huge fan of it, I don't have much against it either. Wonderware is an HMI/SCADA front end made by Wonderware. This article is born out of several projects I have had extending Wonderware by calling VB.NET applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |