> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-opc-ua-server/connect-clients.md).

# Connect InTouch, System Platform or another OPC UA client

Connect Wonderware InTouch through OI Gateway, System Platform through its OPC UA Client service, or an OPC DA-only program through a gateway.

The Datran OPC UA Server is used as an interface for 3rd party applications using OPC UA clients to communicate with Datran.

{% hint style="info" %}
**Applies to:** DATRAN OPC UA Server V1.4 and V1.5. See [Install and configure the OPC UA Server](https://help.qtech.co.nz/datran/datran-vi-scada/datran-opc-ua-server/install.md).
{% endhint %}

## Before you start

* Install UA Expert. Test the connection through to Datran.
* If UAExpert is running on the same machine as OPCUA server then the server endpoint can be defined as localhost (not a full URL). Otherwise you can use the computername e.g. `opc.tcp://<computer name>:48030`.
* Note the Item names are the fully qualified Datran path with spaces replaced by underscores. Note that it is case sensitive. See [Node changes and node names](https://help.qtech.co.nz/datran/datran-vi-scada/datran-opc-ua-server/node-changes.md#spaces-in-node-names).

## Wonderware InTouch, through OI Gateway

The procedures for configuring Intouch with FSGateway are now superseded. These are the updated procedures.

1. Install Wonderware OI-CoreG12 files; install OI-Gateway.
2. Configure System Management Console: add in an Operations Integration Server (OI Server).
3. Add an **OPCUA** connection, call it `Datran`.
4. Add in the OPCUA Server details to connect to the Datran OPC UA server.
5. Add an **OPCUAGroup**, call it `Data`.
6. In InTouch, create an **Access Name**, call it `OPC`. Note Topic name is the same as Device Group Name (above).
7. Set your tags to use the Access Name & the Item must follow the full path as shown. Note that it is case sensitive.

## System Platform (ArchestrA)

Archestra System Platform has an OPC-UA Client service that will connect directly or it can use the Wonderware Gateway OI Server. Prerequisites are to download and install the Archestra OPC UA Client Service; since August 2015 this is not distributed with the standard installation. InTouch 2014 R2 should also be installed. Note that the UaGateway is not required. Follow the installation procedure outlined in "Wonderware Archestra OPC UA Client Service Guide".

1. Create an object in ArchestrA and select the I/O.
2. From the Tag Browser be sure to select the correct namespace (test2 in this example).

## Software that only supports OPC DA

To enable applications which do not support OPC-UA but do support the older standard of OPC-DA, a wrapper or gateway is required to convert the protocols. There are a number of these available. The DATRAN VI OPC-UA Server was built using a toolkit from Unified Automation so we are using their gateway as an example:

1. Follow the standard installation procedure as documented with the download. Accept all defaults. You will be asked to create a New Application Instance Certificate.
2. Run the UaGateway administration tool. Specify the user that the UaGateway will logon/run as. It must have suitable permissions to start/stop services.
3. Click on the **Channels** tab, select the type of server you are connecting to, in our case this is just the UA Channel. Click on **Close**. If you are asked to apply changes, select **Yes**.
4. Right click on the UaGateway icon in the task bar and select **Configure UaGateway**. When it has started up, right click in the tool bar of the ConfigurationTool and select **Devices Address Space**.
5. You will now see on the left hand side Device Set OPC UA Servers. Click on **OPC UA Servers**. In the right hand side click on the **Add Server…** button. Double click on the **Custom Discovery**, then enter the URL of the Datran OPC UA Server.
6. Double click on the **None - None** field. This will populate some of the other fields in the dialog box, namely the Name and Endpoint Url fields. Edit the name. DATRAN is a good choice. Do not use spaces (InTouch doesn't like spaces in tag names).
7. Click **Add** and **Close**.

If you are using Intouch you must first install a Gateway (such as UaGateway). The UA Gateway name (ProgID) is usually `UnifiedAutomation.UaGateway.1`.

## Restart order

See [Backup, restart and disaster recovery](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/backup-and-restart.md).
