You can import tags to an individual folder or under the Tags tab. To import tags under the Tags tab, you can click the Tags tab or the empty space at the bottom of the Tag Browser below all your tags. When importing tags, you need to tell Ignition how to handle duplicate tags. If any of the tags being imported already exist in the folder you specify, Ignition can abort the import, overwrite the tags, rename them, ignore them, or merge them. This is called a collision policy.
Collision Policy Options Table
Aborts the import if duplicate tags are found.
Overwrites any tags in the folder that have the same name as tags being imported. Note this a complete overwrite of the tag.
Renames any duplicate tags.
Ignores duplicate tags and imports only those that are unique.
Overwrites the tag with the exception of any properties that aren't defined in the import folder. Those properties will be merged.
To import tags, do the steps that follow.
In the Tag Browser toolbar, right click on your folder and select Import Tags.
Specify the folder you want to import your Tags from, and choose a previously exported file either .json , .xml , or . csv file type.
Choose a Collision Policy, which indicates how Ignition will deal with duplicate tags.
Click Open to import the tags.
The tags now appear in the Tag Browser in the folder you indicated for the import.
Advanced Tag Import
The Advanced Tag Import tool allows users to edit tag properties in the Designer before import. It combines the functionality of the basic Import Tags tool with the Tag Editor window.
|Adds the selected tag, folder, or UDT to the Staging Area.|
|Adds all tags, folders, and UDTs in the Selection Pane to the Staging Area.|
|Creates a new folder or tag at the selected node in the Staging Area, or the root if a node is not selected.|
|Opens a Tag Editor window for the selected tag or UDT.|
Deletes the selected tag or UDT from the Staging Area.
- From the Tag Browser, click the More Options menu and select Import Tags > Interactive.
- Select the .json, .xml, or .csv file to import.
- Move the desired tags and UDTs from the Selection Pane to the Staging Area using the Add or Add All buttons.
- Edit tags in the Staging Area by selecting a tag and clicking Edit
If any collisions are detected, you will be prompted to select a Collision Policy from the dropdown menu.
Note: Unlike the basic Import Tags tool, you may only choose to Overwrite or Ignore duplicate tags imported via the Advanced Tag Import tool.
- Click OK to import the tags and UDTs
The tags now appear in the Tag Browser.
Tag File Formats
Tags can be imported from CSV, JSON, and XML. tags can only be exported in XML or JSON. There are many configuration settings for tags than what is displayed in a JSON or XML export file. The tag export feature only exports the configuration properties that have been edited in at least one of the tags in the selected export folder. Therefore, to ensure the desired configuration setting is available in the export file, at least one tag within the selected export folder must have that configuration property changed
Ignition supports importing tags from a CSV format. Details of the format are below, if you expand "CSV Example Format". This format can contain tag types, OPC paths, and most tag properties. One difference between the CSV format and the XML and JSON format is that the CSV format does not include support for alarm configurations. Alarms can certainly be added to tags in the Ignition Designer after tags have been imported from CSV, but alarms cannot be defined directly in the CSV.
Below is an example of the legacy CSV format, which contains a couple of different tag types, purely for demonstrative purposes. It contains:
- An OPC Tag
- A Folder
- An OPC Tag located in a folder
- A Derived Tag
- An Expression Tag
- A Memory Tag
- A Query Tag
Property Values in the CSV Import
The following table shows the configuration property names and values contained in legacy CSV tag import files. Tags were overhauled in Ignition 8.0, so the properties listed here are not the same as tags export from an Ignition 8.0+ system. For modern tag properties, see the Tag Properties page.
Values (if applicable)
|Value||The value of the tag, dependent on the data type.|
0 - Int1
0 - OPC Tag
Determines the type of the tag.
A value of one is a "DB Tag", which is either a Memory Tag, Query Tag, or Expression Tag, depending on the value of the ExpressionType field.
0 - None
|Used in conjunction when the TagType is set to 1 (DB Tag), otherwise this field is ignored.|
|AccessRights||Int||0 - Read Only|
1 - Read/Write
2 - Custom
|If custom, will be defined by a Permissions Tag.|
|OPCWriteBackServer||String||Write back target for expression T ags.|
|ScaleMode||Int||0 - Off|
1 - Linear
2 - Square Root
3 - Exponential Filter
|ScaleFactor||Float||For exponential filter.|
|RawLow||Float||Defines scale range.|
0 - None
0 - Absolute
0 - None
|DriverName||String||Used for external tags.|
|ScanClass||String||The export will only include the name of the Scanclass, not the configuration of the Scanclass itself. A Scanclass with the same name needs to already exist on the Gateway that the tags are being imported to, prior to importing them.|
|PrimaryHistoryProvider||String||The history provider to use if storing history.|
0 - Absolute
0 - Discrete
How values are interpolated. 2 exists for backwards compatibility (and is equivalent to 1), but only 0 or 3 should be used in the future.
0 - System
0 - Unlimited
|HistoryMaxAge||Int||Max cycles between storage.|
The path to the parent UDT type. Used by sub-types and instances.
Although Ignition can import tags from a CSV format, Ignition does not export tags to a CSV format. Since multiple alarms can be configured per tag, the XML or JSON formats provide a much better format to allow for the tree structures needed to fully represent Ignition tags.
In this example, we exported three tags from the Motor UDT in JSON format.
- Amps - Expression tag with an Alarm and History enabled
- HI SP - Memory tag which is bound to a parameter to an OPC tag
- HOA - OPC tag
The following exported tag file is in JSON format. As you browse through the JSON file, you will see the tag properties and configuration settings for each of the three tags listed above.
Below is an example of a JSON format tag export. Descriptions on the various properties can be found on the Tag Properties page.
In this example, we exported the same three tags from our Tag Browser, that were also used in the JSON example, in XML format. As you browse through the XML file, you will see the tag properties and configuration settings for each of the same three tags.
Below is an example of an XML format tag export. Descriptions on the various properties can be found on the Tag Properties page.