OPC Channels

In this Topic Hide

Create an OPC Channel

Create an OPC Channel Group

Add Tags to the OPC Group

OPC Channels are used to create named connections to the shop floor via an OPC Server. These connections are called tags. In order to create a tag you need to specify the server on which the data exists, the format of the data, when the data should be read and the address of the data.

This information is specified in different layers as shown below where the channel contains groups which contain the tags:

Create an OPC Channel

1.     Select the Automatic Collection tab.

2.     Click OPC Channels.

A list of the existing OPC channels is displayed.

3.     Click the add icon ().

4.     In the Main tab enter a name and description.

5.     Select a Collector from the drop-down list.

6.     Select a Remote Host if you are using a DCOM connector.

7.     Select an OPC Server from the drop-down list. If required, click Refresh OPC Server List.

Create an OPC Channel Group

Groups are used to collect together tags that have the same acquisition type. For example, a group could contain all the tags that need updating every 30 seconds.

8.     Create an OPC channel group by selecting the next tab.

9.     Enter a name for the group.

The name of the group can be changed at any time in the Name field.

10.  Select an Acquisition Type from the drop-down list.

o       None:

o       Time Interval: Data from the tags listed in the main pane is recorded at regular intervals. If selected, enter a Time Interval in milliseconds.

o       By Trigger Tag: Data from the tags listed in the main pane is recorded when the selected trigger tag changes value.

(1)  Click Edit Trigger Tag.

(2)  Enter a Code and Description.

(3)  Select the Data Type.

(4)  Enter an Access Path. Click Browse OPC Tags to look for an existing OPC tag.

(5)  Click OK to save the trigger tag.

o       On Change: Data from the tags listed in the main pane is recorded whenever they change value.

Add Tags to the OPC Group

You now need to add the OPC tags that will be read.

Add Individual Tags

11.  Click .

12.  Enter a Code and a Description.

13.  Select a Data Type.

14.  Enter an Access Path or click Browse OPC Tags to select one directly.

15.  Specify how a bad quality message received from the equipment should be handled. There are two options:

o       Report bad quality: The bad quality value is simply logged.

o       Send default value: A default value is used instead. For example, this could be an expected average or it could be a known error warning value. The value set must correspond to the selected data type.

16.  Click OK.

The tag is added to the list.

Add Multiple Tags

17.  Click .

18.  Select the required branch.

The available tags are listed in the right-hand pane.

19.  Hold down the Ctrl key and select multiple tags.

20.  Click OK.

The tags are added to the list.

21.  Edit the tags individually to modify them.