Getting Started OPC DA

Open Automation Software Tags can be defined to connect to Classic OPC Data Access 2.xx and 3.0 Servers with the built in OPC Interface.

The following steps can be used to setup communications with Classic Data Access OPC Servers.

Step 1 – Configure OPC DA Tags

OAS

Start Configure OAS application from the program group Open Automation Software.

Select Configure-Tags.

Menu Configure Tags

NOTE: To configure remote OAS Engines enter the IP Address or node name in the Network Node field and click on Select.

Network Node

Select Add Group to add a group to place tags in.

Add Group
Add Tag Group

NOTE: You can add organizational Groups as many levels deep as you prefer and add tags to groups.  To do this first add a Group to the root level, then right click on the Group in the right window to add additional Groups or Tags.

Tag Group Options

Select Add Tag to add a tag to the group selected.

Add Tag
Add Tag to Group

Change the Data Source Tag property to OPC.

OPC Data Source

Use the Browse button to the right of the OPC Item to browse OPC Servers for the desired OPC Item.

Getting Started OPC Item

Select Local, the desired OPC Server, branch within the OPC Server, and OPC Item and click OK.
Getting Started OPC Browse

Note: If you wish to browse remote OPC servers via IP address see Networking OPC Data.

Specify the desired OPC Update Rate for the Tag.

Getting Started OPC Update Rate

To disable communications to the device you can use Enable by Tag to control when communications is active. Leave this property disabled to establish communications at all times.

Enable by Tag

The Device Read property can be used to disable continuous polling and request data on event from the transition from false to true of a value of a Boolean tag. Leave this property disabled to establish communications at all times.

Device Read

Select Apply Changes in the lower right to activate the communications for the OPC Item.

Apply Changes

The value from OPC Server for the OPC Item selected will appear in the current Value field.

Good Quality

NOTE: If the data quality is Bad Quality view the article Troubleshooting OPC Communications.

Step 2 – Define Multiple OPC Tags

To define multiple tags use one of the following optional methods.

  • Use One Click OPC to automatically create tags from all OPC Items from a selected OPC Server or branch within an OPC Server. Then selectively delete the groups and tags that are not required.
  • Use CSV Export and CSV Import on the toolbar together with Microsoft Excel to add or modify tags.
  • Programmatically define Tags using the free to use OASConfig component with the SetTagProperties method.
  • Programmatically define Tags with the OAS REST API.

Optionally define a secondary failover OPC Server if the primary OPC Servers fails under Configure-Options-OPC.

Step 3 – Save OPC DA Tags

Select the Save button on the toolbar at the top.

Load and Save

Enter a file name to be saved in C:\ProgramData\OpenAutomationSoftware\ConfigFiles directory on Windows or ConfigFiles subdirectory on Linux.

When prompted to set the file as the default configuration to load on startup select Yes.

Set Default Tag File

The tags defined are now ready for use in all OAS features like Data Logging, Data Route, and Open UIEngine.