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

The text of a manual · part 8 of 12

Visual KV Series User's Manual 2: Support Software, pages 61 to 70

Pages 61 to 70 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 61

Chapter 2 Editor

Entering symbols by selection Edit ➔ Symbol Input ➔ Symbol Selective Input (Tab)

When the desired instruction word type is selected on the "Enter Instruction Word" window, instruction codes available for the selected instruction word can be selected from the list. As well, a device can be specified for each operand. If you are not familiar with creation of ladder programs and handling of instruction words, it is recommended that you enter symbols from the "Enter Instruction Word" window to ensure they are correct. To open the "Enter Instruction Word" window, select "Edit", "Symbol Input" and "Symbol Selective Input" from the menu. In addition, the following two methods are also available. These two methods offer quicker operation.

2

Place the mouse cursor in the cell in the ladder diagram to which an instruction word is to be entered, and double-click it. Select the desired cell using the LEFT, RIGHT, UP and DOWN keys, and then press the Tab key.

Note: When an instruction word has already been entered in the selected cell, it is opened in the edit mode. ■ Setting the "Enter Instruction Word" window Radio button

Sequence selection

2-38

Page 62

Chapter 2 Editor 1. Select the desired instruction word type from "Instruction Type" located in the right portion of the window. Click the desired radio button. 2. Select the desired instruction word from the "Instruction Word" list. When selecting an instruction word to be executed only once at the ON signal, click the "Execute Once at ON" check box to add the check mark, and then select the desired instruction word.

12

Instruction words and their types Instruction word type

Instruction word Executed only once at the ON signal

Basic Instructions

LD, LDB, AND, ANB, OR, ORB, ANL, ORL, OUT. OUB, SET, RES, TMR, TMH, TMS, C, UDC, DIFU, DIFD, KEEP, SFT, HSP, MC, MCR, MEMSW, END, ENDH

Application Instructions

W-ON, W-OFF, W-UE, W-DE, STG, JMP, ENDS, STP, SET, ITVL, CTH, CTC, CALL, SBN, RET, FOR, NEXT, HKEY

Arithmetic Instructions

DW, TMIN, LDA, STA, CMP, ADD, SUB, MUL, DIV, ANDA, ORA, EORA, SRA, SLA, RRA, RLA, COM, INC, DEC, MPX, DMX, TBCD, TBIN, ASC, RASC, ROOT

Interrupt Instructions

DI, EI, INT, RETI

@TMIN, @LDA, @STA, @CMP, @ADD, @SUB, @MUL, @DIV, @ANDA, @ORA, @EORA, @SRA, @SLA, @RRA, @RLA, @COM, @INC, @DEC, @MPX, @DMX, @TBCD, @TBIN, @ASC, @RASC, @ROOT

2-39

Page 63

Chapter 2 Editor 3. Specify a device for each operand. Click the button to display the device type list. Select the desired device type from this list, and enter the corresponding number directly.

2

4. When setup is complete, click the [OK] or [Insert] button. [OK] : Overwrites a ladder symbol. [Insert] : Inserts a ladder symbol in the cursor position. [Cancel] : Cancels the setting entered, and closes the window. 5. The selected ladder symbol is entered. When a symbol has already been entered in the position, it is replaced with the new symbol selected.

Example When the relay 2008 is entered

LD Relay 2008

▲

2-40

Page 64

Chapter 2 Editor

Entering symbols directly Edit ➔ Symbol Input ➔ Symbol Direct Input (Enter)

Instruction words can also be directly entered. When you are familiar with creation of ladder programs and handling of instruction words, direct input is recommended because it is quicker and more efficient than input through the "Enter Instruction Word" window. To open the dialog box for directly entering instruction words, select "Edit", "Symbol Input" and "Direct Symbol Input" from the menu. The following two methods are also available for quicker operation. Select the desired cell using the LEFT, RIGHT, UP and DOWN keys, and then enter the first character of the instruction word to be entered. You can also press the ENTER key when changing an existing input. The dialog box is opened in which the first character is displayed.

Example When "A" is entered

■ Entering symbols in the direct input dialog box 1. Enter an instruction word directly from the keyboard into the text box.

→

Note 1: Enter an instruction word in mnemonic format, and enter a space between the instruction word and the device name. LD 0001 Note 2: For LD and LDB, "A" and "B" can be entered instead respectively. LD 0001 → A 0001 LDB 0001 → B 0001 2. When input is complete, click the [OK] or [Ins] button. [OK] : Overwrites the existing ladder symbol. [Ins] : Inserts the ladder symbol entered in the cursor position. [Cancel] : Cancels the setting entered, and closes the window. 3. The ladder symbol is entered.

