This article covers loggers related to OPC-UA that were introduced in Ignition version 7.9.X.
Loggers in this article:
-
com.inductiveautomation.ignition.gateway.opcua.client.ClientManager
-
com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaConnection
-
com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaSubscriptionModel
-
com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaSubscriptionSynchronizer
com.inductiveautomation.ignition.gateway.opcua.client.ClientManager
- Monitors all active OPC-UA client connections on the server. This logger and inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaConnection replaces 7.8’s org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler
- DEBUG log monitoring the process of initializing an OPC-UA client, connecting successfully and later disconnecting due to disabling the connection:
initializing Ignition OPC-UA Server connection-name=Ignition OPC-UA Server
security=None userTokenTypes=[UserName] connection-name=Ignition OPC-UA Server
endpoints[1]: security=Basic128Rsa15 userTokenTypes=[UserName] connection-name=Ignition OPC-UA Server
Using endpoint 'opc.tcp://localhost:4096/iaopcua/Basic128Rsa15' security=Basic128Rsa15, userTokenTypes=[UserName]
connection-name=Ignition OPC-UA Server
…
SessionInitializer: DataTypeTree connection-name=Ignition OPC-UA Server
OperationLimits connection-name=Ignition OPC-UA Server
…
uninitializing Ignition OPC-UA Server connection-name=Ignition OPC-UA Server
- DEBUG log monitoring the process of initializing an OPC-UA client, connecting successfully and later disconnecting due to disabling the connection:
com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaConnection
- Provides additional information about connected and disconnected OPC-UA client connections. This logger and inductiveautomation.ignition.gateway.opcua.client.ClientManager replaces 7.8’s org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler
- DEBUG log showing the output of a successfully connected OPC-UA client and then disabled:
Received keep-alive, subscriptionId=13, publishTime=Wed Sep 22 14:59:25 PDT 2021 connection-name=Ignition OPC-UA Server
Received keep-alive, subscriptionId=14, publishTime=Wed Sep 22 14:59:25 PDT 2021 connection-name=Ignition OPC-UA Server
...
onSessionInactive(): id=NodeId{ns=1, id=13} name=ignition[Ignition-SU-2C8RZ12-WS]_Ignition OPC-UA Server_1632347964802
connection-name=Ignition OPC-UA Server
Publish failure: client disconnect connection-name=Ignition OPC-UA Server
Publish failure: connection closed connection-name=Ignition OPC-UA Server
- DEBUG log showing the output of a successfully connected OPC-UA client and then disabled:
com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaSubscriptionModel
- Monitors the creation/deletion of all Tag subscriptions being set for specific OPC-UA servers when the OPC-UA server is started/disconnected. All enabled Tags pointing to existing OPC-UA server connections will be processed and shown here. Both this logger and inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaSubscriptionSynchronizer replaced 7.8’s xopc2.client.OpcUaConnection$UaSubscriptionChangeListener.
- DEBUG log showing the execution of tag subscriptions being created for a specific Tag Group/Scan Class and a specific OPC-UA server when the OPC-UA connection is enabled. The Tag subscriptions are then given a different quality as the OPC-UA server is disabled:
subscriptionName=Scanclass 'Default[default]', oldRate=1000, newRate=1000, nodesToAdd.size()=223, nodesToRemove.size()=0
connection-name=Ignition OPC-UA Server
…
SubscriptionChangeEvent added 223 nodes to subscription 'Scanclass 'Default[default]'' connection-name=Ignition OPC-UA Server
…
debouncer: message sent connection-name=Ignition OPC-UA Server
handleSynchronize() connection-name=Ignition OPC-UA Server
synchronized=false; next re-synchronization in 32 seconds connection-name=Ignition OPC-UA Server
handleStoreLastKnownQualities() connection-name=Ignition OPC-UA Server
setting quality Uncertain_LastUsableValue on [Siemens S7_1200]IX0.6 connection-name=Ignition OPC-UA Server
setting quality Uncertain_LastUsableValue on [Siemens S7_1200]IX5.7 connection-name=Ignition OPC-UA Server
setting quality Uncertain_LastUsableValue on [Siemens S7_1200]IC3 connection-name=Ignition OPC-UA Server
setting quality Uncertain_LastUsableValue on [Siemens S7_1200]IX7.1 connection-name=Ignition OPC-UA Server
...
- DEBUG log showing the execution of tag subscriptions being created for a specific Tag Group/Scan Class and a specific OPC-UA server when the OPC-UA connection is enabled. The Tag subscriptions are then given a different quality as the OPC-UA server is disabled:
-
- TRACE log that provides more detail about the execution of Tag subscriptions being created for a specific Tag Group/Scan Class and a specific OPC-UA server when the OPC-UA connection is enabled:
Adding '[Siemens S7_1200]IX0.6' to subscription 'Scanclass 'Default[default]'' connection-name=Ignition OPC-UA Server
Adding '[Siemens S7_1200]IX5.7' to subscription 'Scanclass 'Default[default]'' connection-name=Ignition OPC-UA Server
Adding '[Siemens S7_1200]IC3' to subscription 'Scanclass 'Default[default]'' connection-name=Ignition OPC-UA Server
…
Adding 'ns=1;s=[CompactLogix]M1.HOA' to subscription 'Scanclass '5sec[default]'' connection-name=Ignition OPC-UA Server
Adding 'ns=1;s=[CompactLogix]M1.AMPS' to subscription 'Scanclass '5sec[default]'' connection-name=Ignition OPC-UA Server
- TRACE log that provides more detail about the execution of Tag subscriptions being created for a specific Tag Group/Scan Class and a specific OPC-UA server when the OPC-UA connection is enabled:
com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaSubscriptionSynchronizer
- Provides additional monitoring of the creation/deletion of all Tag subscriptions being set for specific OPC-UA servers except this shows a periodic update of synchronization between the OPC-UA client and the OPC-UA server. This is best utilized for isolating tags that are not in good quality. All enabled tags pointing to existing OPC-UA server connections will be processed and shown here. Both this logger and inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaSubscriptionModel replaced 7.8’s xopc2.client.OpcUaConnection$UaSubscriptionChangeListener
- DEBUG log showing a single periodic update of all tags that are attempting to connect:
Creating subscription 'Scanclass 'Default[default]'' @ 1000ms... connection-name=Ignition OPC-UA Server
Creating subscription 'Scanclass '5sec[default]'' @ 5000ms... connection-name=Ignition OPC-UA Server
synchronizeSubscriptions() took 2ms connection-name=Ignition OPC-UA Server
subscription=Scanclass 'Default[default]' calculating itemsToCreate and itemsToDelete took 2ms connection-name=Ignition OPC-UA Server
subscription=Scanclass 'Default[default]' itemsToCreate.size()=223 connection-name=Ignition OPC-UA Server
…
subscription=Scanclass 'Default[default]' itemsToDelete.size()=0 connection-name=Ignition OPC-UA Server
Creating 223 items on subscription 'Scanclass 'Default[default]''... connection-name=Ignition OPC-UA Server
…
subscription=Scanclass '5sec[default]' calculating itemsToCreate and itemsToDelete took 0ms connection-name=Ignition OPC-UA Server
subscription=Scanclass '5sec[default]' itemsToCreate.size()=2 connection-name=Ignition OPC-UA Server
…
subscription=Scanclass '5sec[default]' itemsToDelete.size()=0 connection-name=Ignition OPC-UA Server
Creating 2 items on subscription 'Scanclass '5sec[default]''... connection-name=Ignition OPC-UA Server
synchronizeMonitoredItems() took 10ms connection-name=Ignition OPC-UA Server
synchronizeRates() took 0ms connection-name=Ignition OPC-UA Server
- DEBUG log showing a single periodic update of all tags that are attempting to connect:
-
- TRACE log providing an output of all Tag subscriptions that are attempting to connect. If any Tags fail to connect, a response will be thrown for each Tag that does not have good quality. Otherwise, no result log will be thrown for that Tag:
creating item=[Siemens S7_1200]IX0.6 on subscription=Scanclass 'Default[default]' connection-name=Ignition OPC-UA Server
creating item=[Siemens S7_1200]IX5.7 on subscription=Scanclass 'Default[default]' connection-name=Ignition OPC-UA Server
creating item=[Siemens S7_1200]IC3 on subscription=Scanclass 'Default[default]' connection-name=Ignition OPC-UA Server
…
Failed to create item 'NodeId{ns=1, id=[Siemens S7_1200]IX0.6}': StatusCode{name=Bad_NodeIdUnknown, value=0x80340000, quality=bad}
connection-name=Ignition OPC-UA Server
Failed to create item 'NodeId{ns=1, id=[Siemens S7_1200]IX5.7}': StatusCode{name=Bad_NodeIdUnknown, value=0x80340000, quality=bad}
connection-name=Ignition OPC-UA Server
Failed to create item 'NodeId{ns=1, id=[Siemens S7_1200]IC3}': StatusCode{name=Bad_NodeIdUnknown, value=0x80340000, quality=bad}
connection-name=Ignition OPC-UA Server
- TRACE log providing an output of all Tag subscriptions that are attempting to connect. If any Tags fail to connect, a response will be thrown for each Tag that does not have good quality. Otherwise, no result log will be thrown for that Tag:
opcua.client.OpcUaConnection.DataValueConsumer
- Monitors all value changes occurring on existing Tag subscriptions in the OPC UA server. Replaced 7.8’s client.OpcUaConnection$DataValueConsumer and Driver Variable Node.
- TRACE log showing an example of a Tag subscription that recently received a value change. For this version, a qualified value is provided:
nodeId=NodeId{ns=1, id=[PLC5]C5:0.ACC}, clientHandle=3, value=7293, qualifiedValue=
[7293, [Good] Good; unspecified., Wed Sep 22 21:55:58 PDT 2021] connection-name=Ignition OPC-UA Server, node-id=ns=1;s=[PLC5]C5:0.ACC
- TRACE log showing an example of a Tag subscription that recently received a value change. For this version, a qualified value is provided:
Comments
0 comments
Article is closed for comments.