One: Need to have a certain understanding of COM knowledge. Class, COM components (internal, processes, remote), interface (custom, automation), method
2: Need to understand the OPC specification, especially to understand the interfaces and interface methods of OPC Server and Group objects (AddGroup, AddItem, etc.).
Three: Need to have certain programming capabilities. If you have a client program, you can choose VB, Delphi, VBA, etc. (Automation interface). You can also choose C, VC and other languages (custom interface). If you write a server program, the best and fastest method is considered ATL ..
5: Data must be seen: OPC specification.
Six: It is recommended to see << COM principle and application >> Book.
Seven: DCOM.
8: Refer to the sample program can apply OPC faster.
I am writing an OPC Server development document in my spare time, as follows:
Five parts
Part 1: OPC Specification Overview
This section includes: OPC's technical nature, OPCDA204 specification, OPC object interface definition, OPC synchronous asynchronous communication.
Part II: Introduction to ATL
This section includes: ATL introduction, use ATL development component applications, test component applications.
Part III: ATL Development OPC Server
This section includes: OPC server design idea, OPC server interface implementation
Part IV: OPC customer program development
This section includes: based on the OPC client development based on Visual C 6.0; development of OPC client based on Visual Basic.
Part 5: Remote Access to OPC Server
This section includes; introducing DCOM technology; remote access of the OPC server.