Skip to main content
Version: 8.3 Beta 🚧

Ignition's OPC UA Server

Ignition's OPC UA server, provided by the OPC UA module, allows an ignition installation to utilize Ignition's various device driver modules. In addition, with the module installed, OPC UA clients can connect to Ignition's UA server, exposing any connected devices to third party systems.

Settings for the server can be found under the Connections section of the Gateway Webpage. On the sidebar, locate OPC UA > Server Settings.

Default Credentials

Ignition's OPC UA server does not initially support anonymous access, but can be configured to do so (see the settings table below). Authenticated connection require the following credentials:

  • Username: opcuauser
  • Password: password

New installations of Ignition will automatically create the user above, allowing the Gateway to initially connect as a UA client to its own UA server.

Connecting with UA Discovery

Ignition's OPC UA server is initially, and intentionally, difficult to discover on new installations. To aid with discovery attempts, a separate unsecured endpoint is available, allowing UA clients a means of finding the server. When attempting to discover the server, the endpoint URL should include "/discovery" at the end:

opc.tcp://192.168.2.134:62541/discovery

OPC UA Server Settings

The tables below detail the General Settings tab on the Ignition's OPC UA Server Settings page. They'll only become available if the OPC UA module is installed on the Gateway.

Endpoint Configuration

SettingDescriptionDefault Value
Bind PortThe port the UA server will bind to.62,541
Bind AddressesThe address the server will bind to. If you want to expose the OPC UA server to external sources, you need to use 0.0.0.0 or the IP address of the computer.localhost
Endpoint AddressesA comma separated list of endpoint addresses that the UA server can be reached at. It is important that this is set to addresses that can be reached by any UA clients attempting to connect to the server.
When entering addresses into this property, they can be just an IP address or hostname:
10.10.10.100

Alternatively, angled brackets can be used. When applied to an address, the server attempts to find the hostname, or resolve the value to as many addresses or hostnames as it can find.
<10.10.10.100>
<hostname>,<localhost>
Security PoliciesA comma separated list of acceptable security policies. Available policies are:
  • None
  • Basic256Sha256
  • Aes128_Sha256_RsaOaep
  • Aes256_Sha256_RsaPss
Basic256Sha256

Authentication

SettingDescriptionDefault Value
Anonymous Access AllowedSpecifies if UA clients are allowed to connect to this server anonymously. While false, client connections are required to authenticate with the server.false
User SourceWhich user source contains the initial user for authenticated access. Credentials for the initial user can be found above.Attempts to use the 'opcua-module' user sources

Advanced

SettingDescriptionDefault Value
Expose Tag ProvidersWhen enabled, Ignition Tag Providers will be exposed through the UA server, allowing third party UA clients to access tags in the provider. An OPC-UA module restart is required when changing this setting.false
Max Session CountThe maximum number of client connections to the UA server.100

Redundancy

SettingDescriptionDefault Value
Read-only When Inactive NodeWhen enabled, this server switches to a read-only state while its Gateway is the inactive node in a redundant pair.false

OPC UA Server Permissions

The Permissions tab allows users to set role permissions for access to devices and exposed tags. Each role will have the options for Browse, Read, Write, and Call.

Click the Add Role option to select or enter a role. Roles already created for the opcua-module user source will be available to select from the dropdown. You can also enter a new role here to assign permissions, but then you will need to navigate to the Platform > Security > User Sources Gateway page to create a role of same name for the permissions to be applied to the desired opcua-module users.

After the role is added to the Permissions list, check the access levels you want to apply. Make sure to click Save Changes at the top of the page after any permissions update. You can remove roles by expanding the three dots menu and selecting Remove.

Default Device Permissions

SettingDescription
Default Device PermissionsRole-Permission mappings that will be used when a Device has no explicit mappings defined. Role Names must be unique.

Default Tag Provider Permissions

SettingDescription
Default Tag Provider PermissionsRole-Permission mappings that will be used when a Realtime Tag Provider has no explicit mappings defined.

