hylasoft-usa / h-opc

OPC client made simpler, for UA and DA
MIT License
300 stars 144 forks source link

Get information from kepserverEx #3

Closed pmout closed 9 years ago

pmout commented 9 years ago

I use command _client.FindNode("Channel1.Device1.DB91,W0[78]") to get information from kepclient to get word array of a PLC "connected" in kepserverEx.

It is possible to get same information from kepserverEx in h-opc?

itajaja commented 9 years ago

You said that your receive this error correct?

The tag "DB91,W0[78]" doesn't exist on folder "Channel1.Device1"

can you try to do the following:

var nodes = client.FindNode("Channel1.Device1").SubNodes;

and then put a breakpoint and debug that line. The nodes variable should hold all the nodes under the "Channel1.Device1" folder

pmout commented 9 years ago

I get

[image: Inline image 1]

Pedro Moutinho.

On Wed, Feb 4, 2015 at 4:43 PM, Giacomo Tagliabue notifications@github.com wrote:

You said that your receive this error correct?

The tag "DB91,W0[78]" doesn't exist on folder "Channel1.Device1"

can you try to do the following:

var nodes = client.FindNode("Channel1.Device1").SubNodes;

and then put a breakpoint and debug that line. The nodes variable should hold all the nodes under the "Channel1.Device1" folder

— Reply to this email directly or view it on GitHub https://github.com/hylasoft-usa/h-opc/issues/3#issuecomment-72889623.

itajaja commented 9 years ago

I don't see your image. Please attach the image through the github website and not through your email client :)

pmout commented 9 years ago

Sorry

node

itajaja commented 9 years ago

Well, it doesn't find that specific node you are looking for. Can you give me more information about that? Maybe the type of the node is not supported. If you could give me the details about the node taken from Kepex, that might help.

pmout commented 9 years ago

That values are the same I get in Kepware.KEPServerEX.V5. It helps?

kepclient

pmout commented 9 years ago

If I add a new group and in that group I add channel1.device1.DB91,W0[78] e get the correct information from PLC group

itajaja commented 9 years ago

I'll try to install Kepex and see if I can debug it. Maybe the Word Array type is not supported yet by h-opc

pmout commented 9 years ago

Hi, In EasyOpc.UA from OpcLabs I can get values using: easyUAClient1.Read("opc.tcp://10.199.226.11:49320/", "nsu=KEPServerEX;s=channel4.device1.DB91,W0[78]");

It helps?

itajaja commented 9 years ago

I tried to read arrays from my server and it gives no problems. Can you tried to download this client and run the gneric client? then can you take a screenshot of the nodes shown from there? Thanks!

pmout commented 9 years ago

I get exactly the same info that in your app. opc

The problem is where can I put node info "nsu=KEPServerEX;s=channel4.device1.DB91,W0[78]" to get node value?

itajaja commented 9 years ago

If you don't see it even with that client, they are probably not set up to be visible from an OPC UA client, but only from DA. Also I don't understand if you are talking about Channel1 or Channel4...

pmout commented 9 years ago

As I said before I can read with other software. I'm reading for several channels. But in kapserver channels an devices are not the most important. The main thing is the s parameter. This is the value that kep send to Siemens plc to retrieve the value it value. Em 06/02/2015 10:02, "Giacomo Tagliabue" notifications@github.com escreveu:

If you don't see it even with that client, they are probably not set up to be visible from an OPC UA client, but only from DA. Also I don't understand if you are talking about Channel1 or Channel4...

— Reply to this email directly or view it on GitHub https://github.com/hylasoft-usa/h-opc/issues/3#issuecomment-73213729.

itajaja commented 9 years ago

I am sorry I don't know how to help you, if also the OPC Foundation sample client can't find that value. This project is based on the OPC Foundation llibrary, so I don't know if I will ever be able to read that value, if also the OPC Foundation sample client can't find it, especially if I don't have direct access to your environment it gets difficult. Sorry :(