Skip to main content

i4scada Knowledge Base

i4scada OPC-UA Tutorials

Abstract

To help you configure the OPC-UA Connector in the i4scada Studio application, check out this step-based tutorial accompanied by helpful screenshots.

Configuring the OPC-UA Connector in i4scada Studio
Abstract

Get going with your OPC-UA Connector and follow the steps described in this tutorial, for a successful outcome.

To configure and test an OPC-UA Connector, follow the below described steps:

  1. Open the i4scada Studio application.

  2. The login dialog is opened. Fill in your credentials (if you are a new user and made no changes during i4scada installation, the default user name is "sa" and the password is "webfactory").

    Studio_login.jpg
  3. Select the [New Database] option from the Database drop-down list.

  4. The New Database dialog is opened allowing the user to fill in the Database name.

    New_DB.jpg
  5. Press the button New to start generating the new Database.

  6. Once the Database is prepared, press the Login button.

  7. The i4scada Studio is opened. An information window pops-up asking the user to confirm if the new database should be set as Default or not.

    Info_dialog.jpg
  8. For the current use case, we shall set the New database as default, hence the button Yes will be selected.

  9. Under the Signals section click right on the Server List node.

  10. The Server contextual dialog is displayed. Select the option New Server.

    New_Server.jpg
  11. A new Server node is added, under Server List. We shall name the new Server ".", as for the current use case the Server runs on the same machine as the i4scada Studio.

  12. Select the Server node and click-right. Select the option New Connector / OPC-UA Connector from the contextual menu.

    OPC-UA_Connector.jpg
  13. The OPC-UA Connector node is added to the hierarchical view.

    Connector_node.jpg
  14. Further configuration steps, will be organized in the Connector Configuration panel.

    Connector_Configuration_panel.jpg
  15. Click the toolbar button New to add a new Session to the OPC-UA Connector.

    New_session_button.jpg
  16. The OPC-UA Connector window pops-up. Type in Server Url and click the Connect button.

    Server_Url.jpg
  17. The Enpoints grid-view is populated. Select the desired Session endpoint(s) and click the Create button.

    Create_Session_endpoint.jpg
  18. The Session is added to the below grid-view. Click the Import button to add the new Session to the OPC-UA Connector.

    Import_session.jpg
  19. Close the OPC-UA Connector window to return to the Signals panel of i4scada Studio. In the Connector Configuration panel, the hierarchy is updated with a node for the new Session.

  20. Select the Session node and click on the button New, to create a new Subscription.

    New_Subscription_button.jpg
  21. The new Subscription is added automatically to the hierarchical view.

  22. Select the new Subscription node and click on the button New, to add Items to the Subscription.

    New_Items.jpg
  23. The Server nodes window pops-up, displaying the list of monitored Items (variables).

    Server_nodes_window.jpg
  24. Select the desired server node(s) or expand the hierarchy. The items grid-view is populated with all the respective node variables.

  25. Select the desired listed items and click either Import All or Import button.

    Import_variables.jpg
  26. Close the Server nodes window, to return to the Signals panel in i4scada Studio.

  27. The Subscription items grid-view is populated with the imported items. Press the Save button, in the Connector Configuration panel, to preserve the changes organized so far.

    Save.jpg
  28. Click right on the .\OPCUAConnector node and select the Browse Connector option in the contextual menu.

    Browse_Connector.jpg
  29. The Browse Connector window pops-up, displaying the previously created hierarchy. Click on the Subscription node.

    Select_Items_for_the_mapping.jpg
  30. Select the desired Item(s) from the list view and fill in a new Destination group.

    New_group.jpg
  31. Click the button Add to enable the system to perform the mapping between Subscription Items and WEBfactory Signals.

  32. Close the Browse Connector window to return to the Signals panel in i4scada Studio.

  33. Click on the Group node. The list is populated with the Group Signals.

    Group_Signals.jpg
  34. Open the i4scada Service Manager Application and start the i4scada Server.

    Start_SCADA_server.jpg
  35. Open the i4scada Activity Analyzer and click on the Start toolbar button.

    Start_Activity_Analyzer.jpg
  36. Activity for the OPC-UA Connector and its Groups are successful.

    OPC-UA_running.jpg