Arduino UNO / OPC Communications

I'm trying to interface my UNO with a Wonderware application. I installed the OPC server and it connects to the UNO. I added one item for testing, but can't see it. My OPC tag browser comes up empty.

in my setup:

aOPCEthernet.addItem("random",opc_read, opc_int, callback);

in my loop:

aOPCEthernet.processOPCCommands();

I can go to http://myUnoIP/itemsmap and see the:
{"ItemsMap":[{"ItemId":"random","AccessRight":"0","ItemType":"2"}]} but nothing in the OPC browsers.

The .INI file does not show it, though:
[myArduinoUno]
ArduinoModel=Ethernet
Server=192.168.2.229
Port=82
ItemsMap=

What is "Wonderware"?

What is "OPC"?

...R

And if I go to http://192.168.2.229/random I can see the actual data, so the Arduino is serving it up, but the OPC Server is not getting the individual items for some reason.

Robin2:
What is "Wonderware"?

What is "OPC"?

...R

http://lmgtfy.com/?q=what+is+wonderware+opc

phuz:
And if I go to http://192.168.2.229/random I can see the actual data, so the Arduino is serving it up, but the OPC Server is not getting the individual items for some reason.

http://lmgtfy.com/?q=what+is+wonderware+opc

You are the one that needs to do the googling, and post relevant links. Do NOT expect us to do that to help you with your project, without compensation.

PaulS:
You are the one that needs to do the googling, and post relevant links. Do NOT expect us to do that to help you with your project, without compensation.

No offense, but a user with 43k posts asks "What is" twice in the same reply...obviously has no idea what either are, and therefore is of no help.

Believe me, I've done my googling, which is why I defer to the forum.

But I digress. I found the issue, and hopefully this will help someone else who stumbles on the same issue. Make sure the OPC server and the OPC library are the same version. Turns out I had v2.0 of the server (from st4makers) but 1.7 of the library. Only 1.7 is available through the IDE. I removed that and found a copy of the 2.0 library and once I started using that, the OPC items showed up. There must be a change significant enough in the library versions that prevented it from working.

obviously has no idea what either are, and therefore is of no help.

At least Robin2 cared enough to ask for more information. My thought, when I read your initial post, was less kind.

phuz:
http://lmgtfy.com/?q=what+is+wonderware+opc

You must be joking.

You really want me to go Google some stuff so I can help you with your problem?

...R

Robin2:
You must be joking.

You really want me to go Google some stuff so I can help you with your problem?

...R

I see you missed the entirety of that reply. That's OK. :slight_smile:

phuz:
I see you missed the entirety of that reply. That's OK. :slight_smile:

And it's OK with me if you don't really need any help.

I can use my time to help someone else.

...R

Asked, answered, resolved.

phuz:
Asked, answered, resolved.

How about posting the solution for the benefit of other OPC users?

...R

Robin2:
How about posting the solution for the benefit of other OPC users?

...R

He, or she, did, in reply #4.

PaulS:
He, or she, did, in reply #4.

(He)

...And you beat me to it. :slight_smile:

phuz:
(He)

...And you beat me to it. :slight_smile:

Humble apologies. I missed that.

...R

Robin2:
Humble apologies. I missed that.

...R

None needed.