OPC Client1. Preface
After thinking, or write down a little bit, one can be on their own learning development results summarized, and secondly can exercise their ability to express, how to express the meaning clearly. Blog Park really did not seriously do record, also will not typesetting, ugly a ratio. About OPC development, from 0 slowly began to learn (who is not), from the simple beginning, the OPC client is how to use the problem, standing in the user (relative) angle, is also a relatively simple part, easy to start from this part. According to the source code on the Internet, I soon developed a will be able to use the OPC client, the main purpose is to master the structure and usage of OPC, for the future development of OPC server pave. This is the beginning of the record, novice on the road, the road ahead twists and turns, please a lot of guidance.
2. Client Development Instructions
Client Development I use OPCDAAuto.dll this runtime, version 2.2.5.30, use regsvr32 to register it, and then in the project reference.
Use the Add reference using Opcautomation in the project file;
3. Running part
Perfectly formed, software development, basic functions or to some. Run the Demo interface: After searching for the OPC service, select one to connect and add a group (GROUP1), then add a few item under the group to do the data demonstration, the example OPC server is an OPC test server, there are some auto-changed item can be observed.
After you connect an OPC service, you can view the properties of the service, and there are a number of properties I don't know what that means.
After connecting the service, right-click in the ListBox in the group properties to add group.
Add a group named Group1 Group, in fact, there are a lot of parameters I do not know what meaning, usage is what, first out to occupy a pit bar ~ in the new group name right-click Add Item, you can edit the Add group, where filter selection I did not write. But the level of filtering is still done, just need to select the tree node on the line
Select some item click Add or double click to add it directly and then click OK to return to the main screen to see the added results.
4. Summary
This chapter is based on the beginning, not too much to explain, simply to the program to demonstrate that the function is relatively simple, the next chapter began to enter the formal theme.
OPC Learning Development Record (C #): OPC client "opening"