Add a Tag in OPC Tag Database Manager
Tags from different sources can be added within the OPC Tag Database Manager. They must be added here before they can be accessed in Runtime. The tags are formatted into the standardized OPC format for integration with industrial automation and control systems.
To add a tag to OPC Tag Database Manager, follow the steps below.
- Click Add.
-
In the General pane, fill in the below
values.
Name The Name of the OPC tag to add. Type The tag type for the OPC tag. Choose from: - Modbus — Connect to a modbus-enabled PLC device.
- Omron FINS Ethernet — Connect to an Omron-enabled PLC device.
- OPCDA Source — Connect to an OPC Data Access Server tag.
- Virtual — Create simulated values which are not tied to any tag database or server. The tags created are local to the Tag Database Manager. This type is primarily used for testing.
-
Fill in the Advanced Settings for the selected tag type.
Table 1. Modbus Network Address The address of the device on the network you wish to connect to. Port The port used for the connection to the OPC device. Slave Address The address for the specific slave device to be connected to. Address The location/register number for where the tag is located. Data Type The data type of the tag being added. Options are: - Word
- Word Array
- Boolean
- Boolean Array
Array Size The length of the array. This is only available for the Word Array and Boolean Array data types. Scan Rate (msec) The rate in millisecond at which the tag is scanned for its state. Table 2. Omron FINS Ethernet Network Address The address of the device on the network you wish to connect to. Port The port used for the connection to the OPC device. Source Network Address The address for the Omron PLC device. When replies are sent from the FINS destination, they are received to this address. Source Node Number The specific node being connected to on the source PLC. Destination Network Address The address to connect to FINS. Messages are sent here from the source address. Destination Node Number The specific node being connected to on the destination FINS. Destination Unit Address The network address for the destination FINS unit. Tag Address The address for the OPC tag being accessed on the device. To use the entire word value, enter only the address for the tag. To listen to a specific bit, place a period between the tag address and the bit number. E.g, to listen to bit 7 on tag D100, you would enter D100.7. To create a tag array, place square brackets with the array length between them. E.g., to listen to an array starting at tag D100 with a length of 10, you would enter D100[10]. The tag types supported are: - CIO (Computation Input/Output)
- A (Auxiliary Relay)
- D (Data Memory)
- H (Holding Relay)
- W (Work Memory)
Scan Rate (msec) The rate in millisecond at which the tag is scanned for its state. Table 3. OPCDA Source Machine Name The machine/computer where the tag database is located. To view a list of machines to connect to, click Browse Machines. The default is localhost. Server Class The OPC server on the selected machine. A machine can have multiple OPC servers. To view a list of servers to connect to, click Browse Available Servers. Item ID The item from the select server corresponding with this tag. To view items, click Browser Items. Update Interval The time interval in milliseconds between each update of the tag values from the server. Table 4. Virtual Data Type The type of data the tag will used. This can be: - Boolean
- Int
- String
Array Check this box if your tag will contain multiple values. Length If the Array option is checked, enter in the number of values to be stored in this array. Randomize Check this box to have the tag continually updated with random values. Note: To view these updates, Live Tag Updates must be enabled in the Tag Display menu.Update Interval If Randomize is checked, this is the time interval in milliseconds between each update for the tag value. Max Limit If Randomize is selected and the Data Type is Int, this is the maximum possible value the tag can have. Min Limit If Randomize is selected and the Data Type is Int, this is the minimum possible value the tag can have. - Click OK.