96M0365 INDEX 1 2 3 Installation Support Software Programming 1. Configuration and Specifications 2. System Installation 3. Access Window 1. Programming 1. Introduction 2. Instructions 2. Editor 3. Interrupts 4. High-speed Counters 4. Monitor 5. Positioning Control 5. KV-10/80 Hardware 5. Appendices 6. Interrupts, High-speed Counters, Positioning Control 6. Handheld Programmer 7. Serial Communication 7. KV-L2 Serial Interface Module 8. Programming Examples 8.
WARRANTIES AND DISCLAIMERS: Safety Precautions This instruction manual describes the operation and function of the KV Series PLC. Read this manual carefully to ensure safe use and maximum performance from your KV Series PLC. Symbols The following symbols alert you to important messages. Be sure to read these messages carefully. Failure to follow instructions may lead to injury. (electric WARNING shock, burn, etc.) CAUTION Note: Failure to follow instructions may lead to product damage.
Note to User When using the Visual KV Series in the following conditions or environments, be sure to use the Visual KV Series with sufficient margin regarding the rating and functions, take appropriate safety precautions such as fail-safe, and contact our sales personnel if any questions arise.
Features of the Visual KV Series ● Extremely small The Visual KV Series is the smallest in the world among AC type PLCs equipped with screw terminal blocks, and saves installation space. ● Extremely fast The minimum scan time is 140 µs and minimum instruction execution time is 0.7 µs, which is the fastest control in its class. ● AC power built-in type newly added AC power built-in type units are newly added. This type can be used in small spaces where a switching power supply unit cannot be installed.
● Interrupt function The Visual KV Series is equipped with four high-speed interrupt inputs of 10 µs maximum. ● Input time constant change function The time constant can be set in 7 steps from 10 µs to 10 ms. ● Double memory backup functions In addition to a conventional SRAM battery backup function, the Visual KV Series is also equipped with an EEPROM backup function.
Cautions when using the previous version of ladder support software Pay strict attention to the following items when using the ladder support software. • • CAUTION When using the ladder support software "KV IncrediWare (DOS)" or "LADDER BUILDER for KV Ver. 1.0x", set the model to "KV-300". DM0 to DM1999 are only available. When the ladder support software "LADDER BUILDER for KV Ver. 1.0x" is used, do not use the monitor’s Change All function.
Cautions when writing in RUN mode WARNING • In the Visual KV Series, a program can be changed using the ladder support software "LADDER BUILDER for KV" even while the program is running. • Pay strict attention to safety when performing any writes in RUN mode. • The situation may become extremely dangerous depending on the status of the controller device connected to the PLC or the program used.
How this manual is organized The Visual KV Series User’s Manual is composed of 3 separate manuals; 1-Installation, 2-Support Software, 3-Programming. Please read each manual relevant to your purpose. 1 Installation Chapter 1 Configuration and Specifications [Visual KV Series Only] Describes the system configuration of the Visual KV Series, the names and functions of each part, and the specifications.
Chapter 2 Editor Describes the operating procedures in Editor mode. Chapter 3 Simulator Describes the operating procedures in Simulator mode. Chapter 4 Monitor Describes the operating procedures in Monitor mode. Appendices Includes instructions list, devices list, sample program list and quick reference for key operation and shortcuts.
Contents 2 Support software Chapter 1 Introduction 1.1 Items Included in the Package ........................................................................ 2-2 1.2 Outline of the Ladder Builder for KV .............................................................. 2-3 1.2.1 Operating environment and system configuration .............................................. 2-3 1.2.2 Features and functions of the Ladder Builder for KV ..........................................
2.7.4 Replacing operands .......................................................................................... 2-64 2.7.5 Converting a/b contacts .................................................................................... 2-65 2.8 Editing the Mnemonic List ........................................................................... 2-67 2.8.1 Displaying and terminating a mnemonic list ..................................................... 2-67 2.8.2 Copy, move, and delete .......................
4.3.2 Name and function of each part of the screen ................................................ 2-143 4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 Ladder Monitor ............................................................................................. 2-144 Outline of the ladder monitor .......................................................................... 2-144 Displaying the ladder monitor window ............................................................ 2-144 PLC error check .............
1 Installation Chapter 1 Configuration and Specifications Visual KV 1.1 System Configuration ...................................................................................... 1-2 1.1.1 System Configuration ......................................................................................... 1-2 1.2 Specifications ...................................................................................................1-4 1.2.1 General Specifications ...................................................
KV-E8T(P) [8-I/O expansion output unit (transistor output type)] .............. 1-48 KV-E16R [16-I/O expansion output unit (relay output type)] ...................... 1-49 KV-E16T(P) [16-I/O expansion input unit (transistor output)] .................... 1-50 1.9.4 Dimensions ....................................................................................................... 1-51 1.10 1.10.1 1.10.2 1.10.3 KV-E4XR/E4XT(P) (Expansion I/O Unit) .......................................................
3.4 Device Mode ...................................................................................................1-87 3.4.1 Function and Operating Procedure ................................................................... 1-87 Devices that can be displayed and changed ............................................. 1-87 Key operation and screen display .............................................................. 1-87 Selecting the device and displaying the current value/set value ................
Basic ladder programs ............................................................................. 1-136 4.3.2 Examples of Ladder Programs ....................................................................... 1-143 Example of displaying user messages ..................................................... 1-143 Example of displaying messages with titles ............................................. 1-145 Example of position control ......................................................................
6.2.1 Basic Programming Operation ........................................................................ 1-200 6.3 Functions ...................................................................................................... 1-216 Function Nos. list ..................................................................................... 1-216 ALL CLEAR .............................................................................................. 1-217 HANDHELD PROGRAMMER CLEAR ...........................
7.6.1 Operating in Display Interface Mode .............................................................. 1-270 Communications protocols ....................................................................... 1-270 Communications control procedure ......................................................... 1-271 7.6.2 Command and Response Format ................................................................... 1-273 7.6.3 Commands and Responses ................................................................
Chapter 9 KV-AD4/DA4 Analog I/O Unit 9.1 KV-10/80 Outline ......................................................................................................... 1-334 Features ................................................................................................... 1-334 9.2 Configuration ............................................................................................... 1-335 9.2.1 Part Names and Functions ........................................................................
A.2 A.3 A.4 AC power supply unit ............................................................................... 1-384 Common I/O Specifications of Basic Units ..................................................... 1-384 Input specifications .................................................................................. 1-384 Output specifications (relay output): KV-10AR/DR, KV-16AR/DR, KV-24AR/DR, and KV-40AR/DR ..............................................................
Other special utility relays .......................................................................... 3-15 1.3.9 Timers and Counters ........................................................................................ 3-18 Timer/Counter list ....................................................................................... 3-18 Description .................................................................................................3-18 1.3.10 Data Memories ....................................
4.2 Outline of High-speed Counters ................................................................. 3-206 4.2.1 High-speecÛCounters and High-speed Counter Comparators ...................... 3-206 Structure of high-speed counters and high-speed counter comparators . 3-206 Specifications of high-speed counters ..................................................... 3-208 High-speed counter comparators ............................................................. 3-209 4.2.
Direct input ............................................................................................... 3-270 6.1.2 Interrupt Instructions ....................................................................................... 3-271 6.2 Direct Clock Pulse ........................................................................................ 3-276 6.2.1 Output of Direct Clock Pulse ........................................................................... 3-276 Outline of High-Speed Counters ........
WARRANTIES AND DISCLAIMERS See 2-215. Caution • No part of this manual may be reprinted or reproduced in any form or by any means without the prior written permission of KEYENCE CORPORATION. • The content of this manual is subject to change without notice. • KEYENCE has thoroughly checked and reviewed this manual. Please contact the sales office listed at the end of this manual if you have any questions or comments regarding this manual or if you find an error.
Chapter 1 Software – Windows [KV-H6WE2] This chapter describes the items included in the package, the product outline, the method to connect a personal computer, the installation method, the common operating procedures, etc. KVSKA Chap 01.P65 1 1.1 Items Included in the Package ............................................................. 2-2 1.2 1.2.1 1.2.2 Outline of the Ladder Builder for KV ................................................... 2-3 Operating environment and system configuration .....
Chapter 1 Introduction 1.1 Items Included in the Package The following items are included in the Ladder Builder for KV package. Ensure that all the items are supplied. ● Ladder Builder for KV CD-ROM 1 ● Connection cable ➮ See page 2-7. 2-2 KVSKA Chap 01.P65 2 08.3.
Chapter 1 Introduction 1.2 Outline of the Ladder Builder for KV This section describes the operation environments, system configuration, features, functions, etc. of the Ladder Builder for KV. Be sure to read this section before using the Ladder Builder for KV. 1.2.1 Operating environment and system configuration The following operating environment is required to run the Ladder Builder for KV. Ensure that your system satisfies the following conditions and that the required equipment is provided.
Chapter 1 Introduction 1.2.2 Features and functions of the Ladder Builder for KV The Ladder Builder for KV is a software program that allows you to create sequence programs. It offers excellent functionality and advanced programming processing ability. Features of the Ladder Builder for KV ■ The multi-file edit function and simple mouse operation improve work efficiency. Because two or more files can be edited at a time, a block diagram can be cut and pasted between files.
Chapter 1 Introduction ■ Allows quick selection of the device to be monitored by dragging and dropping from the ladder diagram. The device to be monitored can be easily and quickly selected by dragging and dropping it from the ladder diagram. 1 ■ Allows quick confirmation of the ladder diagram, the contacts and the timing chart. Each of the three windows can be positioned anywhere on the screen, allowing you to simultaneously monitor and simulate the operation of the program.
Chapter 1 Introduction Functions of the Ladder Builder for KV The following functions are provided in the Ladder Builder for KV. ■ Editor function • Creates the ladder diagram using diversified instruction words of the ladder language. • Registers comments to contacts. Comments can be transferred to a Visual KV or a KV-300 (Except for KV-10/80 Series). • Converts the ladder diagram into machine code. • Displays the ladder diagram, mnemonic list, label comment and device use status list, etc.
Chapter 1 Introduction 1.3 Before Programming The personal computer should be connected to a Visual KV or a conventional KV to transfer the programs to the Visual KV or the conventional KV and to use the monitor function. Machines to be prepared 1 You must prepare the following machines before beginning programming. ■ PC • Connect it to the D-Sub 9-pin type serial port.
Chapter 1 Introduction 1.3.1 Differences from the KV IncrediWare (DOS) Because the Ladder Builder for KV is a Windows application, its specifications are slightly different from the KV IncrediWare (DOS) for MS-DOS, as listed below. • Some of the keys assigned to keyboard functions are different. ➮ Refer to “Appendix G Quick Reference” on page 2-180. 1 1.3.2 • The timing chart simulator and the timing chart monitor are provided as the registration monitor screen.
Chapter 1 Introduction 1.4 Installing the Software This section describes how to install the Ladder Builder for KV on the personal computer’s hard disk. 1.4.1 Preparation for installation Confirm the following points before installing the software. ■ Free hard disk space The Ladder Builder for KV must be installed on the hard disk. The free space required is 4.5 MB. Ensure that this space is available.
Chapter 1 Introduction 1.4.2 Installation procedure This section describes how to install the software. The installation procedure varies depending on which Windows version you are using. Refer to the section appropriate for your operating environment. Installation in Windows 95 (➮ See below) Installation in Windows 3.1 (➮ Page 2-12) 1 Installation in Windows 95 As an example, this section describes how to install the software in Windows95 using the following drive configurations.
Chapter 1 Introduction 6. Confirm the drive name and the folder (directory) name in which the software is to be installed. The default path is "C:\KEYENCE\Lbk". To install the software to this location, click the [NEXT (N)] button. To change the installation destination, click the [Reference] button and then specify the drive name and the folder (directory) name. 1 7. The file copy status graph is displayed on the screen. 8. Recent information not included in this manual is saved in the README file.
Chapter 1 Introduction Installation in Windows 3.1 As an example, this section describes how to install the software in Windows3.1 running on a DOS machine using the following drive configurations. Drive C: Hard disk drive Drive D: CD-ROM drive 1. Insert the Ladder Builder for KV CD-ROM into the CD-ROM drive. 1 2. Select "Run" and "Command Line" from the program manager menu. 3. Click [Ladder Builder for KV] in the CD-ROM drive. Next, click [disk 1] and then double-click [setup.exe].
Chapter 1 Introduction 1.6 Basic Operations This section describes what you should know before using the Ladder Builder for KV, such as the programming flow, available modes, software startup procedure, and software termination procedure. 1.6.1 Program creation flow and available modes Three modes are available in the Ladder Builder for KV. These are the editor, monitor and simulator modes.
Chapter 1 Introduction 3. Debugging the program Read the machine code created by the editor, and confirm the operation status including changes in devices. This allows errors to be detected and the ladder program to be changed accordingly. • You can use either the simulator or the monitor when debugging the program. When using the simulator, you can simulate the status in which a Visual KV or a conventional KV is connected.
Chapter 1 Introduction 1.6.2 Starting up and exiting from the software The procedures for starting up and exiting from the Ladder Builder for KV are described below. To start up the software ■ In Windows 95 Select "Program", "KEYENCE Applications" and "LADDER BUILDER for KV" from the Start menu. ■ In Windows 3.1 Double-click the Ladder Builder for KV icon in the KEYENCE Applications group in the program manager. • The ladder software starts up.
Chapter 1 Introduction Setting and changing the model used File ➔ Change Models When a new file is created, the dialog box to set the model used is displayed. Select the PLC model connected, and click the [OK] button. To change the model while the Ladder Builder for KV is running, select "Change Models" from the "File" menu. 1 CAUTION • If the PLC model connected is not set correctly, the error message “Unmatched model" is displayed when communicating with a KV Series PLC.
Chapter 1 Introduction 1.6.3 Screen Windows in each mode The screens of the Ladder Builder for KV in each mode are related to each other as described below. Editor 1 Simulator Changed over to monitor Transfer Program to PLC → Monitor ▲ Monitor ▲ ▲ ▲▲ Simulator Editor Editor after devices are cleared Editor The name and functions of each window are described on the following pages. Editor ➮ p. 2-25 Simulator ➮ p. 2-83 Monitor ➮ p.
Chapter 1 Introduction Showing/hiding the tool bar, status bar and dialog bar The display status of the tool bar, status bar and dialog bar can be changed. Select "View" from the editor’s menu bar. Check mark Tool bar 1 Dialog bar Status bar When the check mark is visible: Show mode When the check mark is not visible: Hide mode A check mark appears before each bar by default. Every time the check mark is clicked, the display status is toggled between show mode and hide mode.
Chapter 1 Introduction 2. Set each item, and click the [OK] button. To cancel the changes you made and close the dialog box, click the [CANCEL] button. 1 Display Size Displays a ladder diagram at twice the standard size. This size is useful when characters are small and difficult to read. 150% Displays a ladder diagram at 1.5 times the standard size. 120% Displays a ladder diagram at 1.2 times the standard size. 100% (Normal) Displays a ladder diagram in the standard size.
Chapter 1 Introduction Show/hide comments You can select to show or hide contact comments on the editor screen. "Comment 1" is displayed. Show comments Hide comments 0000 0000 0001 1 ▲ ▲ 0001 Click 1.6.4 Lamp ON Mouse operation and keyboard operation The Ladder Builder for KV can be operated using the mouse except when input of characters is required. This improves efficiency when creating the ladder diagram and during debugging.
Chapter 1 Introduction 1.6.5 Online help The Ladder Builder for KV includes online help. If you are not sure about a function, click the button on the tool bar or select "Help" from the menu bar to open the help window. Operation help window 1 Instruction word help window 2-21 KVSKA Chap 01.P65 21 08.3.
Chapter 1 Introduction 1 2-22 KVSKA Chap 01.P65 22 08.3.
Chapter 1 Introduction 1 2-23 KVSKA Chap 01.P65 23 08.3.
Chapter 1 Introduction 1 2-24 KVSKA Chap 01.P65 24 08.3.
Chapter 2 Editor 2.1 2.1.1 2.2 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 2.5.1 2.5.2 2.5.3 2.6 2.6.1 2.6.2 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8 2.8.1 2.8.2 2.9 2.9.1 2.10 2.10.1 2.11 2.11.1 2.11.2 2.12 2.12.1 2.12.2 2.12.3 2.13 2.13.1 2.13.2 2.14 2.14.1 KVSKA Chap 02.P65 25 Outline of the Editor Functions ........................................................... Cautions for editing ladder programs ............................................
Chapter 2 Editor 2.1 Outline of the Editor Functions This section outlines each function available in the editor. For detailed descriptions of each function, refer to the corresponding page. The editor allows you to create ladder diagrams, and provides editing functions including input of instruction words and registration of comments. The editor offers the following functions. 2 • Creates ladder diagrams using diversified instructions of the ladder language.
Chapter 2 Editor 2.2 Edit Screen This section describes the configuration and functions of the screen displayed in the editor. 2.2.1 Name and function of each part of the screen When the Ladder Builder for KV is started up, the ladder program window is not initially displayed. To create a new ladder program, select "New" from the "File" menu to open the new window, and then edit it. To open an existing ladder program, select "Open" from the "File" menu, and specify the desired ladder program.
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.
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.
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.
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.
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. When is clicked, "save" is selected. Save Save As 2 : Saves a file with the current file name. : Saves a file with a new name.
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".
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Chapter 2 Editor ■ When selecting the devices to be displayed in the list The devices to be displayed in the list can be selected by checking the following item. Show Registered Device Only: Displays the devices in which labels/comments are registered. Show Using Device Only: Displays the devices used in the ladder diagram. When neither item is checked, all the devices are displayed. 2 ■ When copying a label/comment from another device 1.
Chapter 2 Editor ■ When moving a comment block from other devices Perform steps 1 to 7 described above. However, click the [Cut] button instead of the [Copy] button in step 4. Using this procedure, the comment block of the selected devices can be moved. ■ When deleting a comment block from other devices Perform steps 1 to 4. However, click the [Cut] button in step 4. Using this procedure, the comment block of the selected devices can be deleted.
Chapter 2 Editor 2.5.2 Editing line comments Comment ➔ Edit Line Comment (Ctrl + Enter) A line comment can be described in each line of the ladder diagram. Line comments are entered so that the contents of each circuit block can be easily deduced when editing the ladder diagram. Line comments are displayed in the ladder diagram monitor, the simulator and the monitor. To enter a line comment or change a comment, perform the following procedure. 1.
Chapter 2 Editor 2.5.3 Changing ladder lines into comments Comment ➔ Change Ladder Line into Comment ➔ Settings (Ctrl + Q) ★ Right-click ➔ Change Ladder Line into Comment ➔ Cancel (Ctrl + W) ★ Right-click When you specify a ladder line to be treated as a comment, only this specified portion is ignored during conversion. Set this function temporarily when you do not want a certain portion to be converted.
Chapter 2 Editor 2.6 Edit and Arrangement This section describes ladder diagram edit procedures, such as copy/movement/ deletion of the range selected in the ladder diagram, insertion/deletion of lines, how to change the number of columns, arrangement of circuits, etc. 2.6.1 Copy, move, and delete Copy, move or delete the range selected in a ladder diagram. To copy, move or delete the selected range, use the "cut & paste" method which is a standard Windows editing procedure.
Chapter 2 Editor 2. While pressing and holding the left button, move the pointer to the selection end position (drag). The selected range is displayed in yellow. • Selecting the range in units of cells While dragging the mouse pointer, move it in the horizontal direction up to the target cell until the desired range is selected. 12 • Selecting the range in units of lines While dragging the mouse pointer, move it in the vertical direction up to the target line until the desired range is selected.
Chapter 2 Editor Copy/move/delete operation Edit ➔ Cut (Ctrl + X) ★ Right-click ➔ Copy (Ctrl + C) ★ Right-click ➔ Paste (Ctrl + V) ★ Right-click 1. After selecting the desired range, perform the following procedure. ■ When copying data Perform any of the following operations. 2 • Select "Copy" from the "Edit" menu on the tool bar, or select "Copy" from the right-click menu. • Click the • While pressing and holding the Ctrl key, press the C key. button.
Chapter 2 Editor ■ When moving/deleting data Perform any of the following operations. • Select "Cut" from the "Edit" menu on the tool bar, or select "Cut" from the shortcut menu displayed by right-clicking. • Click the • While pressing and holding the Ctrl key, press the X key. button. 12 2. Perform the following procedure when copying or moving data. ■ When pasting data to a ladder diagram Place the mouse pointer in the copy destination or the move destination, then click it.
Chapter 2 Editor 3. Perform any of the following operations. • Select "Paste" from the "Edit" menu on the tool bar, or select "Paste" from the shortcut menu displayed by right-clicking. 2 button. • Click the • While pressing and holding the Ctrl key, press the V key. • While pressing and holding the Shift key, press Insert key. The selected range is pasted. Note 1: The cut portion is temporarily copied to the cut buffer.
Chapter 2 Editor 2.6.2 Inserting and deleting lines To insert lines into a ladder diagram or delete existing lines, perform the following procedure. Inserting blank lines Edit ➔ Insert Empty Line (Shift + Enter) ★ Right-click 1. Place the cursor in the position at which blank lines are to be inserted. To insert two or more blank lines at once, first select the insertion range. Then, the selected blank lines can be inserted all at once. 2.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Chapter 2 Editor Terminating a mnemonic list ■ Inserting the mnemonic list edited into the cursor position, and terminating edits When edits are complete, click the [Insert] button. The list edit window is closed, and the edit contents are inserted at the cursor position in the ladder diagram. ■ Replacing the block in the cursor position with the mnemonic list edited, and terminating edits When edits are complete, click the [Replace Blocks] button.
Chapter 2 Editor 2.8.2 Copy, move, and delete Copy, move and delete in a mnemonic list can be performed using the "cut & paste" operation in the same way as in a ladder diagram. 1. Place the cursor in the start position of the copy/move/delete range. 2. While pressing and holding the [Shift] key, move the cursor to the end position of the range using the UP and DOWN keys. The selected range is displayed in blue. 12 3. Release the key when in the end position.
Chapter 2 Editor 2.9 Displaying the Use Status This section describes how to display the list of relays, timers, counters, comparators, data memory and temporary memory used in the program while editing a ladder diagram. 2.9.1 Displaying a use status list Displaying the use status 2 Edit ➔ Usage Information To display lists of relays, timers, counters, comparators, data memory and temporary memory used in the program while editing a ladder diagram, perform the following procedure. 1.
Chapter 2 Editor 2.10 Setting the System This section describes how to set the directory used for the auto save function, and how to select the decompilation error check. 2.10.1 Setting the system Edit ➔ System Settings To set the directory used for the auto save function and to select the decompilation error check, perform the following procedure. 12 1. Select "System Settings" from the "Edit" menu. The "System Settings" dialog box is displayed.
Chapter 2 Editor 2.11 Entering and Developing Macros The Ladder Builder for KV is equipped with a macro function. By using macros, programs in which the same process is repeated many times and for which there are extended instructions can be entered efficiently. The Ladder Builder for KV is equipped as standard with the macro file to enter frequently used circuits. 2.11.1 Creating a macro file To use a macro, first create a macro file saving the contents to be processed in the macro.
Chapter 2 Editor 4. Under the macro start declaration line, enter the symbol to be processed by the macro. At this time, describe the devices to be treated as arguments as temporary devices. What are temporary devices? Temporary devices indicate devices described temporarily when actual devices are not yet determined. Up to 1,000 temporary devices from "@0" to "@999" can be described. Each temporary device will be automatically replaced while a macro is developed.
Chapter 2 Editor 2.11.2 Entering and developing macros Edit ➔ Macro Input ➔ Develop (Shift + F1) To use a macro, macro instructions must be entered. 1. Open the macro file in which the macro to be entered is saved. Specify frequently used macros for the auto file read function. 2. Set the ladder program window to which the macro is entered as the current window. 2 3. Select "Macro Input → Develop" from the "Edit" menu. The "Macro Input" dialog box is displayed. 4.
Chapter 2 Editor 2.12 Compilation This section describes how to compile ladder programs created using the editor. 2.12.1 Executing compilation Compile ➔ Compile (Ctrl + F9) Ladder programs created using the editor cannot be transferred to a PLC. They must be compiled into machine code. 12 To compile a ladder program, perform the following procedure. 1. Set the ladder diagram of the program to be compiled as the current window. 2.
Chapter 2 Editor 2.12.2 Error display Compile ➔ Show Error (Ctrl + F10) When an error occurs during compilation, a message is displayed and you can confirm the contents of the error. 1. When an error occurs, the message "Compilation Error" is displayed. 2 2. Click the [OK] button. The error list window is displayed. Error code Contents 3. To jump to the location in the program in which an error has occurred, specify the desired error and click the [Jump] button. The error location is displayed. 4.
Chapter 2 Editor 2.13 Printing Functions This section describes how to print out ladder diagrams, mnemonic lists, labels/ comments/references, device use status, and parameters. 2.13.1 Printing File ➔ Print (Ctrl + P) Connect the personal computer to a printer before starting the printout. 12 The contents to be printed out must be set before starting the printout. 1. Select "Print" from the "File" menu, or click the The "Print Setup" dialog box is displayed. button. 2.
Chapter 2 Editor ■ Ladder diagram (details) 2 Example of printout LADDER Name : SAMP01.LDR (KV10) 0001 ** Date : 1997/09/06 0000 $00024 T 000 T000 $00020 T 001 0002 0003 T001 $00054 T 002 0004 0000 Page (1/1) ** L0002 (A) L0006 (A) L0005 (%) L0006 (A) L0007 (A) L0008 (%) L0007 (A) T000 0005 Item Setting contents (input range) Initial value Print Start Line No. Line number from which printout is started 1 Print Finish Line No.
Chapter 2 Editor ■ Labels/comments/references (details) Add the check mark to the devices to be printed out, and set the printout range. By default, all devices are selected and the entire range is specified. 12 Example of printout Label Name : SAMP01.LDR (KV10) < >
Chapter 2 Editor ■ Device use status Add a check mark to the devices to be printed out, and set the printout range. By default, all devices are selected to be printed out. 2 Example of printout (relay) Name : SAMP01.LDR (KV10) [ Date : 1997/09/11 Page (1/5) ] 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF 0000–– 0415: X 0500–– 0915: XXX 1000–– 1415: 1500–– 1915: 2000–– 2415: 2500–– 0915: 2-80 KVSKA Chap 02.P65 80 08.3.
Chapter 2 Editor 2.13.2 Preview display File (F) ➔ Print Preview (V) To preview on the screen the contents to be printed out, perform the following procedure. 1. Select "Print Preview" from the "File" menu. The "Print Setup" dialog box is displayed. 2. Set the contents to be printed out. 12 ➮ For the setup procedure, refer to page 2-79. 3. Click the [Execute] button. The actual image to be printed out is displayed. The [Print] button can be clicked on this screen to print out the contents displayed.
Chapter 2 Editor 2.14 Changing the Display Color on the Screen In the Ladder Builder, the color layout of the screen can be changed. This section describes how to change display colors on the screen. 2.14.1 Changing display colors on the screen View ➔ Change Ladder Diagram Color This function sets the color layout of the Ladder Builder screen. The setup procedure is described below. 2 1. Select "Change Ladder Diagram Color" from the "View" menu.
Chapter 3 Simulator KVSKA Chap 03.P65 83 3.1 Outline of the Simulator Functions ..................................................... 2-84 3.1.1 3.1.2 Outline of the functions ............................................................................ 2-84 Restrictions in the simulator ..................................................................... 2-84 3.2 3.2.1 3.2.2 Starting up and Exiting from the Simulator ........................................
Chapter 3 Simulator 3.1 Outline of the Simulator Functions This section outlines the simulator functions and the precautions for use. 3.1.1 Outline of the functions The simulator simulates the operations of the ladder diagram created by the editor without having to connect to the PLC. The simulator offers the following functions. • Confirms a program’s operation status in real-time using the ladder monitor, registration monitor (timing chart) and monitor all.
Chapter 3 Simulator ■ Special utility relays supported The table below shows the special utility relays which can be processed by the simulator. • Special utility relays Relay No. Function 2002 Always ON 2003 Always OFF 2004 0.01 sec clock pulse (duty = 50%) 2005 0.1 sec clock pulse (duty = 50%) 2006 1.
Chapter 3 Simulator 3.2 Starting up and Exiting from the Simulator This section describes the simulator startup method, screen layout, simulator functions, etc. 3.2.1 Operating procedure for startup and exit Startup procedure File ➔ Simulator (Ctrl + F2) The simulator can be started up by opening a ladder program created using the editor. Perform the following procedure in the editor. 3 1. In the editor, set the window of the ladder program to be simulated as the current window. 2.
Chapter 3 Simulator Exit procedure File ➔ Editor (Ctrl + F1) ➔ Clear Device and Go to Editor (Ctrl + F2) The following two methods are available to exit from the simulator and return to the editor. ■ Returning to the editor without clearing device values Select "Editor" from the "File" menu. Note: When this operation is performed, the information on bus, etc. is cleared.
Chapter 3 Simulator 3.2.2 Name and function of each part of the screen When the simulator is started up, the ladder monitor window of the last edited ladder program is displayed. If the monitor all window and registration monitor window were previously displayed, they are also displayed when the simulator is started. In addition, you can view the mnemonic list window and break condition window by selecting them from the menu.
Chapter 3 Simulator 3.3 Ladder Monitor This section describes the ladder monitor window displayed while the simulator is running, the scan/step execution procedure, the current/preset value change procedure, etc. 3.3.1 Outline of the ladder monitor The ladder monitor offers the following functions. 3.3.2 • Executes the scan of the ladder. • Executes the step of the mnemonic. • Turns ON/OFF the bit device. • Changes the current value using the dialog bar.
Chapter 3 Simulator Ladder monitor window Contact Cursor Line No. Step No. Scroll bar 3 • Use the scroll bar or the cursor control keys (LEFT/RIGHT/UP/DOWN) to look at the hidden (undisplayed) portion. • When a scan or step is executed, device values and the ON/OFF indication are changed continuously according to the operation speed. • When a step is executed, the current position is scrolled (only in the upper window) according to the operation speed, and the cursor is moved in the line executed.
Chapter 3 Simulator ■ Status indication during execution While a scan or step is executed, the current operation status and the scan time are displayed in the status indication area on the main window. Step No. being executed Status (Operating, Stopped or Paused) Operation mode being executed Scan time Note: While the continuous scan operation is executed, "Execute Scan" is displayed. While the continuous step operation is executed, "Execute Step" is displayed.
Chapter 3 Simulator Executing continuous scan Execute ➔ Execute Continuous Scan (F5) A program can be executed continuously. Program is executed. One scan is repeated. One scan 3 End process To execute a program continuously, select "Execute Continuous Scan" from the button. "Execute" menu, or click the The operation status is displayed on the ladder monitor window. ➮ Ladder monitor window (p. 2-90) 2-92 KVSKA Chap 03.P65 92 08.3.
Chapter 3 Simulator Executing one scan Execute ➔ Execute One Scan (F9) A program can be executed only once. When only one scan is executed while scans are continuously executed or one step is executed, operation is paused. Program is executed. One scan 13 End process To execute a program only once, select "Execute One Scan" from the "Execute" menu, or click the button. ➮ Ladder monitor window (p.
Chapter 3 Simulator Selecting devices On the ladder monitor window, the current and preset values of the selected device can be changed. To select a device, perform the following procedure. ■ Selecting a device using the mouse Place the mouse pointer over the device to be selected, and click it. The cursor becomes gray to indicate that it is selected.
Chapter 3 Simulator Turning on/off bit devices To turn on/off a bit device, perform the following procedure. ■ Turning on/off a bit device using the mouse Place the cursor over the device to be turned on/off, and double-click it. • The color of the contact changes to indicate that the ON/OFF status has been toggled. • When the mouse is used for operation, the cursor is selected as soon as it is double-clicked.
Chapter 3 Simulator Changing the current value/preset value/attribute To change the current value, preset value or attribute (radix, comment) of the selected device, use the dialog bar. The dialog bar is displayed at the bottom of the screen, and allows you to register a device on the monitor all window and registration monitor window. To change the current value, preset value and attribute (radix, comment), perform the following procedure.
Chapter 3 Simulator 3. Click the [Write Current Value] button or the [Write Preset Value] button. • The current value or preset value is changed. Set items and available contents/values Available values Item Contents Ladder monitor Monitor all/registration monitor Type Select the device type. — Relay, timer, counter, counter comparator, high-speed counter, data memory, temporary data memory, trimmer No. No. Enter the device No. — Available numbers vary depending on the device.
Chapter 3 Simulator Setting break conditions Settings ➔ Set Break Condition ➔ Break Condition ➔ OR condition ★ Right-click The break condition is the condition which stops a program while execution of one scan or step is repeated continuously. The break condition can be specified for each device. Use the break condition to confirm the partial operation status or to detect a defective location. When using the break condition together with the step function, operations can be confirmed in a shorter time.
Chapter 3 Simulator 4. Click the [Register] button. The specified condition is registered, and the contents are displayed on the break condition window. 13 5. When registering two or more conditions, repeat steps 2 to 4. 6. When all conditions are registered, click the [Exit] button. The "Register Break Condition" dialog box is closed.
Chapter 3 Simulator Setting the scan time Settings ➔ Scan Time Set the time for execution of one scan or step. For execution of one scan, there are two time settings: the measured value indicating the actual time and the virtual fixed value (fixed scan). (For execution of one step, only the virtual fixed value can be set.) 1. Select "Scan Time" from the "Settings" menu. The "Set Scan Time" dialog box is displayed. 2. When setting the fixed scan, click "Set Fixed Scan" to add a check mark. 3 3.
Chapter 3 Simulator 3.3.3 Executing steps Execution of steps is described below. Outline of the step execution function "To execute a step" means to simulate the program one instruction at a time. While a step (one instruction) is executed, a mnemonic list is displayed and the line currently being executed can be verified.
Chapter 3 Simulator Executing a step once Execute ➔ Execute One Step (F8) A step in a program can be executed only once. When a step is executed only once during a scan, execution is stopped. ▲ 1 step = 1 instruction ▲ ▲ ▲ ▲ ▲ ▲ When execution reaches "ENDH", the cursor returns to the top. 3 One step (instruction) is executed every time the clicked. To execute a step once, select "Execute One Step" from the "Execute" menu, or click the button.
Chapter 3 Simulator 13 Note 1: Only the upper window is scrolled according to the operation speed. To confirm the operation of a certain portion, use the lower screen. Note 2: If the speed is too fast, increase the wait time appropriately. Executing steps at a high speed Execute ➔ Execute High-speed Step (Shift + F9) You can specify the program to stop execution at a certain step. The program will then be executed quickly without displaying the progress at each step.
Chapter 3 Simulator Executing a step once in the reverse direction Execute ➔ Execute One Step in Reverse (F7) After a step is executed once, a step is executed continuously, or steps are executed at high speed, these steps can be re-executed one at a time in the reverse direction. When execution reaches the top, the cursor returns to "ENDH". 3 ▲ ▲ ▲ ▲ ▲ ▲ One step (instruction) is executed every time the button is clicked.
Chapter 3 Simulator Specifying a break point A break point is the position in which a program is to be stopped. When a break point is first specified, the program is automatically stopped in the specified position while a step is continuously executed. To specify a break point, place the cursor in the line to be specified, and then double-click it or press the space bar. The break point cursor is displayed in yellow.
Chapter 3 Simulator 3. Click the [Line] button when specifying a line number to jump to. Click the [Step] button when specifying a step number to jump to. Click the [Cancel] button to cancel jump. The specified line or step is displayed, and the cursor is moved to the specified line or step. Note 1: When a number larger than the last line/step number is specified, the last line/step is displayed. Note 2: Jump to the specified line/step can be performed only while the ladder monitor is active.
Chapter 3 Simulator Cross reference search Edit ➔ Find Device at Cursor Position on Ladder Monitor ➔ Search Backward (F2) ★ Right-click ➔ Search Forward (F3) ★ Right-click ➔ Search for OUT Backward (Shift + F2) ★ Right-click ➔ Search for OUT Forward (Shift + F3) ★ Right-click To perform a cross reference search means to search for a device equivalent to the device in the current cursor position or an instruction which sets the device to OUT. The following four search methods are available.
Chapter 3 Simulator 3.3.5 Stop/reset and device all clear To stop/reset execution of scans or steps, or to clear all the devices, perform the following procedure. Stopping/pausing the operations Execute ➔ Stop (Shift + F5) ➔ Pause (F4) Operations can be stopped or paused. Select "Stop" or "Pause" from the "Execute" menu, or click the 3 or button. • When "Stop" is specified, all types of operations are stopped and the output Y is cleared.
Chapter 3 Simulator 3.4 Monitor All Monitor all displays the current value of all devices, the ON/OFF status of contacts, and registered comments for each device type. This section describes the operations available in monitor all. 3.4.1 Outline of monitor all Monitor all offers the following functions. 3.4.2 • Displays the current value and preset value of all devices, and the ON/OFF status of the contacts and coils for each device type. • Displays all the registered comments.
Chapter 3 Simulator 2. Select "Monitor All" from the "File" menu, or click the • • • button. The monitor all window is opened. A list is displayed in the window, with the selected device at the top. The line of the selected device is highlighted to indicate that it is selected. 3 Note: Every time this procedure is performed, a new window is opened.
Chapter 3 Simulator Saving the monitor all window File ➔ Save Window As To save the monitor all window, perform the following procedure. 1. Select the monitor all window to be saved as the current window. 2. Select "Save Window As" from the "File" menu, or click the • The "Save Window As" dialog box is displayed. button. 3. Specify the folder (directory) and the file name in which the file is to be saved. 13 Folder (directory) Select the folder (directory) in which the file is to be saved.
Chapter 3 Simulator Folder (directory) Select the folder (directory) in which the file to be read is saved. The current folder (directory) is selected as the default. File Name Specify the file name to be read. File Type Select the type of the file to be read. "Registration Monitor (*.kre)" and "Monitor All (*.kal)" are available. 4 Click the [OK] button. • The specified file is read, and the monitor all window is opened. 3 2-112 KVSKA Chap 03.P65 112 08.3.
Chapter 3 Simulator 3.4.3 Monitor all window Contact status Device No. Current value Preset value Comment Cursor Scroll bar 13 • To look at the hidden (undisplayed) portion, use the scroll bar or the [PageUp] and [PageDown] keys. • The cursor can be moved using the [LEFT] [RIGHT] [UP][DOWN] keys. • While the simulator is running, the current values are changed accordingly. Current value display format 3.4.
Chapter 3 Simulator 2. Select "Monitor All" from the "File" menu, or click the 3 • • • button. The monitor all window is opened. A list is displayed in the window, with the selected device at the top. The line of the selected device is highlighted to indicate that it is selected. Registering a device by dragging it from the ladder monitor window Drag and drop a device from the ladder monitor window, and register it to the monitor all or registration monitor window.
Chapter 3 Simulator 13 3. Release the left button (drop). • In the monitor all window, a list of devices with an equivalent type to the selected device is displayed. The line of the selected device is highlighted to indicate that it is selected. Registering a device by specifying it using the dialog bar The dialog bar is a tool shared by the ladder monitor window, the monitor all window and the registration monitor window.
Chapter 3 Simulator 2. Set the device to be registered using the dialog bar. ➮ For items, contents and precautions on changing settings, refer to "Changing the current value/preset value/attribute" on page 2-96. Preset value write button Comment Radix Current value write button Preset value write box Current value write box 3. Click the [Register] button. 3 • The device satisfying the contents set is registered to each monitor. ■ To cancel the setting entered Click the [Cancel] button. 3.4.
Chapter 3 Simulator ■ Changing the current value, etc. Once a device is selected, the current value, etc. can be changed using the dialog bar. ➮ For the procedure for changing the current value, preset value, etc. using the dialog bar, refer to "Changing the current value/preset value/attribute" on page 2-118. Turning on/off bit devices To turn on/off a bit device, perform the following procedure.
Chapter 3 Simulator Changing the current value/preset value/attribute The dialog bar is a tool shared by the ladder monitor window, the monitor all window and the registration monitor window, and allows you to register new devices and change the setting of the selected device. The following items can be set using the dialog bar. 3 • Device type • Device No.
Chapter 3 Simulator 3.5 Registration Monitor The registration monitor displays timing charts for registered devices. When steps are executed, the current status is displayed in real-time so that program operations can be confirmed. This section describes how to view and manipulate the registration monitor. 3.5.1 Outline of the registration monitor The registration monitor offers the following functions. 3.5.2 • Registers up to 40 devices. • Changes the position of registered devices.
Chapter 3 Simulator To register devices by dragging and dropping them from the ladder monitor window, perform the following procedure. 1. Select "Registration Monitor" from the "File" menu, or click the • 3 button. The registration monitor window is open. Note: Every time this operation is performed, a new window is opened. 2. On the ladder monitor window, select devices to be registered, and press and hold the left mouse button. • The cursor shape is changed.
Chapter 3 Simulator 2. Select "Save Window As" from the "File" menu, or click the • button. The "Save Window As" dialog box is displayed. 3 Specify the folder (directory) and the file name in which the file is to be saved. 13 Folder (directory) Select the folder (directory) in which the file is to be saved. The current folder (directory) is selected as the default. File Name Enter the file name using up to 8 letters and numbers. The extension is set to "kre", and should not be changed.
Chapter 3 Simulator 3.5.3 Registration monitor window On the registration monitor window, timing charts and comments are displayed along with the device data, current values and preset values. Device No. Bit device status Vertical cursor 3 Current value Cursor Preset value Comment Timing chart • When many devices are registered, it is recommended that you open two or more windows for easier viewing. • The cursor can be moved using the LEFT/RIGHT/UP/DOWN keys.
Chapter 3 Simulator 3.5.5 Selecting and changing devices Devices can be selected on the registration monitor window, and then the ON/OFF status and the current value of bit devices can be changed. Note: Devices must first be registered before using the registration monitor. The device registration procedure is described in "3.5.2 Displaying, saving, and reading the registration monitor" (➮ p. 2-118) Selecting devices To select a device, perform the following procedure.
Chapter 3 Simulator Turning on/off the bit device To turn on/off a bit device, perform the following procedure. ■ Turning on/off a bit device using the mouse Place the cursor over the device to be turned on/off, and double-click it. • The ON/OFF indication is toggled. ■ Turning on/off a bit device using the mouse When the cursor color is the same as the title bar color, place the cursor in the device to be turned on/off using the UP and DOWN keys, and press the space bar.
Chapter 3 Simulator Copying the device attribute Edit ➔ Copy Device Attribute in Registration Monitor ★ Right-click (Copy Attribute) Only the device attribute (bit count, radix, comment type) of another device can be copied. This function can be used to copy only the attribute of another device while retaining the device type and device number. To copy the attribute, perform the following procedure. 1. Left-click the copy source device. 13 2.
Chapter 3 Simulator Moving devices The device in the currently selected cursor position can be moved to another position by dragging and dropping to change the device order. To move a device, perform the following procedure. 1. Place the cursor in the device to be moved. 2. While pressing and holding the left mouse button, move the mouse cursor to the device in the position below the destination (drag). 3 3. Release the left button (drop). • The device is inserted at the mouse cursor position.
Chapter 3 Simulator Deleting devices Edit ➔ Delete Devices in Registration Monitor ★ Right-click (Delete) To delete the device in the currently selected cursor position, perform the following procedure. Select "Delete Devices in Registration Monitor" from the "Edit" menu. • The selected device is deleted. • The device below the deleted device is selected.
Chapter 3 Simulator 3.5.6 Manipulating timing charts This section describes timing charts displayed in the registration monitor. When steps are executed, timing charts are displayed in real-time to indicate the value history. You can confirm the operation status of a program such as the timing at which the ON/OFF status of the contact of each registered device is changed over, etc.
Chapter 3 Simulator Note 1: The current values displayed indicate the values in the positions in which the active vertical cursor is located. Even when a reset is executed, the values in the vertical cursor positions are displayed as the current values. When the vertical cursor is not provided, the current values displayed indicate the actual current values. The actual current values can be entered while the vertical cursor is not displayed.
Chapter 3 Simulator Setting the wait time Settings ➔ Wait Time The wait time available while scans are executed can be set. The wait time is applied to all the operations performed by the simulator. When the execution speed is too fast or slow, adjust the wait time value accordingly. The wait time cannot be set in the monitor. To set the wait time, perform the following procedure. 1. Select "Wait Time" from the "Settings" menu, or click the • 3 button. The "Set Wait Time" dialog box is displayed. 2.
Chapter 3 Simulator 3.5.7 Printing out the registration monitor The contents of the registration monitor can be printed out. This section describes the printout procedure. Only the registration monitor can be printed out. First select the registration monitor to be printed out as the current window. Note: Before performing a printout, confirm the following. • The printer should be correctly connected. • The printer should be correctly set by selecting "Printer Setup" from the "File" menu.
Chapter 3 Simulator Executing printout File ➔ Print To execute printout, perform the following procedure. 1. Select the registration monitor window to be printed out as the current window. 2. Select "Print" from the "File" menu. • The "Print" dialog box is displayed. 3. Select "All" in "Print Range", and click the [OK] button. 3 • Printout is executed. Note: If printout is not correctly performed, confirm the settings and connection status of the printer. 2-132 KVSKA Chap 03.P65 132 08.3.
Chapter 4 Monitor KVSKA Chap 04.P65 4.1 4.1.1 4.1.2 4.1.3 Outline of the Monitor Functions ....................................................... Outline of the functions .......................................................................... Restrictions in the monitor ...................................................................... Precautions for communication .............................................................. 4.2 4.2.1 4.2.2 Communicating with the PLC .........................
Chapter 4 Monitor 4.1 Outline of the Monitor Functions This section outlines the monitor functions and the precautions for use. 4.1.1 Outline of the functions The monitor compiles (converts) ladder programs created by the editor, transfers the converted programs to the PLC (Visual KV or conventional KV), and executes them to confirm the operation status.
Chapter 4 Monitor 4.1.3 Precautions for communication • Connect the PLC to the personal computer with the connection cable, and confirm that the serial port of the monitor is correctly connected before starting up the monitor. If it is not correctly set, the error message "Check connection cable with the PLC." is displayed when the monitor is started up, and monitoring is disabled. The initial preset values of the serial port are "COM port: No. 1" and "Baud rate: AUTO".
Chapter 4 Monitor 4.2 Communicating with the PLC This section describes how to transfer ladder programs created using the editor to the PLC and how to transfer programs from the PLC. 4.2.1 Setting the PLC communication parameters File ➔ Communication Setup ➔ Set PLC Communication Parameters Before communicating with the PLC, the COM port and the baud rate (communication speed) on the personal computer connected to the PLC should be set. To set these parameters, open the monitor from the editor. 1.
Chapter 4 Monitor Setting the machine number KV-300 Series Only Set ➔ Set Machine Number The Ladder Builder for KV can specify the station number of two or more KV-L2 units connected in the multi-drop method so that one personal computer can transfer programs to and monitor programs in two or more KV-300 units. To set the machine number, perform the following procedure while the monitor is stopped (while communication is not being performed). Station No.
Chapter 4 Monitor 4.2.2 Setting the comment transfer File ➔ Communication Setup ➔ Set Comment Transfer KV-300 and Visual KV Series Only Set the comment range to be transferred to the PLC. Note 1: Make sure to set the comment range when comments are transferred along with programs to the PLC. Note 2: Comments can be transferred to the KV-300 and Visual KV Series only. Comments cannot be transferred to the KV-10R(W)/T(W), KV-16R(W)/T(W), KV24R(W)/T(W) and KV-40R(W)/T(W)/80R(W)/T(W).
Chapter 4 Monitor 4.3 Starting up and Exiting from the Monitor This section describes how to start up the monitor, how to view the screen displayed and how to use the monitor functions. 4.3.
Chapter 4 Monitor 2. Select "File", "Monitor" and "Convert → Transfer → Monitor" from the menu, or click the button. 4 • • • The ladder program created by the editor is converted. The monitor window is displayed. The "Transfer Program" dialog box is displayed. Note 1: Write is not performed when there is no difference between the program saved in the PLC and the program transferred. Note 2: If conversion is not performed normally, the message "Conversion error exists. Data can’t be transferred.
Chapter 4 Monitor Reading programs File ➔ Monitor ➔ Read Program from PLC Programs which have been transferred to the PLC can be decompiled, and then read in the editor. Connect the PLC to the personal computer before starting to read. To read a program, perform the following procedure. 1. Select the window from which a PLC program is to be read as the current window on the editor screen. 2. Select "File", "Monitor" and "Read Program from PLC" from the menu, or click the button.
Chapter 4 Monitor Editing devices in offline mode File ➔ Monitor ➔ Edit Offline Device Specified devices can be read all at once from the PLC by specifying the range, and then can be edited. 1. Select "File", "Monitor" and "Edit Offline Device" from the editor menu. • The monitor is started up in the device setting mode. 2. Select "Change All" from the monitor’s "File" menu • The change all window is opened. ➮ 4 Refer to "4.6.2 Changing the current values all at once " (p. 2-150).
Chapter 4 Monitor 4.3.2 Name and function of each part of the screen When the monitor is started up, the ladder monitor window of the last edited ladder program is displayed. If the monitor all window and registration monitor window were previously displayed, they are also displayed when the monitor is started. Sample screen Main window The entire simulator screen. Main window title bar Displays the file name of the ladder program currently being monitored. Menu bar Displays the menu to execute commands.
Chapter 4 Monitor 4.4 Ladder Monitor This section describes the monitor start/stop procedure, the screen displayed while the monitor is running, the PLC mode setting, etc. 4.4.1 Outline of the ladder monitor The ladder monitor transfers ladder programs to the PLC, displays the actual PLC operation in real-time, and offers the following functions. 4 4.4.2 • Starts and stops the monitor. • Changes the operation mode (RUN or STOP). • Displays registered comments. • Changes the current values, etc.
Chapter 4 Monitor 4.4.4 Starting the monitor Monitor ➔ Start Monitor [F4] Communication with the PLC can be started, and the operation status of the PLC can be displayed on each window. To start the monitor, perform the following procedure. Note 1: If a conversion error is present, the monitor cannot be started. Make sure that the ladder program can be correctly compiled (converted) before starting up the monitor.
Chapter 4 Monitor 4.4.6 Screen displayed while the monitor is running When the monitor is started, the operation status is displayed on each window. The status bar provided at the bottom of the monitor screen indicates the operation mode currently being executed, etc. Status indication While the monitor is running or while data is reconstructed in the record reconstruction mode, the PLC mode, scan time, etc. are displayed in the status indication area on the monitor window.
Chapter 4 Monitor 4.4.7 Setting the PLC operation mode Set the operation mode of the conventional KV. When the monitor is started up for the first time, the PLC mode is selected. To change the PLC mode, select the desired mode from "PLC Mode" on the menu or click the button. Operation (RUN mode) PLC Mode ➔ Run (Shift + F7) In this mode, a program operates normally. Stop (STOP mode) PLC Mode ➔ Stop (Shift + F8) 14 In this mode, program execution is stopped. All the outputs are turned off.
Chapter 4 Monitor 4.5 Monitor All and Registration Monitor This section briefly describes the functions of the monitor all and registration monitor. For details, refer to "Chapter 3 Simulator" on page 2-83. 4.5.1 Functions of the monitor all window Monitor all offers the following functions. 4 4.5.2 • Displays the current value and preset value of all devices, and the ON/OFF status of the contacts and coils for each device type. • Displays all the registered comments. • Turns on/off bit devices.
Chapter 4 Monitor 4.6 Monitor Function This section describes the functions which can be executed by the monitor such as disabling the input refresh/disabling the output, change all of current values, device all clear, etc. 4.6.1 Disabling the input refresh/Disabling the output Visual KV and KV-300 Only A Visual KV and KV-300 are equipped with the input refresh disable function and the output refresh disable function.
Chapter 4 Monitor 4.6.2 Changing the current values all at once File ➔ Change All The specified devices can be read all at once by specifying the range from the PLC. The current values can then be changed and written to the PLC. In addition, the setting of the read devices can be saved, and the setting of saved devices can be read. Change all can be performed on the change all window displayed when "Change All" is selected from the "File" menu. Two or more change all windows can be displayed.
Chapter 4 Monitor Reading devices from the PLC 1. Enter the device range to be read into "Device Range", or specify the range by dragging using the mouse. 2. Click the PLC [Read] button. • The specified device data is read from the PLC, and displayed in the window. • While in this state, the attribute (radix, bit count, comment) can be changed using the dialog bar. ➮ Refer to "Changing the current value/preset value/attribute" on page 2-118. Writing devices to the PLC 1.
Chapter 4 Monitor 3. Specify the folder (directory) and file name to which data is to be saved. 4 Folder (directory) Select the folder (directory) in which the file is to be saved. The current folder (directory) is selected as the default. File Name Enter the file name using up to 8 letters and numbers. The extension is set to "kdv", and should not be changed. Note: When data is already saved in a file and you want to save new data with the same file name, select "Save" from the "File" menu.
Chapter 4 Monitor ■ Reading devices from a file 1. Select "Open Window" from the "File" menu • The "Open" dialog box is displayed. 2. Click the button of "File Type", and select "Change All (*.kdv)". 3. Specify the folder (directory) and file name in which the file to be read is saved. 14 Folder (directory) Select the folder (directory) in which the file is to be read is saved. The current folder (directory) is selected as the default. File Name Enter the file name to be read.
Chapter 4 Monitor 4.6.3 Device all clear Devices on the PLC can be initialized. Initializing devices Settings ➔ Device All Clear ➔ DM All Clear ➔ Latching Relay All Clear ➔ Counter All Clear To initialize the device setting, perform the following procedure. 1. Select "Device All Clear" from the "Settings" menu, and then specify the devices to be initialized. 2. A message to confirm clear is displayed. To clear data memory, click the [Yes] button. To cancel execution of clear, click the [No] button.
Appendices Appendix A A-1 A-2 A-3 A-4 A-5 A-6 A-7 A-8 A-9 Error Message List .................................................................... System errors ................................................................................ Memory errors ............................................................................... File errors ...................................................................................... Installation errors .........................................................
Appendices Appendix A Error Message List This section describes error messages displayed during operation and the countermeasures to be taken when an error message is displayed. A-1 System errors A system error message is displayed when the entire system (including Windows) becomes unstable. Appendices When a system error message is displayed, save required files immediately, exit from the Ladder Builder for KV, and then restart Windows.
Appendices A-3 File errors A file error is displayed when a file is damaged. When a file error is displayed, check the disk using "SCANDISK", and then restore the file if an error is detected. Reinstall the Ladder Builder for KV. Error messages displayed in the editor are shown below. Error message Error message Can’t open ladder diagram file. Error [file name]: Read file failed. Can’t open text file. Error [file name]: Write file failed. Can’t open comment file.
Appendices A-5 Errors that occur in the editor Error messages displayed in the editor are shown below. Error message Reverse Compilation Error. Compilation Error. Appendices Specified label already used. Write/Develop macro failed. Cause A grammar error occurred when a program was read from the KV and converted into a ladder diagram, or when a ladder diagram was converted while the code check system setting was selected. A grammar error occurred when edit was terminated.
Appendices A-6 Errors that occur in the monitor/simulator The error message displayed in the monitor/simulator is shown in the table below. Error message Can’t write scales. Widen the width of registration monitor window. A-7 Cause Because the width of the registration monitor window is too narrow, the specified number of scales cannot be drawn. Countermeasures Increase the width of the registration monitor window.
Appendices A-8 PLC errors Error messages displayed when problems occur in a Visual KV or a conventional KV are shown in the table below. Error message Analysis Disabled Error System Error Run Time Error Cause An unexpected error occurred in the KV main unit. Countermeasures Turn off power to the KV main unit, and then turn it on again. If the same error occurs frequently, contact your nearest KEYENCE office. RUN mode is selected while there is not a program in the KV main unit.
Appendices A-9 Errors that occur during compilation Error messages displayed during compilation are shown in the table below. When this type of error message is displayed, eliminate the cause of the error, and then perform compilation again. Too many errors. Abort conversion. First operand is unnecessary. Second operand is unnecessary. Third operand is unnecessary. First operand form is illegal. Second operand form is illegal. Third operand form is illegal. First operand value is illegal.
Appendices Error message Corresponding CTH instruction is not found. Cause Although the CTC instruction is used, the corresponding CTH instruction is not included in the program. Countermeasures Include the corresponding CTH instruction in the program before the END instruction. Corresponding instruction is undefined. Although contacts of timers and counters are used, the corresponding instructions are not present in the program. There are unusable instructions included in a subroutine.
Appendices Appendix B Instruction List This appendix includes a list of instructions and an outline of their processes. For details, refer to Chapter 2, "Instructions" on page 3-33. Basic instructions Instruction name Mnemonic Outline of process Load LD Connects N.O. contact to bus. Load Bar LDB Connects N.C. contact to bus. Out OUT Outputs ON/OFF status of input to relay coil. Out Bar OUB Outputs inverted ON/OFF status of input to relay coil. And AND Connects N.O. contact in series.
Appendices Application instructions Appendices B-2 Instruction name Mnemonic Outline of process Wait ON W-ON Turns ON output operand relay when input operand relay/timer/counter turns ON. Wait OFF W-OFF Turns ON output operand relay when input operand relay/timer/counter turns OFF. Wait Up Edge W-UE Turns ON output operand relay at rising edge of input operand relay/timer/counter. Wait Down Edge W-DE Turns ON output operand relay at falling edge of input operand relay/timer/counter.
Appendices Arithmetic instructions Instruction name Mnemonic Outline of process Data Memory Write DW Writes constant directly into data memory. Trimmer Setting TMIN @TMIN Converts rotation angle of trimmer into a number from 0 to 249, and inputs it back to internal register. Load A LDA @LDA Inputs value specified by operand to internal register. * Inputs current value to internal register when timer/ counter is specified by operand.
Appendices Appendices B-4 Instruction name Mnemonic Outline of process Transfer BCD TBCD @TBCD Converts content of internal register into 4-digit BCD data. Transfer BIN TBIN @TBIN Converts content of internal register into 16-bit binary data. ASCII Convert ASC @ASC Converts content (2 digits) of lower order byte of internal register into 2-digit ASCII code. Reverse ASCII Convert RASC @RASC Converts 2-digit ASCII code into 1-byte data representing 2-digit number.
Appendices Appendix C Relays, timers, counters, and memory numbers for each model KV-10 R(W)/T(W) KV-16 R(W)/T(W) KV-24 R(W)/T(W) KV-40/80 R(W)/T(W) KV-300 KV-10 (16) KV-24 (40) AR/AT/DR/DT AR/AT/DR/DT Basic input relay 0000 to 0005 0000 to 0009 0000 to 0015 KV-40 0000 to 0009 R(W)/T(W): 0000 to 0107 KV-80 R(W)/T(W): 0000 to 0125 KV-10 AR/AT/DR/DT: 0000 to 0005 KV-16 AR/AT/DR/DT: 0000 to 0009 Extended input relay 0100 to 0415 0100 to 0415 0100 to 0415 KV-40 R(W)/T(W): 0200 to 0415 KV-80R (W)/T(W)
Appendices Appendix D D-1 Special Utility Relay List Visual KV Series Only Special relays and arithmetic operation flags Relay No. Always ON. 2003* Always OFF. 2004* 0.01-s clock pulse (duty cycle: 50%) 2005* 0.1-s clock pulse (duty cycle: 50%) 2006* 1.0-s clock pulse (duty cycle: 50%) 2007* Remains OFF during first scan after startup. 2008* 2010* Remains ON during first scan after startup. Turns ON when result of arithmetic operation is negative or when an overflow is generated.
Appendices D-3 Special utility relays for high-speed counter (1) Relay No. Function 2200* Internal clock used only for CTH1 (1 µs) 2201* Internal clock used only for CTH1 (10 µs) Internal clock used only for CTH1 (100 µs) Automatic clear of CTH1 when comparator CTC2 turns ON. Prohibits/permits direct output to 0501 when 2204 comparator CTC2 turns ON. Direct output to 0501 is set to OFF when comparator 2205 CTC2 turns ON. Direct output to 0501 is set to ON when comparator 2206 CTC2 turns ON.
Appendices Relay No.
Appendices 2609 2610 2611 2612 2613 Function Input time constant of input expansion unit with relay Nos. 0100 to 0115 Input time constant of input expansion unit with relay Nos. 0200 to 0215 Input time constant of input expansion unit with relay Nos. 0300 to 0315 Input time constant of input expansion unit with relay Nos.
Appendices Memory switches Appendices D-5 D-6 bit0 Cancels error when power is ON. 1: Retains 0: Clears them and starts operation. bit1 Cancels error message "MEMORY ERASED" when 1: Memory error value in data memory/counter or latch setting is erased. 0: Clears error and continues operation. bit2 Uses latch function of internal utility relays 1000 through 1915. 1: Yes 0: No bit3 Uses latch function of internal utility relays 3000 through 3915.
Appendices ■ Data memories for motor drive Setting range Ramp up-and-down control startup frequency (Hz) 200 to 50000 DM1481 Ramp up-and-down control operating frequency (Hz) 200 to 50000 (value larger than startup frequency) DM1482 Ramp up-and-down control acceleration/deceleration time (ms) 0 to 4000 DM1484 Number of output pulses (lower 16 bits) 0 to 65535 (2 or more when DM1485 is 0) DM1485 Number of output pulses (upper 16 bits) 0 to 65535 DM1486 Set value error code When an error occu
Appendices Appendix E E-1 Devices for KV-10R(W)/T(W) to 80R(W)/T(W), KV-300 Special utility relays Appendices ■ Special relays and arithmetic flags Relay No. Function 2000 Undefined 2001 Undefined 2002 Always ON 2003 Always OFF 2004 0.01 s clock pulse (duty cycle: 50%) 2005 0.1 s clock pulse (duty cycle: 50%) 2006 1.
Appendices Relay No. Function 2206 Selects edge of INT3. *2207 Reverses (toggles) output to 0501 by comparator 0501. *2208 Direct output to 0501. 1: Disabled 0: Enabled *2209 Turns OFF output to 0501. 1: Yes 0: No *2210 Turns ON output to 0501. 1: Yes 0: No *2211 Reverses (toggles) output to 0501. 1: Yes 0: No *2212 When comparator CTC3 is ON, clears CTC1 automatically. 1: Yes 0: No *2213 Uses CTH1 in multiply mode. 1: Yes 0: No *2214 Selects multiply mode for CTH1.
Appendices Memory switches Appendices E-2 E-3 bit0 Manipulates all error flags when power is ON. 1: Retains 0: Clears them and starts operation. bit1 Performs process when RAM is cleared. 1: Memory error 0: Clears error and continues operation. bit2 Retains utility relays 1000 to 1915. 1: Yes 0: No bit3 Retains utility relays 3000 to 3915. 1: Yes 0: No bit4 Retains utility relays 4000 to 4915. 1: Yes 0: No bit5 Retains utility relays 5000 to 5915.
Appendices ■ I/O module error information (valid in the KV-300 only) DM9500 Slot number in which the error occurred DM9501 Channel number within slot in which the error occurred DM9507 to DM9517 I/O module connection information map ■ Data memory for motor drive (valid in the KV-300 only) Allowable setting range Preset value error code 11 to 7 DM9408 X-axis startup frequency (Hz) 153 to 50000 DM9409 X-axis operation frequency (Hz) 153 to 50000 DM9410 X-axis acceleration/deceleration time (ms
Appendices Appendix F Sample Program List This appendix describes sample ladder programs installed by default. Sample programs are saved in "\LBK\SAMPLE". F-1 Description of sample ladder programs ■ Samp01.ldr Sequential turning ON of relays Applicable models : All KV Series models (KV-10 is used in the program.) Description : When the power switch is turned on, indicators are turned ON one by one. Appendices ■ Samp02.
Appendices ■ Samp09.ldr Various timer circuits Applicable models : All KV Series (KV-10 is used in the program.) Description : Three typical timer circuits are shown: On-delay, Off-delay and One-shot timers. ■ Samp11.ldr Setting value for internal counter by using BCD digital switch Applicable models : All KV Series (KV-10 is used in the program.) Description : The set value of counter can be changed using external BCD digital switch. ■ Samp12.
Appendices Appendix G Quick Reference This appendix provides a brief description of each function as well as lists of commands (menu buttons) and tool bars used to execute the functions. G-1 Editor ■ Function list and menu A brief description of functions and commands (menu buttons) used to execute the functions are given below. For detailed descriptions, refer to the corresponding reference page.
Appendices Entering/deleting symbols and connection lines Entering/deleting connection lines Edit ➔ Symbol Input ➔ Vertical Connection Line ➔ Horizontal Connection Line ➔ Delete Vertical Connection Line ➔ Delete Horizontal Connection Line ➔ Horizontal Connection Line to End of Line Enters or deletes a connection line. This operation can be performed more quickly when the mouse or keyboard is used.
Appendices Jump/find/replace Jump Edit ➔ Jump Moves the cursor to a specified line, specified step number, top of the program, bottom of the program, etc. As well the cursor can be moved by registering lines. Finding instruction words/operands Edit ➔ Find Searches for the specified instruction word/operand. Replacing operands Edit ➔ Replace Operand Replaces an existing operand with another operand by specifying the replacement width. Converting a-b contacts Edit ➔ Convert a-b (N.O.-N.C.
Appendices Communicating with PLC Setting PLC communication parameters File ➔ Communication Setup ➔ Set PLC Communication Parameters Sets parameters required for communication with the PLC. Transferring, reading, and verifying programs File ➔ Monitor ➔ Compile ➔ Transfer ➔ Monitor ➔ Read Program from PLC ➔ Verify against PLC Program Transfers compiled ladder programs to the PLC, and switches to monitor mode. Reads programs transferred from the PLC.
Appendices Appendices ■ Tool bar list New Creates a new ladder program. Open file Opens a saved ladder program. Save file Saves (overwrites) an existing ladder program. Cut Cuts the specified range (and copies it to the clipboard). Copy Copies the specified range (to the clipboard). Paste Pastes the cut or copied range (from the clipboard). Print Prints out ladder diagrams, mnemonic lists, etc. (Opens the printout setting dialog box.) Undo Cancels the last edit operation.
Appendices a (N.O.) Contact OR Input Enters an a (N.O.) contact OR in the current cursor position. b (N.C.) Contact OR Input Enters a b (N.C.) contact OR in the current cursor position. a (N.O.) Contact Input Enters an a (N.O.) contact in the current cursor position. b (N.C.) Contact Input Enters a b (N.C.) contact in the current cursor position. Coil Input Enters a coil in the current cursor position. b (N.C.) Contact Coil Input Enters a b (N.C.) contact coil in the current cursor position.
Appendices ■ Shortcut key list ● File [ ] indicates the space bar. New [Ctrl] + [N] Open [Ctrl] + [O] Save [Ctrl] + [S] Print [Ctrl] + [P] PLC Monitor [Ctrl] + [F1] Convert → Transfer → Monitor [Ctrl] + [F8] Simulator [Ctrl] + [F2] Appendices ● Edit Undo [Ctrl] + [Z] Redo [Ctrl] + [Y] Symbol Selective Input [Tab] Symbol Direct Input [ENTER] (Mnemonic can be entered.) Delete Symbol [ ] [BackSpace] [Delete] a (N.O.) Contact Input [F5] b (N.C.) Contact Input [Shift] + [F5] a (N.
Appendices Jump to the top [Ctrl] + [Home] Jump to the bottom [Ctrl] + [End] Jump to a registered line [Ctrl] + [J] Line Registration [Ctrl] + [L] Next Block [Ctrl] + [DOWN] Previous Block [Ctrl] + [UP] Find [Home] [Ctrl] + [F] Search Backward [F2] Search Forward [F3] Search for OUT Backward [Shift] + [F2] Search for OUT Forward [Shift] + [F3] Replace Operand [Ctrl] + [R] Convert a-b (N.O.-N.C.
Appendices G-2 Simulator ■ Function list and menu A brief description of functions and commands (menu buttons) used to execute the functions are given below. For detailed descriptions, refer to the corresponding reference page. Reading/saving a window File ➔ Open Window ➔ Save Window As Reads a monitor all file. Saves the current monitor all window with a new file name (extension: kal). Reading and saving a registration monitor window File ➔ Open Window ➔ Save Window As Reads a registration monitor file.
Appendices Jump and search Edit ➔ Jump in Ladder Monitor ➔ Search in Ladder Monitor ➔ Search for Device at Cursor Position in Ladder Monitor Searches for instruction words and operands, or jumps to a specified line. 2-105 2-106 2-107 Monitor all 2-109 2-113 2-118 2-118 Registration monitor Displaying a registration monitor window File ➔ Registration Monitor Displays current values, comments and timing charts for the registered devices.
Appendices Changing the mode File ➔ Editor Editor Changes to editor mode. Clearing devices and selecting the editor File ➔ Clear Device and Go to Editor Clears devices, and then changes to the editor. 2-87 2-87 Printout Appendices Printing the registration monitor File ➔ Print Prints out the contents currently displayed on the registration monitor. 2-190 KVSKA Appendix.P65 190 08.3.
Appendices ■ Tool bar list Editor Returns to the editor without clearing device values. Show Ladder Monitor Always at Bottom Always shows the ladder monitor window at the bottom when two or more windows are displayed. This function is convenient when registering devices from the ladder monitor to the monitor all or the registration monitor. Ladder Monitor Displays a ladder monitor window. Registration Monitor Displays a new registration monitor window.
Appendices Registers the break condition, and displays the break condition window. Wait Time Sets the wait time. No. of Scales for Timing Chart Sets the number of scales (one scale = one scan or one instruction) shown on timing charts displayed on the registration monitor. Reset Returns current values to their default values. Stops operations if operations have been performed. Using Help Displays the online help. Appendices Break Condition 2-192 KVSKA Appendix.P65 192 08.3.
Appendices ■ Shortcut key list [ ] indicates the space bar.
Appendices ● Operations in the ladder monitor Move between panes [F5] Move cursor [LEFT]•[RIGHT]•[DOWN]•[UP] Move cursor by unit of block [Ctrl] + [DOWN]•[UP] Move cursor to the beginning of line [Home] Move cursor to the end of line [End] Reverse bit devices [ ] Read values to dialog bar [ENTER] Switch numbering system (decimal ÷ hexadecimal) [Ctrl]+[E] Appendices ● Operations in the registration monitor Move cursor [DOWN]•[UP] Move vertical cursor on timing chart [LEFT]•[RIGHT] Change
Appendices G-3 Monitor ■ Function list and menu A brief description of functions available in the monitor are given below. For detailed descriptions, refer to the corresponding reference page. Reading/saving a window 2-111 2-121 2-120 2-150 Setting communication parameters Setting serial ports Settings ➔ Serial Port Sets the COM port and baud rate (communication speed).
Appendices Initializing devices Device all clear Settings ➔ Device All Clear ➔ DM All Clear ➔ Latching Relay All Clear ➔ Counter All Clear Sets the current value of each device to 0 (OFF). 2-154 Ladder monitor Appendices Displaying a ladder monitor window File ➔ Ladder Monitor Displays the ladder diagram of the ladder program currently being simulated. In this window, the ON/OFF status of bit devices can be changed, and the attribute (bit count and radix) can be changed using the dialog bar.
Appendices 2-129 2-125 2-127 2-127 2-128 Changing the current value/preset value/attribute (dialog bar) Change device types, device numbers, current values, preset values, etc. using the dialog bar, or register new devices to each monitor. Set the bit count, radix and comment display method.
Appendices Appendices ■ Tool bar list Editor Exits from the monitor, and returns to the editor. Show Ladder Monitor Always at Bottom Always shows the ladder monitor window at the bottom when two or more windows are displayed. This function is convenient when performing operations on another window. Ladder Monitor Displays a ladder monitor window. Registration Monitor Displays a registration monitor window. Monitor All Displays a monitor all window.
Appendices ■ Shortcut key list ● File [ ] indicates the space bar.
Appendices ● Operations in the registration monitor Move cursor [UP]•[DOWN] Move vertical cursor on timing chart [LEFT]•[RIGHT] Reverse bit devices [ ] Reads values to dialog bar [ENTER] Delete devices [Delete] ● Operations in the monitor all Move cursor [DOWN]•[UP] Move bit cursor (only for binary 16-bit bit devices) [LEFT]•[RIGHT] Reverse bit devices [ ] Reads values to dialog bar [ENTER] Appendices ● Other operations common to all the windows Close window [Ctrl] + [F4] Move between w
Appendices Appendix H Notes for Programming This appendix describes important points and precautions for creating ladder programs. H-1 Circuits that must be modified • The circuit shown on the left cannot be programmed. Modify it as shown on the right. A 0500 B C E B E D 0500 A E A A D Appendices C 1 • Output is disabled in 0500 in the circuit shown on the left. By modifying it as shown on the right, output of one scan only is disabled.
Appendices H-2 Precautions for programming • A coil output or timer/counter cannot be connected directly from a bus. When an output coil or a timer/counter is required, insert a b contact of an unused internal utility relay, a b contact of an unused special utility relay, or a special utility relay 2002 (always ON) as a dummy. 0500 0500 2002 #0010 T000 #0010 T000 • A contact cannot be connected to an output line.
Appendices H-3 Programs which cannot be decompiled When a return is included in parallel connection in a ladder program, a decompilation (reverse compilation) error is generated as shown in Fig. a below. To prevent this, change the ladder diagram to eliminate the return, or separate the parallel connection. A B C D E F G Appendices H 1 I Fig. a A B C D E F G H A I Fig. b 2-203 KVSKA Appendix.P65 203 08.3.
Appendices Appendix I List of Files Used This appendix describes files generated when the Ladder Builder for KV is executed. Files generated in the data directory Appendices ********.LDC ********.LDR ********.RCM ********.CM2 ********.CM3 ********.LVL ********.ERR ********.MNM ********.COD ********.KRE ********.KAL ********.KDV ********.INT ********.
Appendices Appendix J Countermeasures for Frequent Communication Errors Check the following points if communication errors frequently occur while you monitor the KV Series with the LADDER BUILDER for KV. Note: Each parameter setting may vary depending on the computer. For setting details, refer to the instruction manual supplied with your computer or ask the manufacturer of the computer.
Appendices Appendices 2-206 KVSKA Appendix.P65 206 08.3.
Index KVNKA Index_Soft.p65 207 08.3.
Index — For Visual KV User’s Only Index — For Visual KV User’s Only The following is the index with some descriptions for your reference.
Index — For Visual KV User’s Only Purpose High-speed counter, resetting the value to "0" Title Page Resetting the high-speed counter 3-214 High-speed counter, selecting input source for Count input method 3-212 High-speed counter, specifications of Specifications of high-speed counters 3-208 High-speed counter, specifying the preset value of Preset value of the high-speed counter comparator 3-211 High-speed counter, using, as ring counter Ring counter function 3-225 I Input time constant of
Index — For KV-300, KV-10/80 User’s Only Index — For KV-300, KV-10/80 User’s Only A F A/D converter .......................... 1-312 [AN6], 1-334 [AD4] A/D conversion table ............... 1-408 [AN6], 1-357 [AD4] ADD/@ADD: Add .................................................... 3-150 AND: And .................................................................. 3-58 ANB: And Bar ............................................................ 3-58 ANDA/@ANDA: And A ............................................
Index — For KV-300, KV-10/80 User’s Only MPX/@MPX: Multiplexer ........................................ 3-176 MRD: Read ............................................................. 3-103 MUL/@MUL: Multiply .............................................. 3-150 System Configuration (Memory Card) .................... 1-196 System specifications [Visual KV Series] ............... 1-382 System specifications [KV-300 Series] .................. 1-392 T O OR: Or .................................................
Index — Software/P3E (handheld programmer) Index — Software/P3E (handheld programmer) MULTI-MONITOR [P3E] ........................................ 1-212 A ACCS ..................................................................... 1-234 ALL CLEAR [FNC60] [P3E] .................................... 1-217 ALL DATA MEMORY CLEAR (DM ALL CLEAR): [FNC64] [P3E] ..................... 1-219 ALL LATCHING RELAYS RESET (L-RELAY ALL RST): [FNC65] [P3E] .................. 1-219 B Break signal ...........................
Index 1 1 Index KVNKA Index_Soft.p65 213 08.3.
Index 2-214 Index KVNKA Index_Soft.p65 214 08.3.
WARRANTIES AND DISCLAIMERS: Safety Precautions This instruction manual describes the operation and function of the KV Series PLC. Read this manual carefully to ensure safe use and maximum performance from your KV Series PLC. Symbols The following symbols alert you to important messages. Be sure to read these messages carefully. Failure to follow instructions may lead to injury. (electric WARNING shock, burn, etc.) CAUTION Note: Failure to follow instructions may lead to product damage.
96M0365 INDEX 1 2 3 Installation Support Software Programming 1. Configuration and Specifications 2. System Installation 3. Access Window 1. Programming 1. Introduction 2. Instructions 2. Editor 3. Interrupts 4. High-speed Counters 4. Monitor 5. Positioning Control 5. KV-10/80 Hardware 5. Appendices 6. Interrupts, High-speed Counters, Positioning Control 6. Handheld Programmer 7. Serial Communication 7. KV-L2 Serial Interface Module 8. Programming Examples 8.