Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 10 of 12

Visual KV Series User's Manual 2: Support Software, pages 81 to 90

Pages 81 to 90 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 81

Chapter 2 Editor

2.7

Jump, Search, and Replace This section describes how to jump to any position in a ladder diagram, search for an instruction word/operand, and replace operands or N.O./N.C. contacts.

2.7.1

Jump The edit control can jump to any position by specifying the desired line number or step number of the program. The edit control can also be jumped to the first or last line. Use the jump function to quickly change the edit position.

2

Jump to the specified line/step Edit ➔ Jump ➔ Line/Step No.

To jump to another position by specifying the desired line number or step number of the ladder program, perform the following procedure. 1. Select "Edit", "Jump," and "Line/Step No." from the menu. You can also enter the desired line number or step number directly from the keyboard. The "Jump to Specified Line" dialog box is displayed. 2. Specify the line number or step number as the jump destination. When a line number or step number is entered from the keyboard in step 1, it is already specified.

3. Click the [Line] button when jumping the edit control by specifying a line number. Click the [Step] button when jumping the edit control by specifying a step number. Click the [Cancel] button to cancel jumping. The specified line or step is displayed, and the cursor is moved to the specified line or step. Note: When a number larger than the last line or step number is selected, the last line or step is displayed.

2-58

Page 82

Chapter 2 Editor

Jump to the first/last line Edit ➔ Jump ➔ Top (Ctrl + Home) ➔ Bottom (Ctrl + End)

To jump to the first line or the last line of a ladder diagram, perform the following procedure. ■ When jumping to the first line Select "Edit", "Jump" and "Top" from the menu. ■ When jumping to the last line Select "Edit", "Jump" and "Bottom " from the menu.

12

Jump to the registered line Edit ➔ Jump ➔ Line Registration (Ctrl + L) ➔ Registered Line (Ctrl + J)

The desired lines can be temporarily registered together with comments, and the edit control can be jumped by specifying the jump destination from the registered line list. This function is useful when a jump to the same line is performed many times or when the line number does not help you recognize the line. ■ Registering lines Register lines using the following procedure. 1. Place the cursor in the line to be registered. 2. Select "Edit", "Jump" and "Line Registration" from the menu. The "Line Registration" dialog box is displayed. 3. Enter the desired comment for the line to be registered into "Comment" if necessary. When registering the same comment for another line, change "Line No." to the line number to be registered. Up to 70 characters can be entered.

2-59

Page 83

Chapter 2 Editor 4. Click the [Register] button when registering the specified line. Click the [Cancel] button to cancel registration. The specified line is registered. Note: Up to 32 lines can be registered. When the number of registered lines exceeds 32, lines are deleted beginning at the oldest one. ■ Jump to a registered line To jump to a registered line, perform the following procedure.

2

1. Select "Edit", "Jump" and "Registered Line" from the menu. The "Jump to Registered Line" dialog box is displayed.

2. Position the pointer over the jump destination line in the line No./comment list displayed, and then click it. Double-click it to jump immediately. 3. Click the [Jump] button. To cancel jumping, click the [Cancel] button. The specified line is displayed, and the cursor is moved to the specified line. ■ Deleting a registered line Place the cursor in the line to be deleted in the "Jump to Registered Line" dialog box, and click the [Delete Registration] button. The specified line is deleted. Note 1: Set registration for each ladder program window. Note 2: When a file is saved, data on registered lines is also saved. Note 3: When data is saved by the KV IncrediWare (DOS), registration becomes invalid.

2-60

Page 84

Chapter 2 Editor

Jump to the next/previous block Edit ➔ Jump ➔ Next Block (Ctrl + DOWN) ➔ Previous Block (Ctrl + UP)

To jump to the next circuit block or to the previous circuit block from the current cursor position, perform the following procedure. ■ Jump to the next circuit block • Select "Edit", "Jump" and "Next Block" from the menu. • Press the DOWN key while pressing and holding the Ctrl key.

12

Note: Jump from a comment line to the next circuit block is disabled. ■ Jump to the previous circuit block • Select "Edit", "Jump" and "Previous Block" from the menu. • Press the UP key while pressing and holding the Ctrl key.

Jump to the beginning/end of the line Edit ➔ Jump ➔ Beginning of Line (Home) ➔ End of Line (End)

To jump to the beginning or end of the line in which the cursor is currently placed, perform the following procedure. ■ Jump to the beginning of a line • Select "Edit", "Jump" and "Beginning of Line" from the menu. •

Press the Home key.

■ Jump to the end of a line • Select "Edit", "Jump" and "End of Line" from the menu. •

Press the End key.

2-61

Page 85

Chapter 2 Editor

2.7.2

Searching for instruction words/operands

Edit ➔ Find (Ctrl + F)

To search for an instruction and a device in a program by specifying an instruction word or operand, perform the following procedure. 1. Select "Edit" and "Find" from the menu. Or click the button.

The "Find Instruction" dialog box is displayed.

2

2. Enter an instruction word to be found into the "Instruction Word" text box. Enter an operand to be found into the "Operand" text box. You can also search for either one alone.

Note 1: When searching for a timer instruction, counter instruction or high-speed counter instruction, specify "TMR", "CTC", etc. as the instruction word to be found and "T0", "C0" , etc. as the operand to be found. Note 2: When two or more operands are used, specify both the instruction and the operand to be found. 3. Select the search direction. Forward: Searches forward from the current cursor position. Backward: Searches backward from the current cursor position. 4. Click the [Search Next] button. Search is started, and the first block found containing the instruction or operand is displayed. When the specified instruction word or operand is not found, the message "Can’t find specified symbol." is displayed.

