Ni opc server 2017
10:12:17,254 INFO PollOpcUaData #OpcUa# END read for nodeIdentifiers 10:12:16,423 INFO PollOpcUaData #OpcUa# START read for nodeIdentifiers 10:12:12,138 INFO .client.UaClient: reconnect: Reconnected to server (session reactivated)Īnd reading the nodes every 5 secs start working again (for a few minutes) 10:12:12,136 DEBUG .: SecurityMode in use: None 10:12:12,134 DEBUG .: SecurityMode in asymm enc: 1 10:12:12,134 DEBUG .utils.CryptoUtil: createNonce: bytes=0 common.ServiceResultException: Bad_SecureChannelClosed (code=0x80860000, description=”The secure channel has been closed.”)Īt .SecureChannelTcp.close(Unknown Source)Īt .(Unknown Source)Īt .(Unknown Source)Īt .(Unknown Source)Īt .client.UaClient$a.run(Unknown Source) 10:11:51,329 INFO PollOpcUaData #OpcUa# START read for nodeIdentifiers 10:11:47,107 INFO PollOpcUaData #OpcUa# END read for nodeIdentifiers 10:11:46,325 INFO PollOpcUaData #OpcUa# START read for nodeIdentifiers So reading the nodes every 5 seconds works for some time In general it works, but every 30 seconds up to 3 minutes we get a bad response with ‘.common.ServiceResultException: Bad_SecureChannelClosed (code=0x80860000, description=”The secure channel has been closed.”)’ while reading the values of the nodes.
_tSessionName(“myServiceName Session” + ++_sessionCount) UaClient _client = new UaClient(_serverUri) ĪpplicationDescription appDescription = new ApplicationDescription() ĪtApplicationName(new LocalizedText(“myServiceName”, Locale.ENGLISH)) ĪtApplicationUri(“urn:localhost:m圜ompany:myServiceName”) ĪtProductUri(“urn::service:myServiceName”) ĪtApplicationType(ApplicationType.Client) We use following procdure to connect to the UA Server: Public ReadResponse read(Double paramDouble, TimestampsToReturn paramTimestampsToReturn, ReadValueId paramArrayOfReadValueId) throws ServiceException
For reading the nodes we use following method from the UaClient: 06:44:28,499 INFO de.: ServerStatus: ServerStatusDataType: ServerStatusDataTypeĬurrentTime=09/01/17 04:49:36.1880000 GMTīasically, every 5 seconds we read items from this OPC UA server. 06:44:28,390 DEBUG .client.AddressSpace: NodeClass: null 06:44:28,390 DEBUG .client.AddressSpace: classValues: 06:44:27,928 DEBUG .client.AddressSpace: getNode: nodeId=i=45 node=NodeId=i=45, NodeClass=ReferenceType, BrowseName=HasSubtype, IsAbstract=false, Symmetric=false, InverseName=(en_us) HasSupertype Here the detailed version information of the used OPC UA Server: We have some problems to get a stable connection to a Siemens Sinumerik 840 v4.4 (we connect with the Prosys version 2-3-0_764).