2-41

12

Page 65

Chapter 2 Editor

2.4.2

Deleting symbols

Edit ➔ Symbol Input ➔ Delete Symbol (Delete)

To delete a symbol, place the cursor in the symbol to be deleted, click it, and then perform either of the following operations. (This procedure is equivalent in principle to the character deletion procedure.) • •

2 2.4.3

Press the space bar. Press the Delete key. (When the Backspace key is pressed, the symbol just before the cursor is deleted.)

Entering contacts/coils directly Enter a contact or coil directly in the current cursor position.

Entering a/b contacts Edit ➔ Symbol Input ➔ a (N.O.) Contact Input (F5) ➔ b (N.C.) Contact Input (Shift + F5) ➔ a (N.O.) Contact OR Input (F4) ➔ b (N.C.) Contact OR Input (Shift + F4)

To enter a contact, perform the following procedure. 1. Place the cursor in the input position. 2. Select "Symbol Input" from the "Edit" menu, and select the contact type to be entered from the submenu. The corresponding function key can be pressed instead or the corresponding icon can be clicked. • The "Change Device" dialog box is displayed. When entering an a contact: a (N.O.) Contact Input When entering a b contact b (N.C.) Contact Input When entering an a contact OR a (N.O.) Contact OR Input When entering a b contact OR b (N.C.) Contact OR Input

(F5) key button

(Shift + F5) keys button

(F4) key button

(Shift + F4) keys button

3. Enter a device name directly from the keyboard into the text box.

4. When input is complete, click the [OK] button. When the [Cancel] button is clicked, the setting entered is canceled and the dialog box is closed. 5. The ladder symbol is entered.

2-42

Page 66

Chapter 2 Editor

Entering coils Edit ➔ Symbol Input ➔ Coil Input (F7) ➔ b (N.C.) Contact Coil Input (Shift +F7)

To enter a coil, perform the following procedure. 1. Place the cursor in the input line. 2. Select "Symbol Input" from the "Edit" menu, and select the coil type to be entered from the submenu. The corresponding function key can be pressed instead or the corresponding icon can be clicked. • The "Change Device" dialog box is displayed. When entering a coil

: Coil Input

F7 key

When entering the b contact coil

: Coil Input

Shift + F7 keys button button

3. Enter a device name directly from the keyboard into the text box.

4. When input is complete, click the [OK] button. When the [Cancel] button is clicked, the setting entered is canceled and the dialog box is closed. 5 The ladder symbol is entered.

2.4.4

Changing the device at the current cursor position

Edit ➔ Change Device at Cursor Position (Esc) ★ Right-click

To change the device at the current cursor position, perform the following procedure. 1. Place the cursor in the device to be changed. 2. Select "Change Device at Current Position" from the "Edit" menu or right-click menu or press the Esc key. The "Change Device" dialog box is displayed. 3. Enter a device name directly from the keyboard into the text box.

4. When input is complete, click the [OK] button. When the [Cancel] button is clicked, the setting entered is canceled and the dialog box is closed. 5. The device is changed.

2-43

12

Page 67

Chapter 2 Editor

2.4.5

Entering/Deleting connection lines

Edit ➔ Edit Connection Line (Ctrl + K + \)

Entering connection lines The following two methods can be used to enter connection lines. ■ Pressing the keys or clicking the icon (F8) + (/) (slash key) or

2

(F9) + (-) (minus key) or

:

Draws a connection line downward from the cursor position. : Draws a connection line to the right of the cursor position.

■ Using the mouse and cursor control keys in connection line edit mode To draw connection lines using the mouse, first change the input mode. The following four methods can be used to change the mode. • Select "Edit Connection Line" from the menu displayed by right-clicking. •

Select "Edit Connection Line" from the "Edit" menu.

•

Press the Ctrl and K keys at the same time.

•

Press the \ key.

When connection line edit mode is selected, the cursor shape is changed as follows.

To return to the normal edit mode, perform this procedure again. 1. Place the mouse cursor at the desired connection line start position. When using the keyboard, press the ENTER key. 2. While pressing and holding the left mouse button, move the mouse cursor in the desired direction (drag). When using the keyboard, press either the LEFT, RIGHT, UP or DOWN key. 3. Release the button at the desired connection line end position. When using the keyboard, press the [ENTER] key again. (If the [Delete] key is pressed, the connection line is deleted.)

