Editing Tags

This article applies to P2 Server versions 4.5.3 and later. For more, see Release History.

Every now and then, you may need to edit a tag in your system after it has been fetched from the historian. You can edit a tag using Server Management or the Import/Export spreadsheet.

Server Management

In P2 Server Management, editing a tag is performed through the Configuration configurationicon menu option:

Prerequisite Step: Creating a Tag Datasource

1. Open P2 Server Management, and click the Configuration icon. 

2. Click Datasources.

3. Click the datasource containing the tag you want to edit.

 

4. On the Datasource page, click the tag you want to edit. 

5. Edit the fields as required.

You are able to edit the following fields:

Name

Note that the name cannot contain reserved characters.

See also: Reserved Characters & Keywords

Description For the description, it's often useful to provide a broader explanation of what the tag represents.
Native Name The unique name of the tag in its originating system. Note that the native name cannot contain reserved characters.
Display Range Allows consuming applications (e.g. P2 Explorer Trend) to tell what the expected minimum/maximum value is for a tag. If supported, this information may be imported by the adaptor.
Default Timebase The time range that will be used by default when the tag is displayed in consuming applications, such as being added to a P2 Explorer trend. The default is 12 hours. 
Interpolation The type of interpolation to assume for the data returned by this tag. This affects how the data is displayed on a trend in P2 Explorer, and the default trace style. The default is Continuous.

 Continuous: Allows a line to be drawn to connect data points on the trend. Use for continuous data, such as temperature, where values between the points can be reasonably predicted.

 Discrete: Use for discrete data points, such as laboratory data, where the result is only valid at that point in time.

 Forward Extrapolated: The tag value is extrapolated forwards over the sample interval, until the next data point is reached. This is the most common method of extrapolation, and is often used when historians allow values accumulated over a sample period to be written to the beginning of the sample period.

 Backward Extrapolated: The tag value is extrapolated backwards over the sample interval, until the previous data point is reached. This is used when historians do not allow writing of values to the beginning of a sample period. When values are accumulated over a sample period, they are written to the end of the sample period.

Decimal Places The number of decimal places to display for the tag. An example of this being used is when the tag is displayed in the Status Tile of P2 Explorer. The default is 2. 
Scan Rate

The scan rate supplied by the historian, which specifies the frequency with which the tag is updated with live values in the data source. Consuming applications can use this to limit the range of a raw fetch on data which has a high scan rate. 

For raw fetches, the number of data points a fetch will return is estimated using the tag’s Scan Rate. The calculation is:

Points requested = EndTime – StartTime / Scan Rate

If the tag’s Scan Rate is not configured, the Default Tag Scan Rate from the datasource will be used. If neither of those has been configured, the system will assume a Scan Rate of 10 seconds.

Unit

The unit of measure for this tag. Select this from the drop-down list, which contains all units defined in the master list.  

See also: Creating a Master List of Units

Digital State Set If this tag represents a digital state set, select it from the drop-down list. 

6. Click the Save button in the top right corner.

 


Import/Export Spreadsheet

The Import/Export spreadsheet is generally only used to make bulk changes.

For details on the spreadsheet and how to obtain it, see Exporting Your Configuration.

If you want to edit tags as part of a bulk configuration, you can use the Tag and Tag Property tabs in the Import/Export spreadsheet

Look for the red comment commentred icon in the row headers, to get help with each column.

DO NOT change anything in the Global Id field - this is the unique identifier for the tag that allows it to be tracked across systems, and when it is renamed. It is automatically generated by the system. 

Tag Tab

The screenshot below shows an example of a configured tag (click to enlarge). The fields are the same as the ones in the first step of configuring a tag in Server Management, using the above instructions on this page.

Note: The choices for Default Timebase and Interpolation are available from drop-down lists on those cells.

Dependencies

The Tag has dependencies on information from other tabs. Understanding these dependencies assists in resolving import errors.

Read more: Understanding Object Dependencies

Direct Dependencies

The Tag tab is directly dependent on 3 other tabs; Datasource, Unit and Digital State Set; because columns on the Tag tab directly reference columns on those tabs.

This column On this tab Why you need to pay attention
Plain Symbol Unit Required by the 'Unit' column on the Tag tab.
Name Digital State Set Required by the 'Digital State Set' column on the Tag tab.
Datasource Digital State Set Required by the 'Digital State Set Datasource' column on the Tag tab.
Name Datasource Required by the 'Datasource' column on the Tag tab.
Cascading Dependencies

A cascading dependency exists when a dependent tab (above) has additional dependencies.  These are the columns that you need to pay attention to:

This column On this tab Why you need to pay attention 
Digital State Set Digital State References the 'Name' column on the Digital State Set tab.
Name Datasource References the 'Datasource' column on the Digital State Set tab.
Datasource Datasource Parameter References the 'Name' column on the Datasource tab.
Name System References the 'System' column on the Datasource tab.

Here is a diagram of the dependent tabs and columns. Use this to help you visualise how the dependencies work, and ensure all required columns are completed. Use the comments inside the spreadsheet to help you.

Tag Property Tab

You can also use the Tag Property tab, if you need to edit any of the Tag Metadata. Tag metadata is not editable from within P2 Server Management.

Dependencies

The Tag Property tab has no dependencies on information from other tabs. 

Related: Updating the Configuration


Release History

Comments are closed