Tag Comment

<< 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.

 

c_tag_0109

 

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".

 

c_tag_0110

 

After registering the unit, add the F01 folder and add two tags, T01 and T02.

 

■U01.F01.T01 settings

 

c_tag_0111

 

Enter the comment as "Comment 1".

 

 

 

c_tag_0112

 

 

 

 

 

 

■U01.F01.T02 settings

 

c_tag_0113

 

Enter the comment as "Comment 2".

 

 

 

c_tag_0114

 

 

 

 

 

 

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".

 

c_tag_0115

 

 

hint

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.

 

c_tag_0116

 

 

Select "Search by tag name" from the key type and click the Done button.

 

c_tag_0117

 

 

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

 

c_tag_0118

 

The comment for T01 has been updated to "Comment1-1".

 

 

 

■U01.F01.T02

 

c_tag_0119

 

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.

 
c_tag_0120

 

Import file setting example)

T01,Comment1-1

T02,Comment1-2

 

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.

 
c_tag_0122 

 
Import file setting example)

X000000.BIN16,Comment2-2

D000000.BCD16,Comment2-2

 

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.
 

c_tag_0121

 
Import file setting example)

X000000,comment3-1

D000000,comment3-2

 

Please refer to the sample import file: tagcomment03.csv.

 

 

 

 

hint

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.

 

c_tag_0123