Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCP/IP Communication

Status
Not open for further replies.

Rwwt

Programmer
Dec 12, 2002
1
US
Have almost no clue what I am talking about so I will be as clear about my idea as possible.

I want to control a power supply remotely from my computer via TCP/IP. How do I use C++ for the communication to the power supply? The power supply already has an OPC Server program written if this matters at all. I will start with that and maybe someone can help.
 
Step 1.
Read Beej to get to grips with the low level aspects of actually connecting to a network, sending and receiving packets. This should take you a few weeks at most.

Step 2.
Find the specs for OPC (what ports it uses, what the data packets contain, what information it expects) and write your code to do that.

If you have an existing OPC application, this tool is excellent for seeing what is going on at the network level.

--
 
Rwwt,
If the power supply already has an OPC server for it all you should need would be an OPC client application to communicate with the power supply. Iconics offers a free OPC client app called OPC DataSpy. With the OPC DataSpy you should be able to connnect to the power supply's OPC server app and control the supply. Here is a link to the OPC DataSpy
Hope this helps



If you choose to battle wits with the witless be prepared to lose.

[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top