OPC Xml/DA Client implements communication with local and remote OPC servers. The communications blocks are dynamically created according to the pooling cycle defined on the Access Type for each Device Point.

Summary Information

Communication Driver Name: OPC XML/DA Client

Implementation DLL: T.ProtocolDriver.OPCXmlDA.dll

Protocol: OPC proprietary

Interface: OPC proprietary

OPC servers supported: Any OPC server compatible with OPC Xml/DA v2.05 or v3.0 specifications

Protocol Options: None

Max number of nodes: User defined

PC Hardware requirements: None

PC Software requirements: OPC Core components


You can find the OPC Core components in the OPC Foundation website.



Channel Configuration

There is no channel configuration for OPC Xml/DA Client channels.



Node Configuration

Station Configuration

Service URL: Defines the location of the OPC Server. Example: OPCDAServer.2, \\192.168.1.201\ OPCDAServer.2, http://192.168.1.2:4200

Refresh Rate: Server update rate

AllItemsSameGroup: A Flag indicating if the driver should add all items at the same OPC group. Only one connection is created with OPC Server

EnableReadPolling: A Flag indicating if reading is by polling

ReadFromDevice: Forces all reads made from a device

UseTimestampFromComputer: Uses timestamp from a computer instead of a device



Point Configuration

Choose the OPCServer item that will communicate with the tag.

You can type the OPC Server item's name into the textbox, or you can use the cell editor to browse the OPC Server items.

OPC Arrays: You should configure the Array field in the Modifiers column.



Troubleshoot

The status of the driver's execution can be observed through the diagnostic tools, which are:

• Trace window
• Property Watch
• Module Information

The above tools indicate if the operations have succeeded or have failed. A status of 0 (zero) means communication is successful. Negative values indicate internal driver errors, and positive values indicate protocol error codes.

Consult your OPC Server documentation for the specific protocol error codes.



Append – How to Configure DCOM

What is DCOM

Distributed Component Object Model (DCOM) is an extension of Component Object Model (COM) that allows COM components to communicate among objects on different computers. DCOM uses Remote Procedure Call (RPC) to generate standard packets that can be shared across a network, which in turn allows COM to communicate beyond the boundaries of the local machine.

Because DCOM poses a security threat, care should be taken to not expose more than what is required for the application. Although multiple security layers exist, it is still possible that some part of the system will be compromised.

Users and Groups

To ensure that an OPC connection is secure, it is suggested to create users and groups that are exclusively for this use. These can be manually added by any user who has the proper credentials to do so.

The procedure described below must be executed on both the Client and Server. The User that is created in both computers must have the same name and password.

Adding a Local User





Adding a Local Group



Adding Users to a Group 



DCOM Configuration

The computer running the OPC server must make changes to the application and system levels to correctly setup DCOM.

Configuring the Application











To only allow local applications to connect, only enable the local permissions for the account. In this example, local and remote permissions are enabled.



Configuring the System









Restart the computer to apply the changes.

Firewall Configuration

In some cases, it is easier to turn off any firewalls that may be running on both the client and server machine before DCOM is setup. Once a connection has been successfully created, it is recommended that the firewall security is restored and the correct exceptions are added.




The steps below must be executed on both the Client and Server.



TCP Port 135 is commonly used for allowing clients to discover and utilize a DCOM service.