Tag Provider Permissions

SettingDescription
Individual Tag Provider PermissionsRole-Permission mappings, specific to a selected Tag Provider, that will override any Default Tag Provider Permissions defined in the Default Tag Provider Permissions section above. After a Tag Provider is added, you can add permissions for it.

OPC UA Client Redundancy

⚠️ 8.3 Known Issue

The OPC Quick Client is not included in the 8.3 beta release, but will be added in a future release. For a full list of known issues, click here to learn more.


Ignition's OPC UA server supports non-transparent redundancy. This allows third party OPC UA clients to connect to the active node in a pair of redundant Gateways. If the master Gateway goes down, then the OPC UA client would be able to switch to the backup Gateway, following the active node as the system changes.

The steps below demonstrate how to configure OPC UA redundancy.

  1. Start by having Gateway redundancy configured between two Ignition Gateways.

  2. Next we need to find URIs for the OPC UA servers on each node. These can be browsed from a quick client. On the master Gateway, navigate to Connections > OPC-UA > Quick Client.

  3. In the quick client, browse down to the Ignition OPC UA Server > Server.

  4. We'll need to read (not subscribe) to the ServerArray. Press the [r] link next to ServerArray. This will make the server's URI appear in a panel above the tree. Copy the URI, but omit the square brackets.

    OPC UA Client Redundancy Step 4

  5. This is the master's URI. Temporarily store the URI, as we'll need to pass it into a setting later.

  6. Next, switch over to the backup Gateway. Repeat steps 2-5 to obtain the backup Gateway's URI.

  7. With both URIs, switch back to the master Gateway.

  8. Navigate to Connections > OPC UA > Server Settings.

  9. For the Master Application URI setting, enter the master's URI.

  10. For the Backup Application URI setting, enter the backup's URI.

  11. Press Save Changes.

From this point on, third party OPC UA clients can connect to the active node's OPC UA server, and will fail over when the active node switches. While OPC UA redundancy is enabled, the Ignition OPC UA Server > Server > ServiceLevel tag can be used to denote which server is running as the master.

Service LevelDescription
255The OPC Server is on the master Gateway, and the master is the active node. Note that this value is also used in cases where redundancy is not enabled.
254The OPC Server is on the backup Gateway, and the backup is the active node.
1The OPC Server is the inactive node. Meaning the other node is currently active.
note

It is possible for both nodes to be active, where the master shows a value of 255 and the backup simultaneously shows a value of 254. This generally happens in cases where the two nodes are unable to communicate with each other. For example, when a network disconnect occurs between the two Gateways, or if the Gateway network connection between the two is pending approval.

Troubleshooting a Faulted Connection to Ignition's OPC UA Server

You may occasionally run into issues with Ignition's OPC UA Server connection. In these situations, there are a few things you can check to diagnose your issue.

To troubleshoot your connection to Ignition's OPC UA Server, follow the steps below:

  1. Go to the Server Settings page for Ignition's OPC UA Server. This page is located on the Gateway webpage Connections > OPC UA > Server Settings.

    Troubleshoot Faulted Connection Step 1

  2. Check your Endpoint Addresses setting. The default value for this setting is <hostname>,<localhost>. The IP address of the internal OPC UA Server can also be appended.

    Troubleshoot Faulted Connection Step 2

  3. Click Save Changes at the top of the page. After making changes to your settings, saving may help flush out any residual information.

  4. Check your Bind Addresses. The default value for this setting is localhost. If you want to expose the OPC UA Server to external clients, you can use a value like 0.0.0.0 or the IP address of the computer. Click Save Changes.

    Troubleshoot Faulted Connection Step 4

  5. Check your Security Policies. Possible values for this setting are listed in the table under OPC UA Server Settings. Click Save Changes.

    Troubleshoot Faulted Connection Step 5

If you continue running into problems after following these troubleshooting steps, contact the Support department.