Home > Software engineering >  The OPC client based on Visual Studio 2010 (C)
The OPC client based on Visual Studio 2010 (C)

Time:10-10

Now I want to use Visual Studio 2010 an OPC client software platform design, using c + + language, is one of the biggest problems is don't know how to begin to connect the OPC server, not tried to connect to the OPC server written by VC program, don't know in the Visual Studio platform in c + + language how to do, for example, began to reference or import header files, etc., can you give me the steps, to write something, the method of general train of thought,
Has examined the data that different VC and VB, VB use automation interface (I use VB compiled OPC client, VC), VC with custom interface, this custom interface where, what to do; Have said to find 4 header files, etc., are not very understand,
The best hope for a general design framework, need what, what to do, thank you very much!!!!!!

CodePudding user response:

The SOCKET?
#include
# pragma comment (lib, "WS2_32. Lib")
1. WSAStartup () to initialize the socket
2. The socket () to create a socket socket
3. The connect () connect to the server
4. Closesocket close socket socket
5. Release sockets WSACleanup resources,

CodePudding user response:

http://download.csdn.net/detail/niceeagle/1100102

CodePudding user response:

You on the Internet to find a KEPServerEx5 applications, installed inside a OPC client source code, can be directly compiled

CodePudding user response:

Not SOCKEY,

CodePudding user response:

Kepsever inside is VB, VC and VB they support the function of OPC, design, VB program can't be translated,

CodePudding user response:

VC, VB has

CodePudding user response:

OPC is a kind of international standard, VC, VB, whatever the language usage is the same, is the COM interface

CodePudding user response:

Did you get now?

CodePudding user response:

What documents went to bad

CodePudding user response:

What is the PLC, Siemens or happy times?

CodePudding user response:

reference 4 floor berealself response:
not SOCKEY,


Is called: SOCKET

Other written application of OPC server connection, do not understand, help you top up,,,

CodePudding user response:


No other written application of OPC server connection, do not understand, help you top up,,, pay close attention to

CodePudding user response:

Top, I also want to do the same thing, is check information, it turned out to have a c # to do, want to switch to c + +

CodePudding user response:

PLC communication can do?

CodePudding user response:

This I, VC and Simon PLC communication, on-site verification
  • Related