cancel
Showing results for 
Search instead for 
Did you mean: 

PCo 2.1.5.1 with OPC DA

former_member1170711
Participant
0 Kudos

Hello,

In our 12.1 MII environment, we are trying to configure PCo to do some data collection that we already have working in MII 11.5.

I am having trouble getting PCo to talk to the OPC server. The OPC server is Phoenix Contact AX OPC-Server Version 2.4 and it is installed on the same machine as PCo. (Windows 2008 R2 Standard 64-bit with 48 GB RAM)

The server sees the control and the controller's test client can see the tags.

In PCo I have created a "Source System" and configured it for the OPC server. On the Server tab the "Machine" is set to "localhost". After clicking on the refresh button I see the expected OPC server as an option. It appears to be highlighted in light gray (not sure if that is normal or not). When I select it, it is highlighted in blue. At this point I would expect the Save option to be available for the Source system but it is not. If I go to the Settings tab and change something (like changing Deadband from 0.0 to just 0) and then switch back to the Server tab then the Save icon for the Source system is available. I then click the save icon.

At this point if I click on a differnt Source system and then back on my OPC Source system I would expect to the see the OPC server setting that I just saved to still be there. It is not there. To get it to re-appear I have to use the Refresh button again. Is this normal or is this a sign that there is a problem?

I then tried to push forward (hoping the setting was saved) and I created a Agent Instance using the OPC Source system. When I try to start the Agent I get these errors in the log:

Manufacturing Fault: REASON = Unable to set LocaleID in OPC Server

; SEVERITY = Fatal

failed to create ConnectivityAgentProxy Unable to set LocaleID in OPC Server

Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at SAP.Manufacturing.Connectivity.IPCoAgentControl.Start()

at SAP.Manufacturing.Connectivity.ConnectivityAgentProxy.Start()

at SAP.Manufacturing.Connectivity.WcfHost.Start()

WCF service is started.

Start ignored. Agent state = Faulted

Being new to PCo, I am not sure how to troubleshoot this. I think I have all of the OPC settings that same as the ones that are working in my 11.5 environment. Any advice would be appreciated.

Thank you,

Mike

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1170711
Participant
0 Kudos

Hi Experts,

I am still struggling with this one. If I use Matrikon's Explorer I can connect to the OPC sever fine and see the tags and values. I cannot connect PCo to the same OPC server. As stated in previous post, I get this error when I try to start the Agent:

ServiceFaultManager Manufacturing Fault: REASON = Unable to set LocaleID in OPC Server

; SEVERITY = Fatal

05/10/2011 12:12:04 217 Error . 6 3672 PhoenixContactAgent Host failed to create ConnectivityAgentProxy Unable to set LocaleID in OPC Server

Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at SAP.Manufacturing.Connectivity.IPCoAgentControl.Start()

at SAP.Manufacturing.Connectivity.ConnectivityAgentProxy.Start()

at SAP.Manufacturing.Connectivity.WcfHost.Start()

If anyone has some ideas I would appreciate some advice.

Thank you,

Mike

former_member1170711
Participant
0 Kudos

FYI, I eventually got this working. Our Basis team uninstalled PCo, re-installed and applied the latest SP (which came out since our original installation) and then things started to work.

-Mike

Former Member
0 Kudos

I am facing same issue with Pco 2.3 service pack 2.. don kow what to do.. can anybody help?