OPC Client DA/UA¶
- Modbus & OPC Edition or Ultimate Edition
Tutorials and Samples: How to setup CODESYS and download of sample scenes.
This driver allows Factory I/O to exchange data with PLC, SoftPLC or any other technology that can be accessed through an OPC Server DA/UA. It's compatible with OPC Data Access 1.0, 2.0, 3.0 (Classic) and UA (Unified Architecture) specifications.
OPC UA Scheme
- The OPC UA driver supports only the opc.tcp scheme.
Actuator and sensor tags are mapped to OPC items/nodes, depending when you are using OPC Classic or UA - throughout this document, items/nodes will be referred just as nodes. These nodes are browsed from an OPC server by clicking on the BROWSE button, which are then displayed alphabetically on the Driver window. You will find the Total Number of discovered nodes next to the server name, which you can limit by choosing a Limit (see below). Note that only nodes names are displayed - hover the mouse cursor over a node to show the full node ID (or item ID when using OPC Classic).
You may link any tag to any node, independently of the tag data type or if it's a sensor's or actuator's tag. This means that you should choose the appropriate data type and read/write permissions when creating nodes on the server.
It's a good practice to start the name of sensor nodes with a letter and actuator names with another, for example, the letter 'i' (input) for sensors and 'o' for actuators. By doing so, sensor items are displayed together and before actuators (see image above). Additionally, by adding a prefix to these nodes (e.g. 'fio_') you can use the Start width and Contain filter to retrieve only these nodes from the server. These filters are implemented differently on OPC Classic and OPC UA. On OPC Classic both filters are applied to item's ID. On OPC UA, Starts width filter is applied to node display name and Contains filter is applied to node ID.
|Host Name||Name of the machine where to browse for OPC servers.
|Browse Servers||Click to browse for OPC servers.|
|OPC Server||Select the OPC server to connect to from the list. Alternatively, enter the OPC server endpoint Url (or ProgID when using OPC Classic) and press Enter.|
|Browse||Click to browse nodes on the current OPC server.|
|Limit||The maximum number of nodes that will be retrieved from the server (max 256).|
|Filter "Starts With"||Only retrieves nodes that start with the specified value. On OPC Classic this filter is applied to item's ID. On OPC UA it's applied to node display name.|
|Filter "Contain"||Only retrieves nodes that contain the specified value. On OPC Classic this filter is applied to item's ID. On OPC UA it's applied to node ID.|
OPC UA Certificates and User Identity
By default certificates are loaded from Installation Folder\CertificateStores. If required, you can configure the path to all certificates stores through the console or a cfg file.
If the server supports anonymous user identity, no additional configuration is required. However, if a server is expecting additional information about the user identity other than the client certificate, a user identity has to be set. You can choose between identities based on username/password or a certificate (X509). Set the user identity or certificate path through the console or a cfg file.