Saving and reading comments in text format – KEYENCE KV Series User Manual

Page 59

Advertising
background image

Chapter 2 Editor

2-35

1

2

Saving and reading comments in text format

File

Other Format Save Comment in Text Format, File Other Format Read Comment in Text Format

Labels and comments in the ladder program being created can be saved in text
format. Comment files saved in text format can also be read.
Specify the desired comment file in the "Save As" or "Open" dialog box.

Note 1: When read is executed, the specified comments are read on the current
window. In this case, the comments in the current window are overwritten. When the
comments on the current window are required, be sure to save them in a file before
reading the specified comments.

Note 2: If the text format is different when read is executed, an error message is
displayed.

Format of a comment file in the text format
A comment file adopts the normal text format as shown below.
The extension for comment files is "txt".

Device name

Label name Comment 1 Comment 2 Comment 3

5 digits max.

8 digits max.

32 digits max.

32 digits max.

32 digits max.

Comma

Each element is delimited with a comma. When the character string is short, it
can be read even if unnecessary portions are omitted in the description.

The length of the character string is fixed as shown above when a file is saved.

The table below shows the character types and the number of characters.

When reading/saving data using other software
Comments saved in text format can be read by spreadsheet software and data base
software. Comments can also be edited by spreadsheet software and data base
software, saved in a file, and then read by the Ladder Builder for KV.
When reading or saving data using such software as described above, specify the
CSV format (in which each item is delimited with comma).

Example

When Microsoft Excel Ver. 5.0 spreadsheet software is used

When reading data

Select a text file (*.prn, *.txt or *.csv) in "File Type" in the "Open File" dialog box.
Next, select "Data delimited into each field by delimiters such as comma and tab" in
"Data Format" in "Text File Wizard". Select "Comma" in "String Delimiter". Select
"No" in "Character String Quotation Mark".

When saving data

Select "CSV (delimited with comma)" in "File Type" in the "Save As" dialog box.
Select "*.txt" which can be read by the ladder buffer for KV as the extension of the
file.

Label name

Letters. 8 characters maximum.
Space and comma cannot be entered.

Comment 1

Comment 2

32 characters maximum

Comment 3

,

,

,

,

,

KVSKA Chap 02.P65

08.3.11, 11:28 AM

35

Advertising