5. When searching continuously, click the [Search Next] button. To stop searching, click the [Cancel] button. Note 1: Two or more search windows can be opened. Note 2: Search is executed for the current ladder window. Because the search condition remains valid even after the current ladder window is changed, the same condition can be used for searching a different ladder window.

2-62

Page 86

Chapter 2 Editor

2.7.3

Searching for the device at the cursor position

Edit ➔ Find Device at Cursor Position in Ladder ➔ Search Backward (U) (F2) ➔ Search Forward (F3) ➔ Search for OUT Backward (Shift + F2) ➔ Search for OUT Forward (Shift + F3)

To search for the device equivalent to the device at the current cursor position, perform the following procedure. 1. Place the cursor in the device to be found.

12

2. Select "Find Device at Cursor Position in Ladder" from the "Edit" menu.

3. Select the search direction. Search Backward : Searches backward from the current cursor position. Search Forward : Searches forward from the current cursor position. Search for OUT Backward : Searches for OUT backward from the current cursor position. Search for OUT Forward : Searches for OUT forward from the current cursor position. 4. Search is started, and the first device found is displayed.

5. When searching continuously, repeat steps 2 to 4 above.

2-63

Page 87

Chapter 2 Editor

2.7.4

Replacing operands

Edit ➔ Replace Operand (Ctrl + R)

When replacing an operand by specifying the replacement range and the replacement width, perform the following procedure. 1. Select "Replace Operand" from the "Edit" menu, or click the button.

The "Replace Operand" dialog box is displayed.

2

2. Enter the operand before replacement into the "Before Replacement" text box. Enter the operand after replacement into the "After Replacement" text box.

3. Enter the replacement width.

What is the replacement width? The replacement width indicates how many operands are to be treated as the replacement target. For example, when "3" is set while replacing "3000" with "0500", "3000" to "3002" will be replaced with "0500" to "0502". 4. Specify the replacement range using the line number. By default, all the lines are replaced (from the first line to the last line). 5. Specify the replacement method. Add a check mark to the desired method by clicking it. Replace All without Check

The message to confirm execution of replacement is not displayed at all.

Show Can’t Replace Message

For an operand which cannot be replaced, the mes sage is displayed.

Move Comment and Label

The comment and the label attached to the operand before replacement are attached to the operand after replacement.

6. To execute replacement, click the [OK] button. To cancel replacement, click the [Cancel] button. The operand set to the "Before Replacement" text box is indicated with the grey cursor, and the confirmation message "Replace this operand?" is displayed.

2-64

Page 88

Chapter 2 Editor 7. Click the [Yes] button to execute replacement. Click the [No] button not to execute replacement. Click the [Cancel] button to cancel replacement. The operand indicated with the brown cursor is replaced with the operand set to the "After Replacement" text box.

12

Note 1: When "Replace All without Check" is selected, the confirmation message is not displayed. Note 2: When "Move Comment and Label" is selected, all the comments of the devices in the set range are replaced. For example, when "0000" is replaced with "0010", the "0000" comment is deleted, and the "0010" comment replaces it. 8. When all replacements are complete, the number of operands replaced is displayed. Click the [OK] button.

2.7.5

Converting a/b contacts

Edit ➔ Convert a-b (N.O.-N.C.) Contacts (Ctrl + A)

To convert an a (N.O.) contact into a b (N.C.) contact or to convert a b (N.C.) contact into an a (N.O.) contact, perform the following procedure. 1. Select "Convert a-b (N.O.-N.C.) Contacts" from the "Edit" menu. The "Convert a-b (N.O.-N.C.) Contacts" dialog box is displayed. 2. Enter the operand to be converted. Click "Convert All without Check" to attach the check mark so that the message to confirm execution of conversion is not displayed.

2-65

Page 89

Chapter 2 Editor 3. To execute conversion, click the [OK] button. To cancel conversion, click the [Cancel] button. The specified operand is indicated with the grey cursor, and the confirmation message "Covert this contact?" is displayed.

2

Note : When "Convert All without Check" is selected, the confirmation message is not displayed. 4. Click the [Yes] button to execute conversion. Click the [No] button not to execute conversion. Click the [Cancel] button to cancel conversion. The a (N.O.) contact is converted into a b (N.C.) contact. The b contact is converted into an a contact.

5 When all conversions are complete, the number of contacts converted is displayed. Click the [OK] button.

2-66

Page 90

Chapter 2 Editor

2.8

Editing the Mnemonic List This section describes how to display each block of circuit in a ladder diagram as a mnemonic list, and how to edit the mnemonic language directly.

2.8.1

Displaying and terminating a mnemonic list

Displaying a mnemonic list Edit ➔ Edit List

To display mnemonic lists by specifying blocks and to enter symbols by editing mnemonic lists, perform the following procedure. 1. Place the cursor in the block for which a mnemonic list is to be displayed or in which the edit contents of the mnemonic list are to be inserted/replaced. In the case of insertion, the edit contents are inserted above the cursor line.

2. Select "Edit List" from the "Edit" menu, or click the button.

The mnemonic list of the block at the cursor position is displayed on the list edit window.

The mnemonic language can be directly edited on this screen. For a compiled block, step numbers are displayed. When entering a new mnemonic, a step number and comment do not have to be entered. ➮ For the compilation procedure, refer to "2.12 Compilation" on page 2-75.

2-67

12