Initialization sequence
Open the
FactoryTalk Linx
OPC
UA Connector properties to add or edit FactoryTalk Linx
OPC
UA Connectors or add, edit, or remove OPC UA Servers.After modifying the connector configuration and saving the changes, the OPC UA Connector service is initialized according to this event sequence:
- Thedialog box adds the newFactoryTalk LinxOPCUA ConnectorFactoryTalk LinxOPCUA Connector and/orOPCUA Servers to theFactoryTalk Directory. TheFactoryTalk Directorystores all configured settings on its host and replicates the settings to clientFactoryTalk Services Platforminstances.
- Thedialog box creates aFactoryTalk LinxOPCUA ConnectorFactoryTalkclient session and attempts to connect to theFactoryTalk LinxOPCUA Connector service on the workstation defined in.FactoryTalk LinxOPCUA Connector > Connector Settings > Computer hosting theFactoryTalk LinxOPCUA Connector
- If theFactoryTalk LinxOPCUA Connector service is not running on the target workstation, theFactoryTalk Services Platforminstance on the target workstation starts theFactoryTalk LinxOPCUA Connector service.Read the@DP_ServiceStartupTimestamppredefined diagnostic item to determine when theFactoryTalk LinxOPCUA Connector service was started.
- TheFactoryTalk LinxOPCUA Connector service reads the new configuration settings replicated from theFactoryTalk Directoryhost.
- FactoryTalk Services Platformnotifies theFactoryTalk LinxOPCUA Connector service a newFactoryTalkclient wants to open anOPCUA session.Read the@DAQ_ClientConnectionsQtypredefined diagnostic item to determine the number of activeFactoryTalkclient sessions.
- TheFactoryTalk LinxOPCUA Connector service determines if the requestedOPCUA Server connection exists.If the server connection exists, theFactoryTalk LinxOPCUA Connector service adds thedialog box to the existing connection.FactoryTalk LinxOPCUA ConnectorIf the server connection does not exist, theFactoryTalk LinxOPCUA Connector initializes a new server connection.Read the@DAQtoOPC_ContainersQtypredefined diagnostic item to determine the number of activeOPCUA server sessions.
- TheFactoryTalk LinxOPCUA Connector service loads its namespace cache file from disk, if available.Read the@OPC_NamespaceCacheIsPresentStatuspredefined diagnostic item to determine if theFactoryTalk LinxOPCUA Connector service has a namespace cache file for a specificOPCUA Server.
- TheFactoryTalk LinxOPCUA Connector service attempts to connect to theOPCUA Servers defined in.FactoryTalk LinxOPCUA Connector > OPC UA Servers > Endpoint URLIf a security policy was selected, theFactoryTalk LinxOPCUA Connector will provide its certificate to the remote OPC UA Server. The OPC UA server must accept the certificate, which may be a manual process, if it is the first time the certificate was received.Next, the OPC UA Server will send its certificate to theFactoryTalk LinxOPCUA Connector. In a default configuration,FactoryTalk LinxOPCUA Connector automatically accepts incoming certificates. If certificates are not accepted automatically, you must manually accept incoming certificates using theCertificate Managementtab of theFactoryTalk LinxOPCUA Connector.Certificate Managementtasks must be performed locally on the OPC UA Server.If authentication is configured, theFactoryTalk LinxOPCUA Connector will pass the username and password configured for the endpoint to the UA Server. After authentication succeeds, the connection is completed.Read the@OPC_CommConnectedStatuspredefined diagnostic item to determine the success or failure of a connection to anOPCUA Server.
- TheFactoryTalk LinxOPCUA Connector service compares namespace indexes from its cache file against the namespace indexes provided by theOPCUA Server.If the namespace indexes do not match or the cache file does not exist, theFactoryTalk LinxOPCUA Connector uploads the namespace from theOPCUA Server.Read the@OPC_NamespaceCacheUploadCompleteStatuspredefined diagnostic counter to determine when the namespace upload is complete.
- When the connection to theOPCUA Server is established and the namespace is either confirmed or a namespace upload is complete, theFactoryTalk LinxOPCUA Connector service provides diagnostic nodes for theOPCUA Server.OpenandFactoryTalk LinxOPCUA Connector > OPC UA Serversto view real-time diagnostic values.FactoryTalk LinxOPCUA Connector > Real-Time Diagnostics
- TheFactoryTalk LinxOPCUA Connector then uploads currentDataTypeinformation below the Server’sRoot/Types/DataTypesNode and merges custom type and subtype information with OPC-definedDataTypes.
- The initialization sequence is complete. AsFactoryTalkclients request tag values, theFactoryTalk LinxOPCUA Connector subscribes to and reads node values from theOPCUA Server, providing them back to theFactoryTalkclients as tags.TheOPCUA Server monitors item values at the specified update rate and pushes update notifications to theOPCUA Connector as the value or the quality changes. TheFactoryTalk LinxOPCUA Connector stores the last value and quality that it receives. If neither has changed, there is no traffic on the network other than heartbeat notifications. If a Live Data client issues a direct read request that theFactoryTalk LinxOPCUA Connector does not query theOPCUA Server, instead, it returns the cached value and quality. This ensures that direct reads are kept in sync with pushed update notifications from theOPCUA Server.
Provide Feedback