Several major realms developed by OPC Server

xiaoxiao2021-03-06  52

OPC Server's development is more difficult, OPC Server develops mainly to apply COM technology. The main application books are "COM entry and applications" written by Pan Aimin, and a large number of technologies have a lot of reusability, which is developed. After that basically all Dongdong can be reused and re-released.

There are three ways to develop:

1. Simple: It is to make your device into associated OPC servers such as DDE to OPC or serial to OPC, Modbus To OPC. The method is simple and practical, and the cost is reasonable and fast, so you will immediately take the OPC Express. Main defects: Your equipment must be standard or more standard equipment compatible. This approach is more suitable for a manufacturer of more products, or provides OPC-related products.

2.. General: Applying third-party development kit development, this way reduces the difficulty of development, and the third party has corresponding technical support, developers professional doing this product, product has certain stability. This approach is dependent on the development package, and the stability of the OPC server relies on third parties. This method is suitable for the boss asking you to develop OPC products immediately is ^ _ ^, or entry. Domestic-related development packs have Hua Fu Tong's development kits.

Foreign reference: http://www.opcconnect.com/source.php OK, but now there is also a dead link, but his tips are really good.

3. It is difficult to apply COM development. This development method is the most learning. However, there is a need to have a certain basis, and there is a certain understanding of English. The main knowledge involved has some points.

Have a certain C / C programming experience ---- code is necessary to write

Can apply VC development environment ---------------------------------------------------------------------------------------------

Master a certain COM knowledge ----- Advanced Dongdong

Read the relevant OPC development documentation ---- Sunflower Collection

Development ------------- you kill pork is delicious

Hash table related content, mainly used in a large number of nodes inquiry ----- murder in invisible

Basically, according to this study, there is too much introduction to the top two, here, don't say it.

COM technology can refer to the COM content of vchelp http://www.vckbase.com/, other websites are casually talking. Books can read Pan Aimin's "COM principle and application", "COM nature" and other books.

OPC Documentation You can see Data Access Custom Interface and OPC Common Definitions and Interfaces.

Source code can refer to the source code of Lightopc and GE, if not, you can send me email, as if the download is not available online

.

OPC Server Source Code Download http://download.gongkong.com/file/2004/9/21/opccode.zip

GE's program is very good, clear structure, but it is too old, so good to love young.

Lightopc's procedures are relatively too much, the sensory structure is not too good, a little chaos, or I have no deep way.

I haven't been exposed to Hash's Dongdong, but the data structure has been learned, quickly positioning. Now the memory is so big, realize a big one Hash

Table, it is ok, of course, a good Hash function is indispensable. This is considered during the development process. As for development, do you have to use MFC and ATL to see yourself, no need, you can use it. It feels not too big, if you don't have to learn, because two items are not so easy. But COM must understand.

There is no advantages and disadvantages of these three methods, and only your needs is. The more time you pay, the less Money, the more flexible, the more you learn, the more content, this is the social law. In the field of industrial control is the most suitable.

I am now opening my own OPC Server in the reading code, I hope to discuss with my colleagues.

转载请注明原文地址:https://www.9cbs.com/read-116622.html

New Post(0)