Creating Tags in the Tag Creator
The Tag Creator lets you browse all your connected devices and OPC Servers for datapoints. When the Tag you're interested in is not available for browsing, you can manually add a Tag and change any Tag properties directly in the Tag Creator interface. This approach is common for devices like Modbus and Siemens where memory addresses aren't browsable. This interface allows you to create any standard type of Tag. Notably, Vision Client Tags do not use this Tag Creator.
Tags that are grayed out in the For Provider area are Tags that already exist in your Tag Browser. The Tag Provider represented here is dependent on the Provider selected by the Tag Browser before the Tag Creator was opened.
New Tags added by the Tag Creator will appear in black font. These new Tags are effectively in a "staging" area, meaning they won't be added to the Tag Provider until you press OK or Apply. In the Tag Creator window, you can also select the Preview icon to see a summary of new Tags you are adding.
You have the option of editing your new Tags in the Tag Creator by selecting the Tag you want to edit in the For Provider area and double clicking or clicking on the edit (pencil) icon on the right. The Tag Creator edit window will open. If you have multiple Tags selected, only the first will be edited. Here you can edit any properties of the Tag. When you're finished, click Commit to accept your changes. When you are done adding Tags, click the OK or Apply buttons in the lower right corner to add your Tags to the Tag Browser.
The example below describes creating Tags using the Tag Creator.
In the Tag Browser, choose a Tag Provider from the dropdown list where you want to place your new Tags. The project's default provider will appear in bold.Note: Tag Creator is not available when the 'System' or 'Vision Client Tags' providers are selected.
- In the Tag Browser, click the Add icon to open the context menu. Here you can Browse Devices to add OPC Tags, or simply create a Tag or folder. Select Browse Devices...
- The Tag Creator window will open. There are two options described: Adding a OPC Tag and creating a standard Tag.
This is where you can browse OPC Tags on your connected devices. Browse the devices and find some Tags that you're interested in. Select the folder(s) or Tag(s) you want to add. You can move the selected OPC Tags into your selected For provider area by clicking the Right Arrow icon or dragging them into the right panel. To unselect a row, click out on a blank area, thus clearing any selected row.
The following characters are invalid and will be replaced by an underscore when dragging and dropping an OPC item into the Tag Browser: ! @ # $ ^ & * + [ ]
Parentheses are valid characters but are not valid as a first character in a tag name. If an OPC item name starts with a parenthesis, the tag name will be prefixed with an underscore:
- You also have the option of creating a New Standard Tag in the Tag Creator by clicking the Add
icon. A new blank Tag will appear in the For provider area in the currently selected folder (if one is selected), or at the bottom of the Tag list. See step 5 for editing Tags.
- To Preview the Tags you want to add to your Tag Browser, scroll down to the bottom of the list in the For Provider area, or click the Preview icon on the right side of the window.
You have the choice of editing your Tags in the Tag Creator or editing them in your Tag Browser. To edit Tags in the Tag Creator, select a Tag and click on the Edit
icon. Here you can change the Data Type, Item Path, set alarms or store history, and anything else that you can do to modify a Tag. Click the Commit button to submit your changes.
As of 8.1.2, the For Provider area now features a right-click menu that also has Edit and Remove options.
- When finished, click the Apply button to add your new Tags to the Tag Browser. As soon as the Tags are in the Tag Browser, the values will start updating automatically.
Creating Tags Manually
Tags can be created manually in the Tag Browser. You can create any of the Standard Tag Types or a Data Type Instance.
This example creates a Memory Tag.
- You can create Tags in two different ways: click on the Add icon to open the context menu and select New Standard Tag and choose the Tag type, or right click any where in the Tag Browser and select New Tag and choose the Tag type.
The Tag Editor will open to edit the Tag's properties.
Set the properties as follows:
Name: My Memory Tag
Value Source: Memory
Data Type: String
Value: Hello Ignition
- When finished, click OK. Your new Tag will be placed in the Tag column of the Tag Browser. Since this is a Memory Tag, its value will not change unless you write to it.
Edit a Tag
- To edit an existing Tag, right-click on the Tag, and select the Edit Tag icon.
Once in the Tag Editor, you can update the Tag properties. For example, if you want to change the Tag to a different type – such as from OPC to Expression – go to the Value Source property, click the Expand icon, and choose the type of Tag (OPC, Memory, Expression, Query, Reference, or Derived) that you want.
Rename a Tag
Tags names are flexible. For naming conventions, see Tag Browser.
- To rename an existing Tag, right click on the Tag in the Tag Browser and select the Rename option.
- The cursor will now blink inside the Tag name and you can type the new name.
Cut, Paste, or Copy a Tag
You can also cut, paste, and copy Tags within the Tag Browser. Right click on the Tag in the Tag Browser. Choose the command you want.
- Delete: Completely removes the Tag.
- Cut: Delete the Tag from the current location, but leave it in the clipboard to be pasted elsewhere in the browser.
- Copy: Make a copy of the Tag and leaves it in the clipboard to be pasted elsewhere in the browser.
- Paste: Pastes the Tag you've cut or copied into the currently selected location in the Tag Browser.