2-44

Page 68

Chapter 2 Editor

Deleting connection lines To delete a connection line, press the Delete key while dragging the connection line to be deleted in connection line edit mode. The following procedures are also available to delete connection lines. ■ When deleting a vertical connection line • Press the Shift and F8 keys at the same time. •

While dragging the connection line to be deleted in connection line edit mode, press the Shift key and release the left mouse button at the same time.

•

Click the button.

■ When deleting a horizontal connection line • Press the space bar. • Press the Backspace key. (The connection line just before the cursor is deleted.) • Press the Delete key. • While dragging the connection line to be deleted in connection line edit mode, press the Shift key and release the left mouse button at the same time. • Click the

2.4.6 button.

Canceling edit operations

Canceling an edit operation (UNDO) Edit ➔ Undo (Ctrl + Z)

The last edit operation (input, move or copy of a symbol) that was performed can be canceled, and the previous status can be recovered. When the last edit operation is unrecoverable and the undo operation is disabled, the selection item "Undo" is shown in a lighter color to indicate the selection is disabled. ■ Unrecoverable operations • Replacement of operands •

Conversion of N.O./N.C. contacts

•

Read/save of programs, mnemonic files, etc.

•

Change of labels or comments

•

Input of macros

Canceling an undo operation (REDO) Edit ➔ Redo (Ctrl + Y)

The last undo operation that was performed can be canceled. When the last undo operation cannot be canceled, the selection item "Redo" is shown in a lighter color to indicate the selection is disabled.

2-45

12

Page 69

Chapter 2 Editor

2.5

Entering Comments/Labels This section describes how to enter comments/labels to contacts, how to change these comments/labels, and how to enter/change line comments.

2.5.1

Editing comments/labels The label name, comment 1, comment 2, and comment 3 can be entered for a contact. Comments are entered so that the contents of a contact can be easily deduced when editing a ladder diagram. Comments are displayed in the ladder diagram monitor, the simulator and the monitor.

2

Manipulate the "Edit Comment/Label" dialog box. This dialog box is displayed for each device type, and allows you to edit two or more comments at a time. The label name and comment can also be changed by selecting the device to be changed in the ladder diagram. ➮ Making changes directly in the ladder diagram (p. 2-49)

The comment/label edit method is described below. Note: The comment 2 and comment 3 files are dedicated to the Ladder Builder for KV. When the comment is to be shared with the KV IncrediWare (DOS), use comment 1.

Editing the list for each device Comment ➔ Edit Comment/Label (Ctrl + F7)

1. Select "Edit Comment/Label" from the "Comment" menu, or click the button.

The "Edit Comment/Label" dialog box is displayed. The relays 0000 to 0415 are displayed by default.

Reading device selection area

Label/comment input area

Device list display area

The "*" symbol is displayed beside devices used in the ladder diagram. 2. Select the device to be edited in the "Reading Device" area. 3. Specify the device range to be displayed in the list in the "Device Range" area.

2-46

Page 70

Chapter 2 Editor 4. Click and select the device for which a label/comment is to be edited, and then click the [Edit] button. (Or the desired device displayed in the list can be clicked and selected.) When using the keyboard, select the desired device using the UP and DOWN keys, and press the ENTER key. The cursor is displayed in "Label Name" in the label/comment input area so that characters can be entered. 5. Enter or change the label/comment. A label/comment can be copied from or exchanged with another device.

•

The table below shows the available character types and the maximum number of characters allowed. Label name

Alphabet. 8 characters maximum. Spaces and commas cannot be entered.

Comment 1

32 characters maximum (This comment is compatible with KV IncrediWare (DOS) relay comments.)

Comment 2

32 characters maximum

Comment 3

32 characters maximum

To register basic relays, click the [Register Basic Relay] button in the "Edit Comment/Label" dialog box, and then enter the basic relays of the model used into comment 1. 6. When input is complete, click the [Write] button. To close the "Edit Comment/Label" dialog box, click the [Exit] button. The label/comment is entered.

To display labels/comments, select the "View" menu. When the submenu is displayed, select "Show Label" or "Show Comment". ➮ For the method to specify the comment to be displayed, refer to the display mode (p. 2-19).

Note: A label name can be used instead of a device name when entering, searching for or replacing a symbol. For example, when the label "SW1" is attached to the device "0000", the program can be written as follows. Instead of entering "0000" : SW1 Instead of entering "LD0000" LD: SW1 Labels cannot be entered in the instruction selection window.

2-47

12