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

PCO Error - failed due to Unexpected error of the communication

former_member206397
Contributor
0 Likes
916

Hi All,

We are using OPC S7 200 PC Access which is installed in Windows XP system and PCo 2.3 is also installed in same system. We have configured the OPC as source in PCo and destination is MII 14.0. We also created notification Agent and Subscribe Item browse the tags from OPC. Query Port (9000) is also configured in PCo.

Now we are able to connect PCo with MII through PCoConnector. In MII workbench we have used PCo Query with Tag Store Query Mode to write tag value from MII. Currently we are testing with one tag only. We selected the tag (SControl1) and added in list and put some dummy value (1). When we are executing, getting an error like “failed due to Unexpected error of the communication..” We set the PCo in Verbose mode and captured the log. Could you please provide any suggestion.

22/01/2014|15:29:50|957|.|3|1492|TestMIIAgent|Verbose|OpcDaAgent|Resolve for Tag MWin/VirtualPLC/TestLN1/SControl1 [MWin.VirtualPLC.TestLN1.SControl1] failed due to Unexpected error of the communication..|""           

22/01/2014|15:29:46|550|.|3|1492|TestMIIAgent|Verbose|OpcDaAgent|Store Tag Query recieved for MWin/VirtualPLC/TestLN1/SControl1 item.|""        

22/01/2014|15:29:46|550|.|3|1492|TestMIIAgent|Information|AgentBase|Tag Query:  STORE 'MWin/VirtualPLC/TestLN1/SControl1' = '1' INCLUDE Quality = '2';|""       

22/01/2014|15:29:46|550|.|3|1492|TestMIIAgent|Information|AgentBase|Query:  <pco:tag xmlns:pco="uri:sap-pco-request"><![CDATA[STORE 'MWin&#x2f;VirtualPLC&#x2f;TestLN1&#x2f;SControl1' = '1' INCLUDE Quality = '2';]]></pco:tag>|""  

22/01/2014|15:29:46|550|.|3|1492|TestMIIAgent|Verbose|PCoQueryRequestHandler|Decoded request: <pco:request xmlns:pco="uri:sap-pco-request" pco:version="1.0">   <pco:tag><![CDATA[STORE 'MWin&#x2f;VirtualPLC&#x2f;TestLN1&#x2f;SControl1' = '1' INCLUDE Quality = '2';]]></pco:tag> </pco:request>|""        

22/01/2014|15:29:46|537|.|3|1492|TestMIIAgent|Verbose|PCoQueryRequestHandler|Raw request string: [MII   <?xml version="1.0" encoding="UTF-8" standalone="no"?><pco:request xmlns:pco="uri:sap-pco-request" pco:version="1.0"><pco:tag><![CDATA[STORE 'MWin&#x2f;VirtualPLC&#x2f;TestLN1&#x2f;SControl1' = '1' INCLUDE Quality = '2'|""    

22/01/2014|15:29:43|893|.|3|1492|TestMIIAgent|Verbose|AgentBase|IsConnected returned TRUE|"" .............................      

...............................................................

Thanks in Advance

Chandan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Chandran,

Can you read tags from the PCoQuery?  If so, this tag may either be read only or the OPC Server configuration is not allowing for tag writes.

Regards, Steve

former_member206397
Contributor
0 Likes

Hi Steve,

Thank you so much for your helpful reply. Finally I got the problem, it was between the OPC and PLC. Now I am able to read and update the tag from MII through PCoQuery.

But I am facing a new problem when I am trying to run the same query from BLS.

Suppose I have two tags, tag1 (data type Boolean) and tag2 (data type integer). In MII PCoQuery I have added those two tags in “Selected Tags” and passing value (Though there is a bug, we can’t directly write value in “Value” field, it takes only one character and then it goes on read only mode. But I copied the value from notepad and pasted it there). Then I executed the query and it was successfully and updated those value in PLC tag. Now I put [Param.1] and [Param.2] in value fields and used that PCoQuery in BLS. Form BLS I mapped some value for [Param.1] and [Param.2] (Like true for [Param.1] where it is Boolean and 100 for [Param.2] as it is integer). When I am executing the BLS it is giving me the error like – “Unable to convert supplied value to required type”.

Is there anything I am missing? Could you please provide any suggestion.

Thanks in Advance

Chandan

agentry_src
Active Contributor
0 Likes

Hi Chandan,

Since you are now on a new topic, please open a new Discussion with the new thread title.

Regards, Mike

SAP Rapid Innovation Group - RIG

former_member206397
Contributor
0 Likes

Hi Mike,

Yes, I am opening a new discussion now.

Thanks

Chandan

Answers (0)