Connecting with OPC UA
Connecting to a Device
With the Ignition OPC UA module and and device drivers installed, connecting to a devices is simple. To quickly get connected to one of your devices, go to the Config section of the Ignition Gateway and scroll down to OPC UA > Device Connections. The Device page will appear showing all of your installed devices. To add a new device, click on the blue link, Create New Device. Ignition has several device drivers available, and the Device Type list will be populated based on what Driver modules you have installed. Select the type of device connection you want and fill in the details for you device connection. See the device types below for more information on connecting to your specific device type:
Connecting to a Server
If you don't see the type of device you want, then you can always connect with another OPC UA or OPC DA server.
OPC Quick Client
After you connected to a device, you can access the OPC Quick Client in the Gateway. It allows for quick, simple testing of any devices connected to the server.
You can find the Quick Client under the OPC Connections section of the Ignition Gateway Config section. You can browse by expanding the tree nodes and read from or write to OPC tags by clicking on the [r] and [w] buttons next to those tags.
Subscriptions can be made by clicking on the [s] button. Clicking on the enable live values link will automatically refresh subscriptions and show live value changes (if there are any).
How Do I Get Data from My PLC?
Getting data from your PLC into Ignition is a two step process:
It requires you to touch both the Ignition Gateway and the Ignition Designer. There are also some limitations as to what kind of devices you can connect to Ignition and these are explained throughout the user manual, however, included below is an overview of what you can expect when it comes to compatibility.
Brief Summary of Device Connection in Ignition
- Ignition can only connect directly to devices over Ethernet.
- Ignition can only connect directly to devices for which there is an Ignition device driver. Visit the OPC UA Drivers page for an overview of supported devices and drivers.
- Ignition can connect to third party OPC servers via OPC-UA or OPC-DA (using the OPC-COM module) for devices that do not have a supported driver.
Adding a Device to Ignition
Ignition Supported OPC UA Device
Most commonly you will be adding a device that is supported by one of the built-in device drivers. The first step is connecting your device to Ignition. This is done through the Ignition Gateway Configuration section under the OPC-UA -> Devices page.
- Click Add a device...
- Select the driver for the device you wish to add.
- When adding a device you will notice that there are some common settings that are shared by all devices. You can find an explanation of these settings here: Adding a New Device
- Specify any of the required device specific settings for the device (for example, hostname, etc.)
- Check the status of your device to see if it is connected.
As long as all the device information you entered was correct you should see your device in a connected state. The only exception to this is if you chose to add a Siemens or Modbus device. Since these devices don't support the browsing of Tags, you will have to create and address some Tags in the Ignition Designer before the device will stop cycling from a connected to disconnected state.
If you need to address your Tags for your Siemens or Modbus device, you'll want to read about adding Tags in the Ignition Designer as well as how addressing works for the different protocols. You will have to first add a Tag in the Ignition Designer and then edit the OPC Item Path of the Tag using the appropriate addressing scheme.
Adding Connection to Third Party OPC Server Via OPC UA
If your device does not have an Ignition driver, you can use a third party OPC server to connect to your device and then have Ignition connect to the server as a client. If the OPC server offers support for OPC UA, you can add a new OPC UA server connection in the Ignition Gateway. For more information, see the OPC UA Client Connection Settings page. Additionally, the Connecting to Kepware OPC UA is useful when connecting to Kepserver.
Adding Connection to Third Party OPC Server Via OPC COM