cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MII 11.5 and PCo 2.1 and Tag Query Error

Former Member
0 Likes
376

Hi,

I have KEPWare OPC server configured with a single tag, and with the OPC Client open. I have PCo 2.1 configured with a single agent, and 'legacy' ticked with port 9001. I have a UDS connector pointing to port 9001, and a tag query in 'currentwrite' mode, and can successfully write a value from the query editor (within MII 11.5) to KEPWare, when tested directly within the MII query editor.

However, when I call the same tag query from within an MII transaction, and set 'TagName.1' and 'TagValue.1' to the values I want, I get the following error:

"An item with the same key has already been added. at SAP.Manufacturing.Connectivity.Protocol.Custom.PCoQueryRequestHandler.ProcessRequest(Object handler)"

I see this error in the PCo log.

Interesting thing is, that within the transaction editor, when I select the underlying tag query, and the editor asks to generate the XML, and I say Yes, the underlying tag query runs fine (I can see the value getting updated within KEPWare).

I've also tried with/without subscription items in PCo, plus different settings for 'Cache Mode' in PCo, plus using fully qualified tag name (ie: channel.device.tag as KEPWare sees it), etc, but in all cases I get the above error.

Any ideas?

View Entire Topic
jcgood25
Active Contributor
0 Likes

What about a tag alias file to eliminate any odd characters in the name?

Former Member
0 Likes

Haven't tried an alias file .... I wouldn't consider "SimAnalog" to be a strange name !

Also, it works when I run the query directly, just not when I call that same query from a transaction (which only has 1 action!).

Former Member
0 Likes

Same error when using Alias file.

agentry_src
Active Contributor
0 Likes

Let me make sure I understand this. You have UDS set up to the data source with Port 9001. You also have PCo set up with an agent that also connects to that data source in legacy mode, but also using Port 9001.

Can you try it with changing the UDS Port to 9002?

Regards,

Mike