The text of a manual · part 7 of 12
Visual KV Series User's Manual 2: Support Software, pages 51 to 60
Pages 51 to 60 of 105
The original document is the PDF (910 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Keyence KV-16R
Page 51
Chapter 2 Editor
2.2.2
Ladder program window screen Contact
Line No. Step No. Cursor Scroll bar
2
•
Use the scroll bar or the cursor control keys ([LEFT] [RIGHT] [UP] [DOWN]) to look at the hidden (undisplayed) portion.
■ Moving the cursor LEFT/RIGHT/UP/DOWN keys Pageup/PageDown keys Ctrl + UP/DOWN keys Home key End key
: Move the cursor in the corresponding direction. : Move the cursor up or down one page (screen). : Move the cursor by one block. : Move the cursor to the first line. : Move the cursor to the last line.
■ When dividing the screen into two windows When the pointer is placed between the bottom of the scroll bar and the window frame, the pointer is changed into " ". (While the pointer shape is " ", the window size can be changed but the screen cannot be divided.) When the left button is pressed and held and moved upward in this status, the screen is divided into the upper and lower windows. Different contents can be displayed in each window. When the "Edit" menu is selected and you click "Link Screens" so that the check mark is added, these two windows can be scrolled while interlocking each other. This function is convenient when viewing a long ladder line all at once. To switch the active window between the upper and lower windows, click the mouse on the desired window or press the [Shift] and [F6] keys at the same time.
Note: While the pointer shape is " ", the window size can be changed but the screen cannot be divided.
2-28
Page 52
Chapter 2 Editor
2.3
File Management This section describes how to create a new ladder program and how to read/save the ladder program file, code file, comment file and mnemonic list file.
2.3.1
Creating a new file
File ➔ New
When creating a new ladder program, first create a new file. When the Ladder Builder for KV is started up for the first time, the ladder program window is not initially displayed. When creating a new ladder program, perform the following procedure. Select "New" from the "File" menu, or click . • Select the target model for which a ladder program is to be created.
•
A new ladder program window is open.
Note 1: When you finish editing a newly created file, be sure to save it. Note 2: If the model is specified as "KV-10(16)A/D" or "KV-24(40)A/D", created ladder diagrams cannot be opened with Ladder Builder for KV Ver 1.0 or KV IncrediWare (DOS). To use ladder diagrams with either of these programs, specify the model as "KV-300". ■ File name of a ladder program The ladder program file name is unique in the Ladder Builder for KV. The file extension is "ldr". Ladder programs can be shared with the KV IncrediWare (DOS).
2-29
12
Page 53
Chapter 2 Editor
2.3.2
Setting the automatic file read function
File ➔ Auto Read
Specify the file to be automatically read when the software is started up. This function is convenient when the same file is always required to be read at startup. Up to 16 files can be specified for the automatic read function. The setup and cancellation procedures are described below. ■ Setting the automatic file read function 1. Set the ladder program window to be automatically read as the current window.
2
2. Select "Auto Read" from the "File" menu. 3. The message "Set this file for auto read?" is displayed. To set it for the automatic file read function, click the [Yes] button. The specified file is set for the automatic file read function. The next time you start up the Ladder Builder for KV, this file is automatically read.
4. To specify another file, repeat steps 1 to 3 above. ■ Canceling the automatic file read function 1. Set the file set for the automatic read function as the current window. Select "Auto Read" from the "File" menu. 2. The message "Cancel auto read?" is displayed. To cancel the setting of the automatic read function, click the [Yes] button.
Note 1: A file not yet saved cannot be selected for the automatic file read function. Save the file before selecting it. Note 2: When the number of files specified for the automatic file read function exceeds 16, the alarm message is displayed.
2-30
Page 54
Chapter 2 Editor
2.3.3
Setting automatic file save for the file
File ➔ Set Auto Save
Temporary copies of the ladder diagram, comments and labels are automatically saved at constant intervals while you are working on the file. When the automatic file save function is set, the file is automatically copied for a temporary save at the specified interval. This will minimize the damage caused by power interruptions or other accidents that may occur before you save the file. The setup and cancellation procedures are described below.
12
■ Setting the automatic file save function 1. Select "Set Auto Save" from the "File" menu. 2. The "Set Auto Save" dialog box is opened. Click "Auto Save" to add the check mark, and then enter the time interval for automatic save.
•
The automatic file save function is set to every 5 minutes by default.
3. Click the [OK] button. ■ Canceling the automatic save function 1. Select "Set Auto Save" from the "File" menu. 2. The "Set Auto Save" dialog box is opened. Delete the check mark next to "Auto Save", and click the [OK] button. Note 1: The automatic file save function set here is applied to all the ladder program files currently open. Note 2: The file saved automatically is automatically erased when the Ladder Builder for KV is closed normally. If the Ladder Builder for KV is closed abnormally, the files saved automatically are automatically read when the Ladder Builder for KV is started up the next time.
2-31
Page 55
Chapter 2 Editor
2.3.4
Saving and reading files
Saving files File ➔ Save, File ➔ Save As
When you have finished working on a ladder program, save the file. Two methods are available for saving a file: "save (overwrite)" and "save as (save with a different name)". Select either one. is clicked, "save" is selected. When Save Save As
2
: Saves a file with the current file name. : Saves a file with a new name.
Note 1: Every time a new file is created, a number is automatically added after the extension "ldw" of the file name such as "ldw1.ldr", "ldw2.ldr", "ldw3.ldr", etc. Note 2: When "Save" is executed for a new file, "Save As" is automatically executed.
Example When saving a file with a new name 1. Select "Save As" from the "File" menu. 2. The "Change File Comment" dialog box is displayed. Enter file comments, and click the [OK] button. When file comments are not required, click the [X] button. The "Save Ladder Diagram" dialog box is displayed. The file comment is also displayed when the file is selected in the KV-Ladder (DOS version). 3. Specify the folder (directory) to which the file is to be saved, and enter the file name.
Folder (directory)
Select the folder (directory) in which the file is to be saved. The current folder (directory) is selected by default.
File Name
Enter the file name consisting of up to 8 characters. The extension is set to "ldr". Never change the extension.
File Type
"Ladder diagram (*.ldr)" is selected. Do not change this setting.
4. Click the [OK] button. The file is saved with the specified file name.
2-32
Page 56
Chapter 2 Editor
Reading files File ➔ Open
When editing an existing file, select and read the file to be edited. 1. Select "Open" from the "File" menu. The "Open" dialog box is displayed. 2. Specify the folder (directory) in which the file to be read is saved, and select the file name.
12
Folder (directory)
Select the folder (directory) in which the file to be read is saved. The current folder (directory) is selected by default.
File Name
Specify the file name to be read. The extension is "ldr".
File Type
"Ladder diagram (*.ldr)" is selected. Do not change this setting.
3. Click the [OK] button. The specified file is read, and the ladder program window is open.
2.3.5
Reading and saving a file in another format This section describes the method used to save and read files in any format other than the "ldr" format such as mnemonic list files, comments in other files, comment files in text format, etc. Note: This function can only be selected while the ladder program window is selected. Display the ladder program window by selecting "New" from the "File" menu, and then select "Other Format".
Saving and reading a mnemonic list File ➔ Other Format ➔ Save Mnemonic List, File ➔ Other Format ➔ Read Mnemonic List
The ladder program being created can be saved as a mnemonic list (text format). Saved mnemonic lists (text format) can also be read. Specify the desired mnemonic list file in the "Save As" or "Open" dialog box. Note: When read is executed, the specified mnemonic list file is read on the current window. In this case, the ladder program in the current window is erased. When the ladder program on the current window is required, be sure to save it in a file before reading the mnemonic list. ■ File name of a mnemonic list A mnemonic list file adopts the normal text format. The extension of a mnemonic file is "mnm".
2-33
Page 57
Chapter 2 Editor
Reading comments in other files File ➔ Other Format ➔ Read Other File Comment
Only comments can be read from other ladder program files. In the "Open" dialog box, specify the file in which the comments to be read are saved. 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 comments from another file. Note 2: This function extracts only comments from a ladder program. This function does not read the entire ladder diagram.
2
■ File name of a contact comment file The extension for each comment file is shown below. Comment 1: rcm Comment 2: cm2 Comment 3: cm3
2-34
Page 58
Chapter 2 Editor
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
1 Comment 2 Comment 3 , Label name Comment , , ,
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. Label name
Letters. 8 characters maximum. Space and comma cannot be entered.
Comment 1 Comment 2
32 characters maximum
Comment 3
■ 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.
2-35
12
Page 59
Chapter 2 Editor
2.3.6
Saving a ladder diagram in text format
File ➔ Other Format ➔ Save Ladder Diagram in Text Format
The ladder program being created can be saved in text format. When the "Save As" dialog box is opened, enter the file name, and save it.
Example This is useful when reading a ladder diagram saved in text format to a word processor software, and then reformatting it. Use "Notepad" provided as a WINDOWS accessory.
2 2.3.7
Verifying files
File ➔ File-Verify File
The ladder diagram in the editor can be verified against the contents of the ladder program saved in the personal computer. For verification, perform the following procedure. 1. Select "File-Verify File" from the "File" menu. The "Open File" dialog box is displayed. 2. Select the verification source file, and click the [OK] button. 3. If a difference is detected, the message "Verification error" is displayed. Click the [OK] button. The error list is displayed. 4. Select the desired verification error, and click the [JUMP] button. The cursor is moved to the location at which the verification error has occurred in the ladder diagram in the editor.
2-36
Page 60
Chapter 2 Editor
2.4
Entering/Deleting Symbols and Connection Lines This section describes how to enter/delete symbols and connection lines to/from a ladder diagram.
2.4.1
Entering symbols A ladder symbol is automatically entered when an instruction word is specified. An instruction word can be entered using either of the following two methods. In the first method, you can select the desired instruction word type and the desired instruction word code from the "Enter Instruction Word" window. In the second method, you can directly enter the desired instruction word from the dialog box displayed when the first character of the desired instruction word is entered. Or you can enter an a (N.O.) contact, a b (N.C.) contact, an a (N.O.) contact OR, a b (N.C.) contact OR, or a coil in the current cursor position. ➮ 2.4.3 Entering contacts/coils directly (p. 2-42)
•
Selective input
•
Direct input ➮ p. 2-41
2-37
12