Create a tag
Add a tag to allocate and reference data stored in the controller. Add a tag to a program, alarm, or add-on instruction. The default values for a new tag are:
- Data Type -- DINT
- Usage -- LOCAL
- Style -- DECIMAL
To create a tag
- On the explorer bar, selectSystem.
- InSystem, right-click the item and selectTags and parameters. The Tag Editor opens.TIP: To openTags and parameters, you can also select the item inSystemand then in theSystemtitle bar, selectView tags and parameters: (item name).
- In last row of the Tag Editor, selectAdd Tag. A row for the new tag is added.
- Enter the parameters for the tag:
- Name. The name of the tag or program parameter.
- Data Type. The name of the data type. If the data type does not appear, browse to open theSelect Data Typedialog box, select a data type from the list, and then selectApply. SeeSelect a data type for more information.
- Value. Enter the value of the tag.
- (Optional)Description. Enter a description of the tag to indicate the purpose of the tag or the latest change to the tag.
- Scope. The scope of the tag is the item selected inSystem.
- (Optional)Style. For a BOOL, SINT, INT, DINT, or REAL tag, select a display style to define how the tag value appears. Styles include DECIMAL, BINARY, OCTAL, and HEX.
- Usage. Select a usage type -- LOCAL, INPUT, OUTPUT, INOUT, or PUBLIC. The default is LOCAL.TIP:
- Usage is unavailable for tag members. PUBLIC is not a usage option for add-on instructions. Changes to Usage update the tag definition.
- For theUsagecolumn:
- Only Input, Output, and Public parameters can be referenced by a parameter of another program.
- Only a Local tag can be an alias tag for an Input, Output, or Public parameter of another program.
- When copying and pasting an Input, Output, InOut, or Public parameter in the Tag Editor, it retains all properties of the tag.
- The tag is not accessible externally when changing the usage of a tag toInOut Parameterand the External Access of the tag is Read/Write or Read Only
Provide Feedback