Page Tree
Other Releases
What are Tags and Templates?
Tags
FactoryStudio uses the term "tag" to refer to real-time variables and their associated historical data. Tags usually map to devices, such as PLC registers or other physical equipment in the production process. A tag can also be connected to entries in SQL databases, external data sources, or an internally calculated value.
All tags have a specific type, such as an integer, text, or date and time. FactoryStudio provides over a dozen predefined types and allows users to define new types. In addition, some tags may be defined as arrays, and some tags may have optional parameters.
Tags are the process variables for your application. Use tags and their properties to set up the data model for your process.
Templates
Although FactoryStudio provides many predefined types, you may need to define your own type. Templates are used to do this. Templates may be defined with properties similar to those of predefined types. Each template represents a user-defined type that can be used in the same manner as predefined types.
Using templates, you can add to the types of tags available for your project by creating new types to fit your application needs. This could be as machine data, equipment status, vessels, or as the representation of any asset attributes in your plant.
Creating and Editing Tags
To create and edit tags:
Column | Description |
Name | Enter a name for the tag. The system lets you know if the name is not valid.
|
Type | Select the tag type, which may be a built-in type or a user-defined template. |
Parameters | Configure any parameters. The parameters vary based on the tag type. Once the type is entered, you can double click on the parameters field to see a dropdown menu with any applicable parameters.
Example 1: If the DeadBand is Set to 5 and initial value of the tag is 0, the next input possible to be saved, need to be >=5 or <=-5. Example 2: If the current value of the tag is 100 and the deadband is set to 10%, the next input possible to be saved, need to be >=110 or <=90. |
Array | When this field is blank, the tag is not an array. When the field contains an integer value of N, an Array is created from position 0 to N. For example, if the field contains the value 5, the Array is created from Tag[0] to Tag[5]. This means that 6 elements are created. Two programming styles are accommodated by this method; one that counts elements from 0 to less than five, and one that counts from 1 to 5. |
The columns above are visible by default. To add or remove one of the column below, right-click the column heading area and check or uncheck the columns that should be visible.
Column | Description |
Units | Enter the engineering units of measure that you want to use as a label for this tag. |
StartValue | Enter a starting value for this tag. This is the value the tag will be initialized with when FactoryStudio starts. |
Format | Enter a default format for displaying the data. For example:
|
Retentive | Select the option to save the value of the tag and its internal properties to the database every time the value changes. This retains the value when the application shuts down and makes the value available when the application next starts.
|
Min | Enter the minimum value that is valid for the object. |
Max | Enter the maximum value that is valid for the object. |
Visibility | Select the value visibility on the OPC server for remote projects:
|
Domain | Tag value for the entire project or value specific to each client display.
|
Comment | Enter any comments about this tag. |
ReadSecurity | Select which groups have the right to read the Tag. Tag Security protection can be configured in Display > Client Settings |
ScaleMin | Enter the scale min value for communication. |
ScaleMax | Enter the scale max value for communication. |
DevicePoint | Read-only. Show which communication point is related to the tag (if related) |
WriteSecurity | Select which groups have the ability to write in the Tag. Tag Security protection can be configured in Display > Client Settings |
[Other columns] | For definitions of other columns that are available in this table, see Common Column Definitions. |
Continue adding as many tags as you need.
Notes
You can create a tag from anywhere in FactoryStudio by clicking New Tag in the toolbar.
Like any other configuration table, you can import CSV files or copy/paste content directly from an Excel spreadsheet or from other applications.
With FactoryStudio, you can replace names at any time. An easy way to create a tag is to click on the Name column of the insertion row, then press space and enter. Each time you do this, the system will create the same type of tag that was last created. In the insertion row, select the Type, then click on the header or any other part of that grid. This will create a tag with a default name. Also, you can configure more than one row at a time by selecting the rows with the Shift button, then right-click and select "Edit Combined Rows". A new popup will open with the information for the rows. The settings changed in this window will change all of the selected rows. If a column has , it shows that this column has more than one configuration.
Tag Formats
The format property defines the display format of tag values. These formats follow the specifications provided in Microsoft .NET. For valid numeric formats, refer to Standard Numeric Format Strings. For example: N1 (number with 1 decimal place).
For valid date and time formats, refer to Standard Date and Time Format Strings. For example: d (short date).
For a more in-depth discussion of format strings, refer to Formatting Types.
Numeric format examples | |
Specifier | Description |
N0 | Number with no decimal places |
N3 | Number with 3 decimal places |
X | Hexadecimal (supported only for integral types) |
C | Currency |
Date/time format examples | |
Specifier | Description |
T (only) | Long time pattern (equivalent to HH:mm:ss). |
d (only) | Short date pattern (equivalent to M/d/yyyy (month/day/year) for en-us). |
dd | Show the day of the month as a number from 01 through 31. |
ddd | Show the abbreviated name of the day of the week. |
dddd | Show the full name of the day of the week. |
MM | Show the month as a number from 01 through 12. |
MMM | Show the abbreviated name of the month. |
yy | Show the year as a two-digit number. |
yyyy | Show the year as a four-digit number. |
hh | Show the hour as a number from 01 through 12. |
HH | Show the hour as a number from 00 through 23. |
mm | Show the minute as a number from 00 through 59. |
ss | Show the second as a number from 00 through 59. |
fff | Show the millisecond as a number from 000 through 999. |
tt | Show the A.M./P.M. designator. |