<< Click to Display Table of Contents >> Manual > Server Creation Guide > Tag Edition > Function Explanation > Tag Comment |
About tag comments
You can add any comment to the tag.
Furthermore, while it is possible to register tag comments one by one, it is also possible to set or clear them all at once by importing an external file.
Download the sample
This is a sample for bulk registering tag comments.
An example of this feature is available below.
Configuration file: sample01.txt
Import file: TagComment01~03.csv
Procedure for setting tag comments in bulk
Below are the steps to bulk set tag comments using the above sample.
1.Define tags
As an example, we will use "Mitsubishi (public)" - "Ethernet" - "MELSEC-Q/QnU/QnUDE/L Access Station 1".
After registering the unit, add the F01 folder and add two tags, T01 and T02.
■U01.F01.T01 settings
Enter the comment as "Comment 1".
|
|
■U01.F01.T02 settings
Enter the comment as "Comment 2".
|
|
2.Importing tag comments
Right-click on the U01 unit to display the menu, and select "Import from General-purpose CSV File" from "Tag Comment".
To clear all tag comments at once, right-click the unit and select "Tag Comment" - "Clear Comments in Unit" from the menu that appears. |
In the dialog that appears, select tagcomment01.csv as the import file and click the Next button.
Select "Search by tag name" from the key type and click the Done button.
3.Check that the tag comment has been updated
View the tag properties and notice that the comments have been overwritten with the contents of the import file.
■U01.F01.T01
The comment for T01 has been updated to "Comment1-1".
|
■U01.F01.T02
The comment for T02 has been updated to "Comment1-2".
|
Function Description
The import file format is as follows:
[Keyword 1], [Comment 1] [Keyword 2], [Comment 2] ... |
example)
T01,Comment1-1 T02,Comment1-2 |
When importing tag comments, select the key type to identify the tag to be updated.
The keywords you can use here are:
Search by tag name |
If you set a tag name as a keyword, the comments for the tag that matches the tag name specified in the keyword will be updated.
Import file setting example)
Please refer to the sample import file: tagcomment01.csv.
|
|
Search by parameter string |
By setting a tag parameter to a keyword, if a tag with the corresponding parameter exists, the comment for that tag will be updated. In addition, when setting the key column, you can select whether to compare it with the parameter string and perform an exact match or a partial match.
Please refer to the sample import file: tagcomment02.csv.
|
|
Search by address |
By setting a tag address as a keyword, if a tag with that address exists, the comment for that tag will be updated.
Please refer to the sample import file: tagcomment03.csv.
|
The format of the import file can be freely changed. If you have changed the format, please change the settings when importing to match the changed file format.
|