Professional Documents
Culture Documents
Ladder Building
Ladder Building
INDEX
1 2 3
Installation Support Programming
1. Configuration and
Software
1. Introduction 1. Programming
User's Manual
Symbols
The following symbols alert you to important messages. Be sure to read these
messages carefully.
Conventions
This manual describes the operation/function of all Keyence KV Series PLC.
Note following conventions when you use.
General Precautions
• At startup and during operation, be sure to monitor the functions and perfor-
mance of the KV Sereis PLC.
• We recommend that you take substantial safety measures to avoid any damage
in the event a problem occurs.
• Do not open or modify the KV Series PLC or use it in any way other than de-
scribed in the specifications.
• When the KV Series PLC is used in combination with other instruments, func-
tions and performance may be degraded, depending on operating conditions and
the surrounding environment.
• Do not use the KV Series PLC for the purpose of protecting the human body.
Note: The built-in display may show the error message "Error 40" blinking the very
first time you turn on the power supply to the Visual KV Series. Press any key
around the display to cancel this message.
The Visual KV Series shows this message when no program is loaded.
(1)
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.
• Use in conditions or environments not described in this manual
• Use for nuclear power control, railway facilities, air service facilities, vehicles,
combustion devices, medical equipment, amusement machines, safety equip-
ment, etc.
• Use for applications where large effects are predicted to be given on human lives
and properties and safety is especially requested.
Note: The contents above do not by themselves ensure that the entire machine
manufactured in accordance with the above contents is compatible with EMC
directives.
You must judge by yourself whether or not the entire machine is compatible with
EMC directives because compatibility may change depending on the component
configuration, wiring and location inside of the machine.
(2)
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.
(3)
● Interrupt function
The Visual KV Series is equipped with four high-speed interrupt inputs of
10 µs maximum.
• The internal clock cycle of high-speed counters consists of three types: 1 µs, 10
µs, and 100 µs.
• The time constant for an input relay specified by the HSP instruction is 10 µs.
• The analog trimmer function is set with the Access Window built into the basic
unit.
• The available device setting range of the TMIN instruction is from 0 to 65535.
[Handheld programmer KV-P3E(01) can display 0 to 9999 .]
• The RUN/PROGRAM LED is displayed in the Access Window provided on the
front face of the basic unit.
• Transistor output is not independent, but is common.
• With the transistor type, the output terminal layout is different.
• The specifications for output current of transistor outputs Nos. 500 to 502 is 100
mA.
• Conventional KV Series expansion units are not available as expansion units for
the Visual KV Series.
• The channel setting switch is not provided for expansion units. Channels are
determined in connection order.
• Scans in expansion I/O units are not synchronous with the scan time in Visual KV
Series basic units.
• Assignment of special utility relays has partially changed.
• Data memory device Nos. DM1000 to DM1999 are assigned as special data
memories.
(4)
Cautions when using the previous version of ladder support software
Pay strict attention to the following items when using the ladder support software.
• 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
CAUTION used, do not use the monitor’s Change All function. If the Change All function
is used, the basic unit may be damaged. Never use the Change All function.
Peripheral units and other units incompatible with the Visual KV Series
Peripheral units in the conventional KV Series and other units shown below are not
compatible with the Visual KV Series.
• Expansion I/O units for the conventional KV Series: KV-8ER/8ET/8EX/16EX/
8EYR/8EYT/16EYR/16EYT
• Analog I/O units for the conventional KV Series: KV-AD4/DA4
(5)
Cautions when writing in RUN mode
• In the Visual KV Series, a program can be changed using the ladder sup-
WARNING port software "LADDER BUILDER for KV" even while the program is run-
ning.
• 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.
Note 1: When a ladder program is changed while it is running, it is not saved in the
EEPROM but is saved in the SRAM, then will be saved in the EEPROM when the
power is next turned on. If the power OFF period is 2 months or longer at 25°C (20
days or longer at 25°C for the KV-10xx) after a ladder program is changed in RUN
mode, the changed ladder program may become corrupted. To prevent inconsisten-
cies, turn on the power once so that the changed program is saved in the EEPROM.
Note 2: If an error occurs in the Visual KV Series basic unit while a program is being
written in RUN mode, the Visual KV Series basic unit changes to PROGRAM mode
and the existing program which is being written may be deleted. In such a case,
transfer the program again.
(6)
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 10 Troubleshooting
This chapter describes the error code list, countermeasures against problems, and error
indications for each unit.
Appendices
The appendix includes a list of ladder program applications and the index.
2 Support Software
Chapter 1 Introduction
Describes the items included in the package, the product outline, the method to connect
a personal computer, the installation method, etc.
(7)
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.
3 Programming
Chapter 1 Programming
Describes basic knowledge including program creation procedures, device configuration,
relay assignments, special functions to set and confirm Visual KV Series operations, as
well as the extended ladder diagrams. Understand the contents described here com-
pletely at first before creating programs.
Chapter 2 Instructions
Describes the concrete usage of instructions in the KV Series.
Refer to "Chapter 3 Interrupts" on page 3-183 for details of interrupt instructions.
Refer to "Chapter 4 High-speed counters" on page 3-195 for details of the high-speed
counters used in the application instruction.
Chapter 6 Interrupts, High-speed Counters, Positioning Control [KV-300, KV-10/80 Series Only]
Describes ramp-up/down control of stepping motors and servo motors.
(8)
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-4
Features of the Ladder Builder for KV ......................................................... 2-4
Functions of the Ladder Builder for KV ........................................................ 2-6
1.3 Before Programming ....................................................................................... 2-7
Machines to be prepared ............................................................................. 2-7
1.3.1 Differences from the KV IncrediWare (DOS) ...................................................... 2-8
1.3.2 Differences from the Ladder Builder for KV Ver 1.0 ........................................... 2-8
1.4 Installing the Software ..................................................................................... 2-9
1.4.1 Preparation for installation .................................................................................. 2-9
1.4.2 Installation Procedure ....................................................................................... 2-10
Installation in Windows 95 ......................................................................... 2-10
Installation in Windows 3.1 ........................................................................ 2-12
1.5 Cautions for Use ............................................................................................ 2-13
1.6 Basic Operations ........................................................................................... 2-14
1.6.1 Program creation flow and available modes ..................................................... 2-14
1.6.2 Starting up and exiting from the software ......................................................... 2-16
1.6.3 Screen .............................................................................................................. 2-18
1.6.4 Mouse operation and keyboard operation ........................................................ 2-21
1.6.5 Online Help ....................................................................................................... 2-23
Chapter 2 Editor
2.1 Outline of the Editor Functions .................................................................... 2-26
2.1.1 Cautions for editing ladder programs ................................................................ 2-26
2.2 Edit Screen ..................................................................................................... 2-27
2.2.1 Name and function of each part of the screen .................................................. 2-27
2.2.2 Ladder program window screen ....................................................................... 2-28
2.3 File Management ............................................................................................ 2-29
2.3.1 Creating a new file ............................................................................................ 2-29
2.3.2 Setting the automatic file read function ............................................................. 2-30
2.3.3 Setting automatic file save for the file ............................................................... 2-31
2.3.4 Saving and reading files ................................................................................... 2-32
2.3.5 Reading and saving a file in another format ..................................................... 2-33
2.3.6 Saving a ladder diagram in text format ............................................................. 2-36
2.3.7 Verifying files .................................................................................................... 2-36
2.4 Entering/Deleting Symbols and Connection Lines .................................... 2-37
2.4.1 Entering symbols .............................................................................................. 2-37
2.4.2 Deleting symbols .............................................................................................. 2-42
2.4.3 Entering contacts/coils directly ......................................................................... 2-42
2.4.4 Changing the device at the current cursor position .......................................... 2-43
2.4.5 Entering/Deleting connection lines ................................................................... 2-44
2.4.6 Canceling edit operations ................................................................................. 2-45
2.5 Entering Comments/Labels ......................................................................... 2-46
2.5.1 Editing comments/labels ................................................................................... 2-46
2.5.2 Editing line comments ....................................................................................... 2-50
2.5.3 Changing ladder lines into comments ............................................................... 2-51
2.6 Edit and Arrangement .................................................................................. 2-52
2.6.1 Copy, move, and delete .................................................................................... 2-52
2.6.2 Inserting and deleting lines ............................................................................... 2-57
2.7 Jump, Search, and Replace ......................................................................... 2-58
2.7.1 Jump ................................................................................................................. 2-58
2.7.2 Searching for instruction words/operands ........................................................ 2-62
2.7.3 Searching for the device at the cursor position ................................................. 2-63
(9)
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 .................................................................................... 2-69
2.9 Displaying the Use Status ............................................................................. 2-70
2.9.1 Displaying a use status list ............................................................................... 2-70
2.10 Setting the System .........................................................................................2-71
2.10.1 Setting the system ............................................................................................ 2-71
2.11 Entering and Developing Macros ................................................................ 2-72
2.11.1 Creating a macro file .........................................................................................2-72
2.11.2 Entering and developing macros ...................................................................... 2-74
2.12 Compilation .................................................................................................... 2-75
2.12.1 Executing compilation ....................................................................................... 2-75
2.12.2 Error display ......................................................................................................2-76
2.12.3 Double coil check .............................................................................................. 2-76
2.13 Printing Functions .........................................................................................2-77
2.13.1 Printing .............................................................................................................. 2-77
2.13.2 Preview display ................................................................................................. 2-81
2.14 Changing the Display Color on the Screen ................................................. 2-82
2.14.1 Changing display colors on the screen ............................................................. 2-82
Chapter 3 Simulator
3.1 Outline of the Simulator Functions .............................................................. 2-84
3.1.1 Outline of the functions ..................................................................................... 2-84
3.1.2 Restrictions in the simulator .............................................................................. 2-84
3.2 Starting up and Exiting from the Simulator ................................................. 2-86
3.2.1 Operating procedure for startup and exit .......................................................... 2-86
3.2.2 Name and function of each part of the screen .................................................. 2-88
3.3 Ladder Monitor ...............................................................................................2-89
3.3.1 Outline of the ladder monitor ............................................................................ 2-89
3.3.2 Executing scans ................................................................................................2-89
3.3.3 Executing steps .............................................................................................. 2-101
3.3.4 Jump and search ............................................................................................ 2-105
3.3.5 Stop/reset and device all clear ........................................................................ 2-108
3.4 Monitor All .................................................................................................... 2-109
3.4.1 Outline of monitor all ....................................................................................... 2-109
3.4.2 Displaying, saving, and reading the monitor all window ................................. 2-109
3.4.3 Monitor all window .......................................................................................... 2-113
3.4.4 Registering devices ........................................................................................ 2-113
3.4.5 Selecting and changing devices ..................................................................... 2-116
3.5 Registration Monitor .................................................................................... 2-119
3.5.1 Outline of the registration monitor ................................................................... 2-119
3.5.2 Displaying, saving, and reading the registration monitor ................................ 2-119
3.5.3 Registration monitor window ........................................................................... 2-122
3.5.4 Registering devices ........................................................................................ 2-122
3.5.5 Selecting and changing devices ..................................................................... 2-123
3.5.6 Manipulating timing charts .............................................................................. 2-128
3.5.7 Printing out the registration monitor ................................................................ 2-131
Chapter 4 Monitor
4.1 Outline of the Monitor Functions ............................................................... 2-134
4.1.1 Outline of the functions ................................................................................... 2-134
4.1.2 Restrictions in the monitor .............................................................................. 2-134
4.1.3 Precautions for communication ...................................................................... 2-135
4.2 Communicating with the PLC ..................................................................... 2-136
4.2.1 Setting the PLC communication parameters .................................................. 2-136
4.2.2 Setting the comment transfer .......................................................................... 2-138
4.3 Starting up and Exiting from the Monitor .................................................. 2-139
4.3.1 Operating procedures for startup and exit ...................................................... 2-139
(10)
4.3.2 Name and function of each part of the screen ................................................ 2-143
4.4 Ladder Monitor ............................................................................................. 2-144
4.4.1 Outline of the ladder monitor .......................................................................... 2-144
4.4.2 Displaying the ladder monitor window ............................................................ 2-144
4.4.3 PLC error check .............................................................................................. 2-144
4.4.4 Starting the monitor ........................................................................................ 2-145
4.4.5 Stopping the monitor ....................................................................................... 2-145
4.4.6 Screen displayed while the monitor is running ............................................... 2-146
4.4.7 Setting the PLC operation mode ..................................................................... 2-147
4.5 Monitor All and Registration Monitor ......................................................... 2-148
4.5.1 Functions of the monitor all window ................................................................ 2-148
4.5.2 Functions of the registration monitor .............................................................. 2-148
4.6 Monitor Function .......................................................................................... 2-149
4.6.1 Disabling the input refresh/Disabling the output ............................................. 2-149
4.6.2 Changing the current values all at once ......................................................... 2-150
4.6.3 Device all clear ...............................................................................................2-154
Appendices
Appendix A Error Message List ......................................................................... 2-156
A-1 System errors ................................................................................................. 2-156
A-2 Memory errors ................................................................................................2-156
A-3 File errors ........................................................................................................ 2-157
A-4 Installation errors ............................................................................................ 2-157
A-5 Errors that occur in the editor ......................................................................... 2-158
A-6 Errors that occur in the monitor/simulator ....................................................... 2-159
A-7 Communication errors (displayed in the monitor) ........................................... 2-159
A-8 PLC errors ......................................................................................................2-160
A-9 Errors that occur during compilation ............................................................... 2-161
Appendix B Instruction List ............................................................................... 2-163
B-1 Basic instructions ............................................................................................ 2-163
B-2 Application instructions ................................................................................... 2-164
B-3 Arithmetic instructions ..................................................................................... 2-165
B-4 Interrupt instructions ....................................................................................... 2-166
Appendix C Relay No. List .................................................................................. 2-167
C-1 Relays, timers, counters, and memory numbers for each model ................... 2-167
Appendix D Special Utility Relay List ................................................................ 2-168
D-1 Special relays and arithmetic operation flags ................................................. 2-168
D-2 Special utility relays for high-speed counter (0) .............................................. 2-168
D-3 Special utility relays for high-speed counter (1) .............................................. 2-169
D-4 Other special utility relays ............................................................................... 2-169
D-5 Memory switches ............................................................................................ 2-172
D-6 Special memory list .........................................................................................2-172
Appendix E Devices for KV-10R(W)/T(W) to 80R(W)/T(W), KV-300 ................ 2-174
E-1 Special utility relays ........................................................................................ 2-174
E-2 Memory switches ............................................................................................ 2-176
E-3 Special memory list .........................................................................................2-176
Appendix F Sample Program List ..................................................................... 2-178
F-1 Description of sample ladder programs .......................................................... 2-178
Appendix G Quick Reference ............................................................................. 2-180
G-1 Editor .............................................................................................................. 2-180
G-2 Simulator ......................................................................................................... 2-188
G-3 Monitor ............................................................................................................2-195
Appendix H Notes for Programming ................................................................. 2-201
H-1 Circuits that must be modified ........................................................................ 2-201
H-2 Precautions for programming ......................................................................... 2-202
H-3 Programs which cannot be decompiled .......................................................... 2-203
Appendix I List of Files Used ............................................................................ 2-204
Appendix J Countermeasures for Frequent Communication Errors ............. 2-205
(11)
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 ........................................................................................ 1-4
1.2.2 AC Power Specifications .................................................................................... 1-5
Visual KV Series operation at power interruption ........................................ 1-5
1.2.3 Performance Specifications ................................................................................ 1-6
Data backup function against instantaneous power interruption ................. 1-7
1.3 Common I/O Specifications of Basic Units ................................................... 1-8
1.3.1 Model of a Basic Unit .......................................................................................... 1-8
1.3.2 Common I/O Specifications ................................................................................ 1-8
1.4 KV-10AR/AT(P)/DR/DT(P) (10-I/O Basic Unit) ............................................. 1-10
1.4.1 Part Names and Functions ............................................................................... 1-10
1.4.2 Terminal Layout Drawings and I/O Circuit Diagrams ........................................ 1-11
KV-10AR/DR (Relay output type) .............................................................. 1-11
KV-10AT(P)/DT(P) (Transistor output type) ............................................... 1-13
1.4.3 AC Power Input (KV-10AR/AT(P)) .................................................................... 1-14
1.4.4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1-15
1.4.5 Dimensions ....................................................................................................... 1-16
1.5 KV-16AR/AT(P)/DR/DT(P) (16-I/O Basic Unit) ............................................. 1-17
1.5.1 Part Names and Functions ............................................................................... 1-17
1.5.2 Terminal Layout Drawings and I/O Circuit Diagrams ........................................ 1-18
KV-16AR/DR (Relay output type) .............................................................. 1-18
KV-16AT(P)/DT(P) (Transistor output type) ............................................... 1-20
1.5.3 AC Power Input (KV-16AR/AT(P)) .................................................................... 1-21
1.5.4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1-22
1.5.5 Dimensions ....................................................................................................... 1-23
1.6 KV-24AR/AT(P)/DR/DT(P) (24-I/O Basic Unit) ............................................. 1-24
1.6.1 Part Names and Functions ............................................................................... 1-24
1.6.2 Terminal Layout Drawings and I/O Circuit Diagrams ........................................ 1-25
KV-24AR/DR (Relay output type) .............................................................. 1-25
KV-24AT(P)/DT(P) (Transistor output type) ............................................... 1-27
1.6.3 AC Power Input (KV-24AR/AT(P)) .................................................................... 1-28
1.6.4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1-29
1.6.5 Dimensions ....................................................................................................... 1-30
1.7 KV-40AR/AT(P)/DR/DT(P) (40-I/O Basic Unit) .............................................. 1-31
1.7.1 Part Names and Functions ............................................................................... 1-31
1.7.2 Terminal Layout Drawings and I/O Circuit Diagrams ........................................ 1-32
KV-40AR/DR (Relay output type) .............................................................. 1-32
KV-40AT(P)/DT(P) (Transistor output type) ............................................... 1-34
1.7.3 AC Power Input (KV-40AR/AT(P)) .................................................................... 1-35
1.7.4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1-36
1.7.5 Dimensions ....................................................................................................... 1-37
1.8 KV-E4X/E8X/E16X (Expansion Input Unit) .................................................. 1-38
1.8.1 Part Names and Functions ............................................................................... 1-38
1.8.2 Input Specifications ........................................................................................... 1-38
1.8.3 Terminal Layout Drawings and Input Circuit Diagrams .................................... 1-39
KV-E4X (4-I/O expansion input unit) .......................................................... 1-39
KV-E8X (8-I/O expansion input unit) .......................................................... 1-40
KV-E16X (16-I/O expansion input unit) ...................................................... 1-41
1.8.4 Dimensions ....................................................................................................... 1-42
1.9 KV-E4R/E4T/E8R/E8T(P)/E16R/E16T(P) (Expansion Output Unit) ............. 1-43
1.9.1 Part Names and Functions ............................................................................... 1-43
1.9.2 Output Specifications ........................................................................................ 1-43
KV-E4R/E8R/E16R (Relay output type) ..................................................... 1-44
KV-E4T/E8T(P)/E16T(P) [Transistor output type (NPN/PNP)] .................. 1-44
1.9.3 Terminal Layout Drawings and Input Circuit Diagrams .................................... 1-45
KV-E4R [4-I/O expansion output unit (relay output type)] .......................... 1-45
KV-E4T [4-I/O expansion output unit transistor output type)] .................... 1-46
KV-E8R [8-I/O expansion output unit (relay output type)] .......................... 1-47
(12)
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 KV-E4XR/E4XT(P) (Expansion I/O Unit) ....................................................... 1-52
1.10.1 Part Names and Functions ............................................................................... 1-52
1.10.2 Input Specifications ........................................................................................... 1-53
1.10.3 Output Specifications ........................................................................................ 1-53
KV-E4XR (Relay output type) .................................................................... 1-53
KV-E4XT(P) (Transistor output type) ......................................................... 1-53
1.10.4 Terminal Layout Drawings and Input Circuit Diagrams .................................... 1-54
KV-E4XR (Relay output type) .................................................................... 1-54
KV-E4XT(P) (Transistor output type) ......................................................... 1-56
1.10.5 Dimensions ....................................................................................................... 1-58
1.11 KV-D20 (Operator Interface Panel) ............................................................... 1-59
1.11.1 Part Names and Functions ............................................................................... 1-59
1.11.2 General Specifications ...................................................................................... 1-60
1.11.3 Functional Specifications .................................................................................. 1-60
1.11.4 Dimensions ....................................................................................................... 1-61
(13)
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 ................ 1-88
Changing a numeric value ......................................................................... 1-89
Holding the setting ..................................................................................... 1-91
3.4.2 Screen Display for Each Device Type .............................................................. 1-91
Data memory (DM) .................................................................................... 1-91
Temporary data memory (TM) ................................................................... 1-91
Timer/counter (T/C) .................................................................................... 1-92
High-speed counter comparator (CTC) ...................................................... 1-92
Trimmer (TRM) .......................................................................................... 1-93
Relay (RLY) ...............................................................................................1-93
3.5 System Mode .................................................................................................. 1-94
3.5.1 Function and Operating Procedure ................................................................... 1-94
Key operation and screen display .............................................................. 1-94
LOAD mode and SAVE mode .................................................................... 1-96
Display in LOAD/SAVE mode .................................................................... 1-96
3.6 Message Display ............................................................................................ 1-97
3.6.1 Error Messages and Error Status ..................................................................... 1-97
3.6.2 User Messages ................................................................................................. 1-97
How to use the user messages .................................................................. 1-98
(14)
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 ...................................................................... 1-146
Example of frequency counter ................................................................. 1-149
Example of 24-bit high-speed counter ..................................................... 1-152
Example of cam switch function ............................................................... 1-154
4.4 Appendix ....................................................................................................... 1-158
4.4.1 Troubleshooting .............................................................................................. 1-158
4.4.2 Available Character List .................................................................................. 1-162
4.4.3 Comment Draft Sheet ..................................................................................... 1-163
(15)
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 ..................................................... 1-217
COUNTER CLEAR .................................................................................. 1-218
HIGH-SPEED COUNTER CLEAR ........................................................... 1-218
ALL DATA MEMORY CLEAR .................................................................. 1-219
ALL LATCHING RELAYS RESET ........................................................... 1-219
PROGRAM SENT OR RECEIVED .......................................................... 1-220
OFFLINE EDITOR START ...................................................................... 1-221
OFFLINE EDITOR STOP ........................................................................ 1-221
TIMER/COUNTER CURRENT VALUE CHANGE ................................... 1-222
TIMER/COUNTER SETTING CHANGE .................................................. 1-224
RELAY ON/OFF ....................................................................................... 1-226
WRITE INTO DATA MEMORY ................................................................ 1-227
READ TRIMMER SETTING ..................................................................... 1-228
SYNTAX CHECK ..................................................................................... 1-228
PROGRAM CAPACITY CHECK .............................................................. 1-229
6.4 Memory Card ................................................................................................ 1-230
6.4.1 Functions [used with KV-P3E(01)] .................................................................. 1-230
6.4.2 Storage Capacity ............................................................................................ 1-230
CLEAR ..................................................................................................... 1-232
NEW ......................................................................................................... 1-233
ACCS ....................................................................................................... 1-234
ACCS: SAVE ........................................................................................... 1-235
ACCS: LOAD ........................................................................................... 1-236
ACCS: VERIFY ........................................................................................ 1-236
ACCS: DELETE ....................................................................................... 1-237
(16)
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 ........................................................................... 1-275
List of commands and responses ............................................................ 1-275
Description of commands and responses ................................................ 1-277
End codes ................................................................................................1-291
7.7 Non-procedure Mode Programming .......................................................... 1-292
7.7.1 Operating in Non-procedure Mode ................................................................. 1-292
Communications protocol ........................................................................ 1-292
Connecting to the KV-L2 .......................................................................... 1-293
7.7.2 Assignment of Relay Nos. and Data Memory Address Nos. .......................... 1-294
Assigning relay nos. and data memory address nos. .............................. 1-294
7.7.3 Transmitting Text Data ................................................................................... 1-297
Data transmission and internal data memory addresses ......................... 1-297
7.7.4 Receiving Text Data ....................................................................................... 1-298
Format of received data and data memory addresses ............................ 1-298
7.7.5 ASCII code/Binary Conversion Function ........................................................ 1-300
7.8 Troubleshooting Guide ............................................................................... 1-304
7.8.1 Troubleshooting .............................................................................................. 1-304
7.8.2 Precautions .....................................................................................................1-305
7.9 Specifications ...............................................................................................1-306
7.9.1 Specifications .................................................................................................. 1-306
General specifications .............................................................................. 1-306
Communications protocol ........................................................................ 1-306
RS-232C connector specifications ........................................................... 1-306
RS-422A terminal block specifications ..................................................... 1-306
7.9.2 Dimensions .....................................................................................................1-307
7.10 Command List .............................................................................................. 1-308
7.10.1 List of Commands and Responses ................................................................. 1-308
7.10.2 List of Commands and Responses in Display Interface mode ....................... 1-309
(17)
Chapter 9 KV-AD4/DA4 Analog I/O Unit KV-10/80
9.1 Outline ......................................................................................................... 1-334
Features ................................................................................................... 1-334
9.2 Configuration ............................................................................................... 1-335
9.2.1 Part Names and Functions ............................................................................. 1-335
KV-AD4 .................................................................................................... 1-335
KV-DA4 .................................................................................................... 1-336
9.2.2 Specifications .................................................................................................. 1-337
KV-AD4 .................................................................................................... 1-337
KV-DA4 .................................................................................................... 1-339
9.2.3 System Configuration ..................................................................................... 1-341
9.3 Installation .................................................................................................... 1-342
9.3.1 Installation Procedure ..................................................................................... 1-342
9.3.2 Checking the Installation Environment ........................................................... 1-343
9.3.3 Setting the KV-AD4 Input Mode ...................................................................... 1-344
Setting the input mode ............................................................................. 1-344
9.3.4 Connecting External Instruments .................................................................... 1-345
Wiring ....................................................................................................... 1-345
Wiring diagrams ....................................................................................... 1-346
9.3.5 Connecting to the KV-10 to 80 ........................................................................ 1-348
9.3.6 Maintenance ................................................................................................... 1-349
Inspection and Cleaning .......................................................................... 1-349
9.4 Programming ................................................................................................ 1-350
9.4.1 Programming the KV-AD4 .............................................................................. 1-350
A/D Conversion Mechanism .................................................................... 1-350
About Digital Data after A/D Conversion .................................................. 1-351
Calculating Voltage and Current Values from Digital Data ...................... 1-352
9.4.2 Programming the KV-DA4 .............................................................................. 1-353
D/A Conversion Mechanism .................................................................... 1-353
Converting Digital Data to Voltage or Current Values to be Output ......... 1-354
Writing Digital Data to Data Memory for D/A Conversion ........................ 1-356
9.4.3 A/D and D/A Conversion Tables ..................................................................... 1-357
Voltage Conversion Table ........................................................................ 1-357
Current Conversion Table ........................................................................ 1-358
9.5 Programming Examples .............................................................................. 1-359
Calculating Analog Data Values from Digital Data ................................... 1-359
Writing Data to be Analog-output ............................................................. 1-361
Outputting Analog Trimmer Values .......................................................... 1-364
Outputting Analog Input Data ................................................................... 1-365
Outputting Analog Input from a Pressure Sensor to an Air Valve ............ 1-366
Setting the Minimum and Maximum Voltage Limits and Measuring the
Average Voltage ...................................................................................... 1-367
9.6 Troubleshooting ........................................................................................... 1-370
Chapter 10 Troubleshooting
10.1 Error List ....................................................................................................... 1-372
10.1.1 List of Error Codes in Basic Units ................................................................... 1-372
10.1.2 Error indication in Expansion Units ................................................................. 1-374
10.1.3 Program Errors ............................................................................................... 1-375
10.1.4 Memory Card Errors and Other Errors ........................................................... 1-376
10.2 Replacing Relays ......................................................................................... 1-377
Replacement procedure ........................................................................... 1-377
10.3 Troubleshooting ........................................................................................... 1-378
10.3.1 Troubleshooting List ....................................................................................... 1-378
10.4 Error Messages ............................................................................................ 1-380
Appendices
Appendix A. Specifications and Dimensions [Visual KV Series] .................... 1-382
A.1 System Specifications [Visual KV Series] ....................................................... 1-382
Hardware ................................................................................................. 1-382
Software and Programming ..................................................................... 1-383
(18)
AC power supply unit ............................................................................... 1-384
A.2 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 .............................................................. 1-385
Output specifications (transistor output): KV-10AT(P)/DT(P),
KV-16AT(P)/DT(P), KV-24AT(P)/DT(P), and KV-40AT(P)/DT(P) ............ 1-385
A.3 Expansion Unit Specifications ........................................................................ 1-385
A.4 Dimensions .....................................................................................................1-389
Appendix B. Specifications and Dimensions [KV-300 Series] ......................... 1-392
B.1 System Specifications [KV-300 Series] .......................................................... 1-392
Hardware ................................................................................................. 1-392
Software and Programming ..................................................................... 1-393
AC Power supply module/DC power distribution module ........................ 1-394
B.2 Module Specifications ..................................................................................... 1-398
KV-300 CPU ............................................................................................ 1-398
KV-C16X/C32X Input Modules ................................................................ 1-399
KV-C32T/B16R/B16S Output Modules ................................................... 1-400
KV-R8X/R16X I/O Terminal Modules ....................................................... 1-401
KV-R8T/R16T/R8R/R16R I/O Terminal Modules ..................................... 1-402
KV-R8T/R16T/R8R/R16R I/O Terminal Modules (RUN Output) .............. 1-403
KV-R1A I/O Distribution Module .............................................................. 1-403
B.3 Dimensions .....................................................................................................1-404
Appendix C. Ladder Program List ...................................................................... 1-406
Appendix D. A/D and D/A Conversion Tables [KV-AN6] ..................................... 1-408
Voltage conversion table .......................................................................... 1-408
Current conversion table .......................................................................... 1-409
WARRANTIES AND DISCLAIMERS 1-419
3 Programming
Chapter 1 Programming
1.1 Before Creating Programs .............................................................................. 3-2
1.1.1 Flow from Introduction to Operation ................................................................... 3-2
1.1.2 Scan Time ........................................................................................................... 3-3
Scan time ..................................................................................................... 3-3
Input response time delay ............................................................................ 3-3
1.2 User Memory .................................................................................................... 3-4
1.2.1 Program Capacity ............................................................................................... 3-4
Maximum number of lines in a program ....................................................... 3-4
Calculating the byte count used ................................................................... 3-4
1.3 Device Configuration ....................................................................................... 3-5
1.3.1 Device List .......................................................................................................... 3-5
Relay list ...................................................................................................... 3-5
List of I/O relays in basic units ..................................................................... 3-5
List of relays in expansion units ................................................................... 3-6
1.3.2 Relay No. ............................................................................................................ 3-7
Address No. ................................................................................................. 3-7
Contact No. .................................................................................................. 3-8
Channel No. ................................................................................................. 3-8
1.3.3 Assigning Relay Nos. .......................................................................................... 3-8
1.3.4 Input Relays ........................................................................................................ 3-9
Basic unit ..................................................................................................... 3-9
Expansion unit ........................................................................................... 3-10
1.3.5 Output Relays ................................................................................................... 3-10
Output operation time ................................................................................ 3-10
1.3.6 Internal Utility Relays ........................................................................................ 3-11
Retentive function of internal utility relays .................................................. 3-11
1.3.7 Special Utility Relays ........................................................................................ 3-12
Description ................................................................................................. 3-12
1.3.8 Special Utility Relay List ................................................................................... 3-14
Special relays and arithmetic operation flags ............................................ 3-14
Special utility relays for high-speed counter(0) .......................................... 3-14
Special utility relays for high-speed counter(1) .......................................... 3-15
(19)
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 ................................................................................................. 3-19
1.3.11 Temporary Data Memory .................................................................................. 3-21
1.3.12 Relay Nos. and Functions ................................................................................. 3-22
1.4 Special Functions .......................................................................................... 3-23
1.4.1 Input Time Constant Change Function ............................................................. 3-23
Setting the input time constant for basic units using special utility relays .. 3-23
1.4.2 Modifying the Input Relay Time Constant ......................................................... 3-24
Modification within the CPU ....................................................................... 3-24
1.4.3 Constant Scan Time Mode ............................................................................... 3-25
1.4.4 Output Disabled Function ................................................................................. 3-26
1.4.5 Input Refresh Disabled Function ...................................................................... 3-26
1.4.6 Contact Comment Save Function ..................................................................... 3-27
1.4.7 Special Functions ............................................................................................. 3-28
Constant Scan Time Mode ........................................................................ 3-28
Output Disabled Function .......................................................................... 3-28
Input Refresh Disabled Function ................................................................ 3-28
1.5 Extended Ladder Diagrams .......................................................................... 3-29
1.5.1 Features of Extended Ladder Diagrams ........................................................... 3-29
1.5.2 Advantages of Extended Ladder Diagrams ...................................................... 3-30
1.5.3 Example of an Extended Ladder Diagram ........................................................ 3-31
Chapter 2 Instructions
2.1 Instruction List [Visual KV Series] .............................................................. 3-34
2.1.1 Basic Instructions .............................................................................................. 3-34
2.1.2 Application Instructions ..................................................................................... 3-36
2.1.3 Arithmetic Instructions ...................................................................................... 3-38
2.1.4 Interrupt Instructions .........................................................................................3-41
2.1.5 Function No. List (Alphabetical order) .............................................................. 3-41
2.2 Instruction List [KV-300 Series, KV-10/80] ................................................. 3-42
2.2.1 Basic Instructions .............................................................................................. 3-42
2.2.2 Application Instructions ..................................................................................... 3-45
2.2.3 Arithmetic Instructions ...................................................................................... 3-48
2.2.4 Interrupt Instructions .........................................................................................3-54
2.3 Convention Details ........................................................................................ 3-55
2.4 Instruction Details .......................................................................................... 3-56
2.4.1 Basic Instructions .............................................................................................. 3-56
2.4.2 Application Instructions ..................................................................................... 3-95
2.4.3 Arithmetic Instructions .................................................................................... 3-134
2.5 Programming Notes ..................................................................................... 3-189
(20)
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.2 Internal Clock for High-speed Counters .......................................................... 3-210
4.3 Setting and Operation of High-speed Counters ........................................ 3-211
4.3.1 Reading the Current Value of the High-speed Counter .................................. 3-211
4.3.2 Preset Value of the High-speed Counter Comparator .................................... 3-211
4.3.3 Comparator Output .........................................................................................3-211
4.3.4 Count Input Method ........................................................................................ 3-212
4.3.5 Resetting the High-speed Counter ................................................................. 3-214
4.3.6 Differences with the CTH Instruction between the
Conventional and Visual KV Series ................................................................ 3-216
4.3.7 Applications of High-speed Counters ............................................................. 3-217
4.4 Extended Functions of High-speed Counters ........................................... 3-221
4.4.1 24-bit High-speed Counter .............................................................................. 3-221
4.4.2 Changing the Current Value of a 24-bit High-speed Counter ......................... 3-223
4.4.3 Application Example of 24-bit High-speed Counter (single-phase input) ....... 3-224
4.4.4 Ring Counter Function .................................................................................... 3-225
4.4.5 Applications of Ring Counters ........................................................................ 3-226
4.5 Special Functions Using High-speed Counters ........................................ 3-228
4.5.1 Specified Frequency Pulse Output Function .................................................. 3-228
4.5.2 Applications of the Specified Frequency Pulse Output ................................... 3-229
4.5.3 Frequency Counter Function .......................................................................... 3-231
4.5.4 Applications of Frequency Counters ............................................................... 3-232
4.5.5 Cam Switch Function ...................................................................................... 3-233
Cam switch mode .................................................................................... 3-233
Multi-step comparator mode .................................................................... 3-234
Setting method .........................................................................................3-234
4.5.6 Application of the Cam Switch (Cam Switch Mode) ....................................... 3-236
4.6 Direct Clock Pulse Output ........................................................................... 3-237
4.6.1 Outline of Direct Clock Pulse Output .............................................................. 3-237
4.6.2 Pulse Output Setting with the High-speed Counter Comparator .................... 3-238
Changing the pulse period and width ....................................................... 3-238
Calculating the pulse period and comparator preset value ...................... 3-239
Operation with special utility relays .......................................................... 3-239
4.7 Examples of Direct Clock Pulse Output .................................................... 3-242
4.7.1 Example of Outputting a Pulse with 1:1 ON/OFF Ratio .................................. 3-242
4.7.2 Example of Outputting a Pulse with Variable ON/OFF Ratio .......................... 3-245
4.7.3 Example of Stopping the Pulse Output at a Specified Pulse Count ............... 3-249
4.7.4 Application of Direct Clock Pulse Output (Ramp-up/down control) ................ 3-251
(21)
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 .............................................................. 3-276
Outline of Pulse Output ............................................................................ 3-279
Examples of Pulse Output ....................................................................... 3-284
6.3 Positioning Control ...................................................................................... 3-296
6.3.1 Positioning Control (Ramp-up/down Control) ................................................. 3-296
Outline of positioning control .................................................................... 3-296
Setting and application of parameters ..................................................... 3-297
Examples of stepping motor control ......................................................... 3-300
(22)
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.
• KEYENCE assumes no liability for damages resulting from the use of the infor-
mation in this manual, item 3 above notwithstanding.
• KEYENCE will replace any incomplete or incorrectly collated manual.
All company names and product names in this manual are registered trademarks or
trademarks of their respective owners.
(23)
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.
1
#1 #2
The "Ladder Builder for KV" programs and the installer are saved on these disks.
Store them in a secure location after installing the programs.
Note: It is recommended that you make a backup copy of the master disks in case
the disks are accidentally damaged.
● Connection cable
➮ See page 2-7.
2-2
Chapter 1 Introduction
Display
Resolution: 640 x 480 or higher
Note: The Ladder Builder for KV does not support long file names.
2-3
Chapter 1 Introduction
■ Selection of instruction words and devices from a list ensures the correct
input of symbols.
Because the instruction word and device can be selected from a list for each
type, symbols can be entered with little error. A symbol can also be entered
directly by typing the corresponding instruction word to facilitate rapid program-
ming.
2-4
Chapter 1 Introduction
■ 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. The
three windows are the Ladder Monitor window which displays the ladder dia-
gram, the Monitor All window which displays the device list, and the Registration
Monitor window which allows you to check the movement of the contacts in the
timing chart.
■ Allows use of the simulator functions even when not connected to a PLC.
You can monitor and simulate the operation of the program even when a PLC is
not connected. Debugging efficiency is improved because program operation can
be checked without transferring the program to the PLC. As well, the reverse
step execution function is provided both for execution of scans and execution of
steps.
2-5
Chapter 1 Introduction
■ 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
1 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., on the screen and prints them out to the printer
■ Simulator function
• Simulates the operation of the ladder diagram even if a Visual KV or a conven-
tional KV is not connected, and allows debugging of the program.
• Provides a continuous scan execution mode, one scan execution mode, one step
execution mode, etc. so that errors be confidently located.
• Enables execution of a step in the reverse direction once or continuously.
■ Monitor function
• Monitors the contact ON/OFF status on a real-time, on-line basis using the ladder
diagram created.
• Displays the timing chart, and transfers programs to a Visual KV or a conven-
tional KV.
2-6
Chapter 1 Introduction
Machines to be prepared
You must prepare the following machines before beginning programming. 1
■ PC
• Connect it to the D-Sub 9-pin type serial port.
Connection cable Model: OP-26487
D-sub 9-pin type conversion connector Model: OP-26486
KV Series PLC
To RS-232C
connector
OP-26486
OP-26487
To RJ-11 modular PC
connector
Note: Make sure to use a dedicated cable. If any other cable is used, the unit may
not operate properly.
2-7
Chapter 1 Introduction
1 • The timing chart simulator and the timing chart monitor are provided as the
registration monitor screen.
• The function to set the trigger on the timing chart monitor is not provided.
• You can edit ladder diagrams while checking the use status list of devices on the
monitor.
• The operation of switching the numbering system between decimal (#) and
hexadecimal ($) is assigned to shortcut key [Ctrl]+[E].
2-8
Chapter 1 Introduction
Note 1: The serial port must also be set up in the Ladder Builder for KV after this
program is installed.
➮ Refer to "Setting the serial port" on page 2-136.
Note 2: It is recommended that you make a backup copy of the master disks in case
the disks are accidentally damaged.
2-9
Chapter 1 Introduction
1. Insert the Ladder Builder for KV master disk #1 into the floppy disk drive.
2. Click "setup.exe".
3. Click the
[Open] button.
2-10
Chapter 1 Introduction
1
5. When the following screen is displayed, click the [Next] button. To cancel installa-
tion, click the [Cancel] button.
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.
2-11
Chapter 1 Introduction
8. When you are prompted to insert the next disk, insert the Ladder Builder for KV
master disk #2 and then click the [OK] button.
9. Recent information not included in this manual is saved in the README file. Be
sure to click the [Yes] button to read this file.
1. Insert the Ladder Builder for KV master disk #1 into the floppy disk drive.
2. Select "Run" and "Command Line" from the program manager menu.
The rest of the installation procedure is the same as step 4 to step 10 in "Installation
in Windows 95" (➮ page 2-10).
2-12
Chapter 1 Introduction
2-13
Chapter 1 Introduction
Editor ➮ p. 2-25
• Save and read a file in the original LDR format or another format.
• Save and read mnemonic lists and comments.
• Enter and delete symbols.
• Enter and delete connection lines.
• Insert and delete lines.
• Move and copy ladders.
• Edit contacts/line comments/labels.
• Change the display color on the screen.
• Undo function.
• Jump.
• Search for instruction words/operands.
• Replace operands.
• Convert a/b contacts.
• Edit lists.
• Device use status.
• Set the automatic save function.
• Create macros.
• Print out ladder diagrams, etc.
Editor ➮ p. 2-25
• Transfer a program to the PLC.
Select this function when changing over to the monitor.
• Simulator
Select this function when changing over to the simulator.
• Compilation
2-14
Chapter 1 Introduction
• 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. When using the monitor, you actually connect a Visual KV or a conven-
tional KV and write programs to it.
1
• The method for using the ladder monitor, the monitor all and registration monitor which
indicate the device status; the method for setting up the current value/preset value/
attribute from the dialog bar; and the method for printing out the registration monitor are
shared between the simulator and the monitor with the exception of certain functions.
These methods are described in the simulator section.
4. Debugging the program using the ladder diagram and transferring the program
In addition to debugging using the monitor or simulator, the ladder diagram can also be
changed using the editor. A program (machine code) which has been transferred to a basic
unit or a CPU unit can be read, and the ladder diagram can then be displayed.
Editor ➮ p. 2-25
When debugging is completed and the program runs correctly, transfer the finished program
(machine code) to a Visual KV or a conventional KV and write it.
2-15
Chapter 1 Introduction
■ In Windows 3.1
Double-click the Ladder Builder for KV icon in the KEYENCE Applications group in
the program manager.
2-16
Chapter 1 Introduction
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
• If the PLC model connected is not set correctly, the error message
CAUTION “Unmatched model" is displayed when communicating with a KV Series
PLC. Transferring of programs to the PLC and the monitor function are also
disabled. If the model is not set correctly, failure may occur.
2-17
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
Transfer Program
to PLC → Monitor
▲
Simulator
▲▲ Monitor
▲ ▲
Editor
The name and functions of each window are described on the following pages.
Editor ➮ p. 2-25
Simulator ➮ p. 2-83
Monitor ➮ p. 2-133
Current window
The currently selected active window is called "current window".
To select a window while two or more windows are displayed on the screen in each
mode, use one of the following methods. (The color of the current window’s title bar
is typically different than the color of the other title bars.)
• Click the title bar of the window you wish to select as the current window.
• Select the "Window" menu to view a list of all of the windows that are currently
open. Select the title of the window you wish to select as the current window.
2-18
Chapter 1 Introduction
Check mark
Tool bar
1
Dialog bar
Status bar
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.
* The dialog bar is not provided in the editor.
Display mode
The screen display can be viewed in 5 different sizes.
In the editor, you can set whether or not labels and comments are displayed for
each screen.
1. Select "Display Mode" from the "View" menu on the editor’s menu bar, or click
the button.
2-19
Chapter 1 Introduction
2-20
Chapter 1 Introduction
Show/hide comments
You can select to show or hide contact comments on the editor screen.
"Comment 1" is displayed.
Hide comments Show comments
0000 0000
0001 0001
▲
▲
Click
Lamp ON 1
• In this manual, the menu, buttons and keys available for each function are
indicated at the right end of each title for quick reference.
• The shortcut keys are indicated on the right side of each menu in the software.
Example
The following two methods can be used to enter connection lines.
F9 and - (hyphen key) or : Draws a connection line to the right of the cursor
position.
• Using the mouse and cursor control keys in connection line edit mode
To draw connection lines using the mouse, first change the input mode.
The following four methods can be used to change modes.
Several methods are offered so that the most efficient operation for the situation can
be chosen.
2-21
Chapter 1 Introduction
■ What is a "click"?
● Double left-click
To double left-click means to press the left button twice quickly and consecutively.
1 This is used to open the "Enter Instruction Word" dialog box on the ladder diagram
window. In this manual, this type of clicking is referred to as double-clicking.
● Left-click
To left-click means to press the left button once. This is used to click a button on the
screen or to align the cursor with the input position in the text entry box. In this
manual, this type of clicking is simply referred to as clicking.
● Right-click
To right-click means to press the right button once. This is used to display the
shortcut menu as desired for more efficient operation. For example, by right-clicking
the ladder diagram window, each function (command) such as "cut", "copy", "paste",
and "edit connection line" can be executed.
2-22
Chapter 1 Introduction
2-23
Chapter 2
Editor
2.1 Outline of the Editor Functions ........................................................... 2-26
2.1.1 Cautions for editing ladder programs ....................................................... 2-26
2.2 Edit Screen ............................................................................................ 2-27
2.2.1 Name and function of each part of the screen ......................................... 2-27
2.2.2 Ladder program window screen ............................................................... 2-28
2.3 File Management ................................................................................... 2-29
2.3.1 Creating a new file ................................................................................... 2-29
2.3.2 Setting the automatic file read function .................................................... 2-30
2.3.3 Setting automatic file save for the file ...................................................... 2-31
2.3.4 Saving and reading files ........................................................................... 2-32
2.3.5 Reading and saving a file in another format ............................................. 2-33
2.3.6 Saving a ladder diagram in text format .................................................... 2-36
2.3.7 Verifying files ............................................................................................ 2-36
2.4 Entering/Deleting Symbols and Connection Lines ............................ 2-37
2.4.1 Entering symbols ...................................................................................... 2-37
2.4.2 Deleting symbols ...................................................................................... 2-42
2.4.3 Entering contacts/coils directly ................................................................. 2-42
2.4.4 Changing the device at the current cursor position .................................. 2-43
2.4.5 Entering/Deleting connection lines ........................................................... 2-44
2.4.6 Canceling edit operations ......................................................................... 2-45
2.5 Entering Comments/Labels .................................................................. 2-46
2.5.1 Editing comments/labels .......................................................................... 2-46
2.5.2 Editing line comments .............................................................................. 2-50
2.5.3 Changing ladder lines into comments ...................................................... 2-51
2.6 Edit and Arrangement ........................................................................... 2-52
2.6.1 Copy, move, and delete ........................................................................... 2-52
2.6.2 Inserting and deleting lines ...................................................................... 2-57
2.7 Jump, Search, and Replace ................................................................. 2-58
2.7.1 Jump ........................................................................................................ 2-58
2.7.2 Searching for instruction words/operands ................................................ 2-62
2.7.3 Searching for the device at the cursor position ........................................ 2-63
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 ........................................................................... 2-69
2.9 Displaying the Use Status .................................................................... 2-70
2.9.1 Displaying a use status list ....................................................................... 2-70
2.10 Setting the System ................................................................................ 2-71
2.10.1 Setting the system .................................................................................... 2-71
2.11 Entering and Developing Macros ........................................................ 2-72
2.11.1 Creating a macro file ................................................................................ 2-72
2.11.2 Entering and developing macros .............................................................. 2-74
2.12 Compilation ........................................................................................... 2-75
2.12.1 Executing compilation .............................................................................. 2-75
2.12.2 Error display ............................................................................................. 2-76
2.12.3 Double coil check ..................................................................................... 2-76
2.13 Printing Functions ................................................................................ 2-77
2.13.1 Printing ..................................................................................................... 2-77
2.13.2 Preview display ........................................................................................ 2-81
2.14 Changing the Display Color on the Screen ........................................ 2-82
2.14.1 Changing display colors on the screen .................................................... 2-82
Chapter 2 Editor
The editor allows you to create ladder diagrams, and provides editing functions
including input of instruction words and registration of comments.
• Registers a comment for a contact and transfers it to the Visual KV or the con-
ventional KV.
• Prints out ladder diagrams, mnemonic lists, label comments, device status lists,
etc.
2-26
Chapter 2 Editor
To open an existing ladder program, select "Open" from the "File" menu, and specify
12
the desired ladder program.
The name and function of each part of the screen are described below.
Normal mode and connection line edit mode are available in the editor.
➮ 2.4.5 Entering/Deleting connection lines (p. 2-44)
Note: When the automatic read function is set, the selected file is automatically read
and displayed when the software is started up.
➮ Setting the automatic file read function (p. 2-30)
Example
Normal edit mode screen using the file "SAMP*.LDR"
Ladder symbol
Displayed when an
instruction word, etc.
Step No. is entered.
Indicates a step number in the
ladder diagram.
A step number is displayed only Cursor
after conversion, and is deleted Allows selection of a device, etc., and can
when the ladder diagram is be moved in the vertical and horizontal
changed. directions.
2-27
Chapter 2 Editor
Line No.
Step No.
Cursor
Scroll bar
• Use the scroll bar or the cursor control keys ([LEFT] [RIGHT] [UP] [DOWN]) to
look at the hidden (undisplayed) portion.
To switch the active window between the upper and lower windows, click the mouse
on the desired window or press the [Shift] and [F6] keys at the same time.
Note: While the pointer shape is " ", the window size can be changed but the
screen cannot be divided.
2-28
Chapter 2 Editor
Note 1: When you finish editing a newly created file, be sure to save it.
Note 2: If the model is specified as "KV-10(16)A/D" or "KV-24(40)A/D", created
ladder diagrams cannot be opened with Ladder Builder for KV Ver 1.0 or KV
IncrediWare (DOS). To use ladder diagrams with either of these programs, specify
the model as "KV-300".
2-29
Chapter 2 Editor
3. The message "Set this file for auto read?" is displayed. To set it for the automatic
file read function, click the [Yes] button.
The specified file is set for the automatic file read function. The next time you
start up the Ladder Builder for KV, this file is automatically read.
2. The message "Cancel auto read?" is displayed. To cancel the setting of the
automatic read function, click the [Yes] button.
Note 1: A file not yet saved cannot be selected for the automatic file read function.
Save the file before selecting it.
Note 2: When the number of files specified for the automatic file read function
exceeds 16, the alarm message is displayed.
2-30
Chapter 2 Editor
2. The "Set Auto Save" dialog box is opened. Click "Auto Save" to add the check
mark, and then enter the time interval for automatic save.
2. The "Set Auto Save" dialog box is opened. Delete the check mark next to "Auto
Save", and click the [OK] button.
Note 1: The automatic file save function set here is applied to all the ladder program
files currently open.
Note 2: The file saved automatically is automatically erased when the Ladder
Builder for KV is closed normally. If the Ladder Builder for KV is closed abnormally,
the files saved automatically are automatically read when the Ladder Builder for KV
is started up the next time.
2-31
Chapter 2 Editor
Note 1: Every time a new file is created, a number is automatically added after the
extension "ldw" of the file name such as "ldw1.ldr", "ldw2.ldr", "ldw3.ldr", etc.
Note 2: When "Save" is executed for a new file, "Save As" is automatically ex-
ecuted.
Example
When saving a file with a new name
2. The "Change File Comment" dialog box is displayed. Enter file comments, and
click the [OK] button. When file comments are not required, click the [X] button.
The file comment is also displayed when the file is selected in the KV-Ladder
(DOS version).
3. Specify the folder (directory) to which the file is to be saved, and enter the file
name.
Folder (directory) Select the folder (directory) in which the file is to be saved.
The current folder (directory) is selected by default.
File Name Enter the file name consisting of up to 8 characters. The extension is
set to "ldr". Never change the extension.
File Type "Ladder diagram (*.ldr)" is selected. Do not change this setting.
2-32
Chapter 2 Editor
Reading files
File ➔ Open
When editing an existing file, select and read the file to be edited.
2. Specify the folder (directory) in which the file to be read is saved, and select the
file name.
12
Folder (directory) Select the folder (directory) in which the file to be read is saved.
The current folder (directory) is selected by default.
File Name Specify the file name to be read. The extension is "ldr".
File Type "Ladder diagram (*.ldr)" is selected. Do not change this setting.
Note: This function can only be selected while the ladder program window is se-
lected. Display the ladder program window by selecting "New" from the "File" menu,
and then select "Other Format".
Note: When read is executed, the specified mnemonic list file is read on the current
window. In this case, the ladder program in the current window is erased. When the
ladder program on the current window is required, be sure to save it in a file before
reading the mnemonic list.
2-33
Chapter 2 Editor
Note 1: When read is executed, the specified comments are read on the current
window. In this case, the comments in the current window are overwritten. When the
comments on the current window are required, be sure to save them in a file before
2 reading comments from another file.
Note 2: This function extracts only comments from a ladder program. This function
does not read the entire ladder diagram.
2-34
Chapter 2 Editor
Note 1: When read is executed, the specified comments are read on the current
window. In this case, the comments in the current window are overwritten. When the
comments on the current window are required, be sure to save them in a file before
reading the specified comments. 12
Note 2: If the text format is different when read is executed, an error message is
displayed.
Device name
, Label name Comment
, 1 Comment 2 Comment 3
, , ,
5 digits max. 8 digits max. 32 digits max. 32 digits max. 32 digits max.
Comma
• Each element is delimited with a comma. When the character string is short, it
can be read even if unnecessary portions are omitted in the description.
• The length of the character string is fixed as shown above when a file is saved.
• The table below shows the character types and the number of characters.
Label name Letters. 8 characters maximum.
Space and comma cannot be entered.
Comment 1
Comment 2 32 characters maximum
Comment 3
Example
When Microsoft Excel Ver. 5.0 spreadsheet software is used
2-35
Chapter 2 Editor
Example
This is useful when reading a ladder diagram saved in text format to a word proces-
sor software, and then reformatting it. Use "Notepad" provided as a WINDOWS
accessory.
2
2.3.7 Verifying files
File ➔ File-Verify File
The ladder diagram in the editor can be verified against the contents of the ladder
program saved in the personal computer. For verification, perform the following
procedure.
2-36
Chapter 2 Editor
Or you can enter an a (N.O.) contact, a b (N.C.) contact, an a (N.O.) contact OR, a b
(N.C.) contact OR, or a coil in the current cursor position.
➮ 2.4.3 Entering contacts/coils directly (p. 2-42)
• Selective input
2-37
Chapter 2 Editor
To open the "Enter Instruction Word" window, select "Edit", "Symbol Input" and
2 "Symbol Selective Input" from the menu. In addition, the following two methods are
also available. These two methods offer quicker operation.
Place the mouse cursor in the cell in the ladder diagram to which an instruction word
is to be entered, and double-click it.
Select the desired cell using the LEFT, RIGHT, UP and DOWN keys, and then press
the Tab key.
Note: When an instruction word has already been entered in the selected cell, it is
opened in the edit mode.
Sequence selection
2-38
Chapter 2 Editor
1. Select the desired instruction word type from "Instruction Type" located in the
right portion of the window.
2. Select the desired instruction word from the "Instruction Word" list.
2-39
Chapter 2 Editor
Click the button to display the device type list. Select the desired device type
from this list, and enter the corresponding number directly.
5. The selected ladder symbol is entered. When a symbol has already been entered
in the position, it is replaced with the new symbol selected.
Example
When the relay 2008 is entered
LD
Relay 2008
2-40
Chapter 2 Editor
To open the dialog box for directly entering instruction words, select "Edit", "Symbol
Input" and "Direct Symbol Input" from the menu. The following two methods are also
available for quicker operation.
12
Select the desired cell using the LEFT, RIGHT, UP and DOWN keys, and then enter
the first character of the instruction word to be entered. You can also press the
ENTER key when changing an existing input.
Example
When "A" is entered
Note 1: Enter an instruction word in mnemonic format, and enter a space between
the instruction word and the device name.
LD 0001
→
Note 2: For LD and LDB, "A" and "B" can be entered instead respectively.
LD 0001 → A 0001
LDB 0001 → B 0001
2-41
Chapter 2 Editor
2. Select "Symbol Input" from the "Edit" menu, and select the contact type to be
entered from the submenu.
The corresponding function key can be pressed instead or the corresponding
icon can be clicked.
• The "Change Device" dialog box is displayed.
3. Enter a device name directly from the keyboard into the text box.
2-42
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.
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 12
icon can be clicked.
• The "Change Device" dialog box is displayed.
3. Enter a device name directly from the keyboard into the text box.
To change the device at the current cursor position, perform the following procedure.
2. Select "Change Device at Current Position" from the "Edit" menu or right-click
menu or press the Esc key.
The "Change Device" dialog box is displayed.
3. Enter a device name directly from the keyboard into the text box.
2-43
Chapter 2 Editor
■ Using the mouse and cursor control keys in connection line edit mode
To draw connection lines using the mouse, first change the input mode.
The following four methods can be used to change the mode.
• Select "Edit Connection Line" from the menu displayed by right-clicking.
• Select "Edit Connection Line" from the "Edit" menu.
• Press the Ctrl and K keys at the same time.
• Press the \ key.
When connection line edit mode is selected, the cursor shape is changed as follows.
1. Place the mouse cursor at the desired connection line start position. When using
the keyboard, press the ENTER key.
2. While pressing and holding the left mouse button, move the mouse cursor in the
desired direction (drag). When using the keyboard, press either the LEFT,
RIGHT, UP or DOWN key.
3. Release the button at the desired connection line end position. When using the
keyboard, press the [ENTER] key again. (If the [Delete] key is pressed, the
connection line is deleted.)
2-44
Chapter 2 Editor
• While dragging the connection line to be deleted in connection line edit mode, 12
press the Shift key and release the left mouse button at the same time.
• Press the Backspace key. (The connection line just before the cursor is deleted.)
• 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.
■ Unrecoverable operations
• Replacement of operands
• Input of macros
2-45
Chapter 2 Editor
Manipulate the "Edit Comment/Label" dialog box. This dialog box is displayed for
each device type, and allows you to edit two or more comments at a time.
The label name and comment can also be changed by selecting the device to be
changed in the ladder diagram.
➮ Making changes directly in the ladder diagram (p. 2-49)
Note: The comment 2 and comment 3 files are dedicated to the Ladder Builder for
KV. When the comment is to be shared with the KV IncrediWare (DOS), use com-
ment 1.
1. Select "Edit Comment/Label" from the "Comment" menu, or click the button.
Reading device
selection area
Label/comment
input area
The "*" symbol is displayed beside devices used in the ladder diagram.
3. Specify the device range to be displayed in the list in the "Device Range" area.
2-46
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.
• The table below shows the available character types and the maximum number
of characters allowed.
To register basic relays, click the [Register Basic Relay] button in the "Edit Com-
ment/Label" dialog box, and then enter the basic relays of the model used into
comment 1.
To display labels/comments, select the "View" menu. When the submenu is dis-
played, select "Show Label" or "Show Comment".
➮ For the method to specify the comment to be displayed, refer to the display mode (p. 2-19).
Note: A label name can be used instead of a device name when entering, searching
for or replacing a symbol.
For example, when the label "SW1" is attached to the device "0000", the program
can be written as follows.
Instead of entering "0000" : SW1
Instead of entering "LD0000" LD: SW1
Labels cannot be entered in the instruction selection window.
2-47
Chapter 2 Editor
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.
2. Place the cursor in the copy destination device, and click the [Write] button.
When the [Exchange] button is clicked instead of the [Write] button, the contents
of the input area are exchanged with the comments of the selected device.
Radio buttons
5. Specify the start device in the copy destination device range in the device list
display area.
2-48
Chapter 2 Editor
Perform the following procedure when entering a label name or comment in the
ladder diagram.
2. When entering a label name, select "Change Label Name of Current Device Ctrl
+ B" from the "Comment" menu.
The dialog box name in which comments can be changed varies depending on
the comment type selected in "Comment Type" in "Display Mode".
When a label name or comment has already been registered in the device, the
registered character string is displayed.
4. The displayed character string is entered when the [OK] button is clicked.
To cancel the input, click the [Cancel] button.
2-49
Chapter 2 Editor
1. Place the cursor in the line for which a line comment is to be entered/changed.
2 When changing a comment that has already been entered, double-click the
comment. The "Enter Line Comment" dialog box is then displayed.
2. Select "Edit Line Comment" from the "Comment" menu, or click the button.
The "Enter Line Comment" dialog box is displayed.
Line comment
Note 1: When the [Overwrite] button is clicked, the portion of the ladder diagram
located in the cursor line is deleted. Make sure it is okay to delete the corresponding
portion of the ladder diagram before clicking the [Overwrite] button.
Note 2: Line comments cannot be transferred to the PLC. Accordingly, line com-
ments are not included in a program read from the PLC.
2-50
Chapter 2 Editor
1. Select the range of the ladder lines to be changed into comments or for which the 12
setting is to be reversed.
➮ Selecting the range (p.2-52)
2. To set the line range to be changed into comments, select "Comment", "Change
Ladder Line into Comment and Settings Ctrl + Q" from the menu or right-click
menu. To cancel the setting, select "Cancel Ctrl + W" from the submenu.
Note 1: The ladder lines set to be changed into comments cannot be transferred to
the PLC. Accordingly, the ladder lines set to be changed into comments are not
included in a program read from the PLC.
Note 2: The ladder lines set to be changed into comments cannot be read by the KV
IncrediWare (DOS). Accordingly, when a program is read by the KV IncrediWare
(DOS) and saved with the same name, the ladder lines set to be changed into
comments are deleted.
2-51
Chapter 2 Editor
Note: Copy, move and delete functions cannot be performed while in connection
line edit mode. If connection line edit mode is selected, select "Edit Connection Line"
from the "Edit" menu, and select the normal edit mode (in which the check mark is
not added).
2-52
Chapter 2 Editor
2. While pressing and holding the left button, move the pointer to the selection end
position (drag).
12
2. While pressing and holding the Shift key, press the LEFT, RIGHT, UP or DOWN
key, and move the cursor to the selection end position.
To cancel the selection, press the LEFT, RIGHT, UP or DOWN key again.
Note: When the range is selected in units of cells from the right to the left, the cell at
the left end cannot be selected. When the range is selected in units of lines in an
upward direction, the line at the top end cannot be selected.
2-53
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.
2 • Select "Copy" from the "Edit" menu on the tool bar, or select "Copy" from the
right-click menu.
• While pressing and holding the Ctrl key, press the C key.
2-54
Chapter 2 Editor
• Select "Cut" from the "Edit" menu on the tool bar, or select "Cut" from the short-
cut menu displayed by right-clicking.
• While pressing and holding the Ctrl key, press the X key.
12
2-55
Chapter 2 Editor
• While pressing and holding the Ctrl key, press the V key.
• While pressing and holding the Shift key, press Insert key.
Note 1: The cut portion is temporarily copied to the cut buffer. Accordingly, even if
the portion is cut to be deleted, the cut portion can be pasted again by performing
step 3 above.
Note 2: When the number of cells copied is larger than the paste destination space,
the message "Can’t write at current position." is displayed, and the cells equivalent
to only the paste destination space are pasted. The remaining cells are not pasted.
2-56
Chapter 2 Editor
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. 12
2. Select "Insert Empty Line" from the "Edit" menu or right-click menu, or press the
ENTER key while pressing and holding the Shift key.
Deleting lines
Edit ➔ Delete Line (Shift + Delete)
1. Place the cursor in the line to be deleted.
To delete two or more lines at once, first select the deletion range.
2. Select "Delete Line" from the "Edit" menu, or press the DEL key while pressing
and holding the Shift key.
2-57
Chapter 2 Editor
2.7.1 Jump
The edit control can jump to any position by specifying the desired line number or
step number of the program. The edit control can also be jumped to the first or last
line. Use the jump function to quickly change the edit position.
2 Jump to the specified line/step
Edit ➔ Jump ➔ Line/Step No.
To jump to another position by specifying the desired line number or step number of
the ladder program, perform the following procedure.
1. Select "Edit", "Jump," and "Line/Step No." from the menu. You can also enter the
desired line number or step number directly from the keyboard.
3. Click the [Line] button when jumping the edit control by specifying a line number.
Click the [Step] button when jumping the edit control by specifying a step num-
ber.
Click the [Cancel] button to cancel jumping.
The specified line or step is displayed, and the cursor is moved to the specified
line or step.
Note: When a number larger than the last line or step number is selected, the last
line or step is displayed.
2-58
Chapter 2 Editor
■ Registering lines
Register lines using the following procedure.
3. Enter the desired comment for the line to be registered into "Comment" if neces-
sary.
When registering the same comment for another line, change "Line No." to the
line number to be registered.
2-59
Chapter 2 Editor
Note: Up to 32 lines can be registered. When the number of registered lines ex-
ceeds 32, lines are deleted beginning at the oldest one.
2. Position the pointer over the jump destination line in the line No./comment list
displayed, and then click it. Double-click it to jump immediately.
The specified line is displayed, and the cursor is moved to the specified line.
2-60
Chapter 2 Editor
Note: Jump from a comment line to the next circuit block is disabled.
12
To jump to the beginning or end of the line in which the cursor is currently placed,
perform the following procedure.
2-61
Chapter 2 Editor
1. Select "Edit" and "Find" from the menu. Or click the button.
2 2. Enter an instruction word to be found into the "Instruction Word" text box. Enter
an operand to be found into the "Operand" text box.
You can also search for either one alone.
Search is started, and the first block found containing the instruction or operand
is displayed.
When the specified instruction word or operand is not found, the message "Can’t
find specified symbol." is displayed.
2-62
Chapter 2 Editor
2. Select "Find Device at Cursor Position in Ladder" from the "Edit" menu.
2-63
Chapter 2 Editor
1. Select "Replace Operand" from the "Edit" menu, or click the button.
2 2. Enter the operand before replacement into the "Before Replacement" text box.
Enter the operand after replacement into the "After Replacement" text box.
4. Specify the replacement range using the line number. By default, all the lines are
replaced (from the first line to the last line).
5. Specify the replacement method. Add a check mark to the desired method by
clicking it.
Replace All without Check The message to confirm execution of replacement is
not displayed at all.
Show Can’t Replace Message For an operand which cannot be replaced, the mes
sage is displayed.
Move Comment and Label The comment and the label attached to the operand
before replacement are attached to the operand after
replacement.
6. To execute replacement, click the [OK] button. To cancel replacement, click the
[Cancel] button.
The operand set to the "Before Replacement" text box is indicated with the grey
cursor, and the confirmation message "Replace this operand?" is displayed.
2-64
Chapter 2 Editor
The operand indicated with the brown cursor is replaced with the operand set to
the "After Replacement" text box.
12
Note 1: When "Replace All without Check" is selected, the confirmation message is
not displayed.
Note 2: When "Move Comment and Label" is selected, all the comments of the
devices in the set range are replaced. For example, when "0000" is replaced with
"0010", the "0000" comment is deleted, and the "0010" comment replaces it.
8. When all replacements are complete, the number of operands replaced is dis-
played.
Click the [OK] button.
2. Enter the operand to be converted. Click "Convert All without Check" to attach
the check mark so that the message to confirm execution of conversion is not
displayed.
2-65
Chapter 2 Editor
The specified operand is indicated with the grey cursor, and the confirmation
message "Covert this contact?" is displayed.
Note : When "Convert All without Check" is selected, the confirmation message is
not displayed.
The a (N.O.) contact is converted into a b (N.C.) contact. The b contact is con-
verted into an a contact.
5 When all conversions are complete, the number of contacts converted is dis-
played.
Click the [OK] button.
2-66
Chapter 2 Editor
1. Place the cursor in the block for which a mnemonic list is to be displayed or in
which the edit contents of the mnemonic list are to be inserted/replaced.
In the case of insertion, the edit contents are inserted above the cursor line.
2. Select "Edit List" from the "Edit" menu, or click the button.
The mnemonic list of the block at the cursor position is displayed on the list edit
window.
2-67
Chapter 2 Editor
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
2
When edits are complete, click the [Replace Blocks] button.
The list edit window is closed, and the block at the cursor position in the ladder
diagram is overwritten with the edit contents.
2-68
Chapter 2 Editor
2. While pressing and holding the [Shift] key, move the cursor to the end position of
the range using the UP and DOWN keys.
When canceling the selection, press the UP or DOWN key without pressing and
holding the [Shift] key.
4. Perform the cut, copy or paste operation using the shortcut keys.
➮ Copy/move/delete operation (p. 2-54)
Note: In Windows 95, the mouse (right-click) can be used instead of the keys.
2-69
Chapter 2 Editor
1. Select "Usage Information" from the "Edit" menu, or click the button.
2. Select the item to be checked from "Type". The use status list is then displayed.
3. You can edit ladder diagrams while checking the use status list on the display. To
reflect the latest use status for the ladder diagram being created, click the
[Update(U)] button.
2-70
Chapter 2 Editor
■ When setting the work directory used for the automatic save function
Specify the directory (folder) used for the automatic save function as "Work
Directory" using a full path.
Note: When the code check is specified, the compilation time is longer because a
program in which errors will be detected during decompilation and whose transfer
will be aborted is checked while the program is transferred from the KV main body to
the personal computer.
2-71
Chapter 2 Editor
1. Select "New" from the "File" menu, and open a new ladder program window in
accordance with the model.
2. Place the cursor in the first line. Select "Edit Line Comment" from the "Comment"
menu.
3. In the first line, enter the macro name, the number of arguments and the com-
ment in the following format as the macro start declaration line.
@TEST.4.test macro
Number of Comment
arguments
2-72
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 tempo-
rary devices.
Note: Up to 10 devices from "@0" to "@9" can be used in each macro. When using 12
them, make sure to assign temporary devices sequentially starting from "@0".
5. In the last line, enter two "@" symbols from "Edit Line Comment" as the macro
end declaration line.
Example
Macro which writes data (constant) to the DM0000 when three relays are turned on
(Four arguments are used.)
Macro start
declaration
line
Macro
Macro end
declaration
line
6. Two or more macros can be described in one macro file. When describing
another macro, repeat steps 3 to 5 above.
Note: Make sure to describe each macro in the portion between the macro start
declaration line and the macro end declaration line.
7. Select "Save As" from the "File" menu, and save the file with the desired macro
file name. The extension of the file name is "ldr" which is the same as the exten-
sion for a ladder program.
Note 1: The macro start declaration line is entered as a line comment. Enter up to
70 characters.
Note 2: Timer/counter instructions cannot use temporary devices.
2-73
Chapter 2 Editor
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.
4. Select the name of the macro to be entered in the "Macro Name" text box.
The macro name described in the macro start declaration line is displayed here.
You can enter as many macro operands as the number specified as the argu-
ments in the macro file.
The comment described in the macro start declaration line is displayed in the
"Comment" column.
Note: Macros that have been changed cannot be returned to their original state.
2-74
Chapter 2 Editor
2.12 Compilation
This section describes how to compile ladder programs created using the editor.
2-75
Chapter 2 Editor
3. To jump to the location in the program in which an error has occurred, specify the
desired error and click the [Jump] button.
4. To display the error list again, select "Show Error" from the "Compile" menu, or
click the button.
Select "Check Double Coil" from the menu. Double coils are then detected.
Note: The double-coil check uses three instruction words: OUT, DIFU, and DIFD.
Even if double coil locations are not detected by the double coil check, they may
function as double coils depending on the assembly of ladder circuits.
2-76
Chapter 2 Editor
2.13.1 Printing
File ➔ Print (Ctrl + P)
Connect the personal computer to a printer before starting the printout.
The contents to be printed out must be set before starting the printout. 12
1. Select "Print" from the "File" menu, or click the button.
The "Print Setup" dialog box is displayed.
2. You can select whether or not each item is printed. Click "Yes" to print the item,
and click "No" not to print the item.
"Yes" is selected only for ladder diagrams by default.
3. The printout range can be set for each item. Set the range in the dialog box
displayed when the [Detail] button is clicked.
➮ For the setup procedure for each item, refer to page 2-78.
Note 1: If the settings are changed, the changes are not saved if the [Cancel] button
is clicked.
Note 2: When "Show in XYM" and "Show Decimal Constant with Sign" are selected
in the display mode, printout is performed according to the setting.
➮ Display mode (p. 2-19)
2-77
Chapter 2 Editor
Example of printout
Name : SAMP01.LDR (KV10) LADDER Date : 1997/09/06 Page (1/1)
0001 ** **
L0002 (A) L0005 (%)
0000 $00024 L0006 (A)
0002 T 000
L0006 (A) L0008 (%)
T000 $00020 L0007 (A)
0003 T 001
0000 T000
0005
Example of printout
Name : TRST02 LDR (KV01) LIST Date : 1997/08/22 Page (1/3)
** **
0000 LD 2002
0001 MPS
0002 CTC 1 #020
0003 CON
0004 CTC 0 #255
0005 CON
0006 CTH 0 2101
0007 MPP
0008 CTC 2 #65535
0009 CON
00010 CTC 3 #65535
00011 CON
00012 CTH 1 0500
• ** **
00013 LD 2008
2-78
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
< >
<N0.> <Label> <Comment1> <Comment2> <Comment2>
0000 : SWO SWITCH SWITCH
L002(A) L0006(A)
2-79
Chapter 2 Editor
[ ]
2-80
Chapter 2 Editor
The [Print] button can be clicked on this screen to print out the contents dis-
played.
2-81
Chapter 2 Editor
The "Color" box provided on the side of each item indicates the color currently
set.
Object screen
2. Select the item whose color is to be changed in the "Section to be Specified" text
box, and click the button of "Color".
The "Section to be Specified" text box can be set by clicking the desired position
in the diagram displayed on the object screen.
You can create an intermediate color by clicking the [Create Color] button.
To determine the intermediate color created, click the [Add Color] button.
To return the screen colors to the default setting, click the [Back to Initial Setting]
button.
Note: When the number of display colors on the screen is set to 256 or less, some
colors may not be displayed correctly.
2-82
Chapter 3
Simulator
• Enables efficient debugging due to the undo function for execution of one step in
the reverse direction and execution of continuous step in the reverse direction.
• Because simulation is performed in Windows, the scan time is longer than the
actual time required. Pay careful attention to the timer setting.
2-84
Chapter 3 Simulator
■ Reset operation
• Relays are cleared by the MEMSW. All the relays whose latching is not specified
by the MEMSW are cleared.
When clearing all the relays whose latching is specified, perform the following.
"Execute" ➔ "Device All Clear" ➔ "Latching Relay All Clear"
When clearing all the data memory whose latching is specified, perform the
following.
"Execute" ➔ "Device All Clear" ➔ "DM All Clear"
➮ Device all clear (p. 2-108)
• All the temporary data memory (TM00 to TM31) and all the timers are cleared.
2-85
Chapter 3 Simulator
• Simulator mode is selected, and the ladder monitor window is displayed in the
same way as in editor mode.
• When the same ladder program was previously simulated, the window is dis-
played the same way it was when it was last simulated.
2-86
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.
Note: When this operation is performed, the information on bus, etc. is cleared.
Therefore, when the mode is changed back to the simulator from the editor and
simulation is performed, differential type instructions, etc. may result in unexpected
operations.
13
Note: You cannot exit from the ladder software itself while in simulator mode. To exit
from the ladder software, return to the editor and then select "Exit" from the "File"
menu.
2-87
Chapter 3 Simulator
Sample screen
Ladder monitor
window
➮ p. 2-90
Monitor all
window
➮ p. 2-113
Registration
monitor window
➮ p. 2-122
➮ The name and function of each part of each window are described on the pages listed below.
• Ladder monitor window p. 2-90
• Monitor all window p. 2-113
• Registration monitor window p. 2-122
2-88
Chapter 3 Simulator
Note 1: This operation is not typically required because the ladder monitor window
is always displayed when the simulator is started up from the editor.
Note 2: Only one ladder monitor window can be opened at a time.
2-89
Chapter 3 Simulator
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. The mnemonic list window is displayed to indicate the step executed.
To switch the active window between the upper and lower windows, click the mouse
on the desired window or press the Shift and F6 keys at the same time.
2-90
Chapter 3 Simulator
Note: While the continuous scan operation is executed, "Execute Scan" is dis-
played. While the continuous step operation is executed, "Execute Step" is dis- 13
played.
200% : 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.
80% : Displays a ladder diagram in the smallest size. This size is useful when
checking the entire operation because the maximum number of cells can be
displayed on the screen.
To display the ladder monitor window at the bottom of the screen, perform the
following procedure.
To return the display status to the previous setting, repeat the same procedure.
View ➔ Move Ladder to Bottom
2-91
Chapter 3 Simulator
Program is executed.
One scan is repeated.
One scan
3
End process
2-92
Chapter 3 Simulator
Program is executed.
One scan
End process 13
To execute a program only once, select "Execute One Scan" from the "Execute"
menu, or click the button.
➮ Ladder monitor window (p. 2-90)
Note 1: When only one scan is executed while steps are executed, the program is
executed from the current step to "END" or "ENDH".
Note 2: When only one scan is executed, execution of one step in the reverse
direction is disabled.
2-93
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.
0000 0000
Note: When the cursor is displayed in gray, all key operations are disabled on the
ladder monitor window. To move the cursor using the [LEFT], [RIGHT], [UP] and
[DOWN] keys or turn on/off a device using the space bar, press the [Esc] key once
to change the cursor back to green, and then perform the desired operation.
2-94
Chapter 3 Simulator
• 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.
• The color of the contact changes to indicate that the ON/OFF status has been
toggled.
ON status
While the mouse is used While the cursor is manipulated
0000 0000
OFF status
While the mouse is used While the cursor is manipulated
0000 0000
Note 1: When the cursor is displayed in gray, all key operations are disabled on the
ladder monitor window. To move the cursor using the LEFT, RIGHT, UP and DOWN
keys or turn on/off a device using the space bar, press the Esc key once to change
the cursor back to green, and then perform the desired operation.
Note 2: Timer/counter contacts cannot be turned on/off.
2-95
Chapter 3 Simulator
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.
➮ For registration of devices, refer to “Monitor All” on page 2-109 and “Registration Monitor” on
page 2-119.
The values corresponding to the selected device are displayed in the current
value box and preset value box (offered for a timer/counter only) respectively.
2. Change the radix, comment, current value and preset value using the dialog bar.
The cursor can be moved in each direction using the Tab key (in the forward
direction) and the Tab + Shift keys (in the reverse direction).
Note 1: The attribute (Comment) box is displayed on the dialog bar only when both
the monitor all and the registration monitor are active.
The attribute (Comment) box is not displayed when the ladder monitor is active.
To change the comment type displayed, select "Show Mode" from the "View" menu.
➮ Display mode (p. 2-19)
Note 2: When data which cannot be set is entered, the message "Current value is
unacceptable." is displayed.
2-96
Chapter 3 Simulator
3. Click the [Write Current Value] button or the [Write Preset Value] button.
Available values
Item Contents Ladder Monitor all/registration monitor
monitor
Type Select the device — Relay, timer, counter, counter compara-
type. tor, high-speed counter, data memory,
temporary data memory, trimmer No.
No. Enter the device — Available numbers vary depending
No. on the device. 13
Attribute Bit Select the data — 1*1, 16, 32*2
bit length. *1: "1" is available in relay exclusively.
*2: "32" is available in relay, data
memory, temporary memory and
trimmer number only.
Radix Select the device Decimal, Binary*1, octal, decimal, - decimal*2,
current/preset value hexade- hexadecimal
display method. cimal
*1: "2" is not available when the bit length is set
to "32".
*2: Binary with sign (two’s complement)
* The radix is fixed to "2" when the bit length is
set to "1".
* Change of the radix is reflected on the entire
window.
* When the radix is changed, the current value is
cleared.
Com- Select the type Comment 1, Comment 2, Comment 3 or None
ment of comment
displayed.
Current value Enter the current A value of up to 17 digits is available.
value.
Preset value Enter the preset The preset value can be entered only for timers/
value. counters.
A value of up to 7 digits can be entered.
Note 1: The bit length setting has priority over the radix setting. (For example, if the
bit length is changed to "1" when the bit length was set to "16" and the radix was set
to "decimal", the radix is automatically changed to "binary".)
Note 2: Each of the 32 bits and 16 bits can be registered from an appropriate
position only.
Note 3: When the bit length is "32", the lower 16 bits are assigned to a smaller
device number, and the upper 16 bits are assigned to a larger device number.
■ Shortcut key
The operation of changing the numbering system is assigned to shortcut key
[Ctrl]+[E]. Decimal (#) and hexadecimal ($) are switched each time the [Ctrl]+[E]
keys are pressed.
2-97
Chapter 3 Simulator
1. Select "Settings", "Set Break Condition" and "Break Condition" from the menu, or
3 click the button.
The "Register Break Condition" dialog box and the break condition window are
displayed.
The AND condition and the OR condition can be set. The OR condition is se-
lected as the default. When setting the AND condition, first select "OR Condition"
so that the check mark is deleted.
The AND condition and the OR condition can also be toggled using the short-cut
menu displayed by right-clicking the break condition window.
2. Select "Bit" when the device for which the condition is to be set is a bit device.
Select "Word" when it is a word device.
2-98
Chapter 3 Simulator
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.
When the program is stopped by the break condition, the line of the condition satis-
fied is highlighted in red in the case of an OR condition, or all the lines are high-
lighted in red in the case of an AND condition.
• Place the cursor in the condition to be changed, and then select "Delete Break
Condition" from the "Edit" menu.
• Place the cursor in the condition to be changed, and right-click it. Then, select
"Delete" from the menu displayed.
• Place the cursor in the condition to be changed, and press the Delete key.
2-99
Chapter 3 Simulator
2. When setting the fixed scan, click "Set Fixed Scan" to add a check mark.
3 3. Set the scan time to a value between 0 and 5,000 msec. The default value is set
to "10 msec" for execution by step, or set to the actual required time for execution
by scan.
4. Click the [OK] button to save the displayed value. To cancel the setting, click the
[Cancel] button.
■ Fixed scan
The length of the scan time while the simulator is running usually depends on the
personal computer’s processing speed. When the fixed scan mode is selected,
simulation can be performed in a scan time equivalent to that processed virtually on
the PLC side. Use this function to perform simulation of a program in which scan
time is important.
When the scan time exceeds the preset value of the watch dog timer plus the wait
time, a watch dog timer error occurs.
To set the watch dog timer, perform the following procedure.
2. Enter the watch dog timer within the range of "500 msec (0.5 sec) to 5,000 msec
(5 sec)".
2-100
Chapter 3 Simulator
When specification of the break condition or setting of break points is combined, the
operation status of the program from the specified input to the specified output can
be checked at each step, so a location of nonconformity can be quickly detected.
13
There are five step execution methods available: "executing a step continuously ",
"executing a step once", "executing steps at a high speed", "executing a step con-
tinuously in the reverse direction" and "executing a step once in the reverse direc-
tion".
2-101
Chapter 3 Simulator
1 step = 1 instruction
▲
▲
When execution reaches ▲
"ENDH", the cursor ▲ One step (instruction) is
returns to the top. ▲ executed every time the is
▲ clicked.
3
▲
To execute a step once, select "Execute One Step" from the "Execute" menu, or
click the button.
The mnemonic list window is displayed, and the line currently being executed is
highlighted.
➮ Mnemonic window (p. 2-101)
When execution
reaches "ENDH", the
cursor returns to the top.
To execute a step continuously, select "Execute Continuous Step" from the "Ex-
ecute" menu, or click the button.
A mnemonic list window is displayed, and the line currently being executed is
highlighted.
➮ Mnemonic window (p. 2-101)
The portion currently being executed is scrolled on the ladder monitor window
according to the operation speed.
➮ Ladder monitor window (p. 2-90)
2-102
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.
1. Select "Execute High-speed Step" from the "Execute" menu, or click the
button.
The "Execute High-speed Step" dialog box is displayed.
2. Specify the step number to which the program is to be executed, and then click
the [OK] button. To cancel execution, click the [Cancel] button.
2-103
Chapter 3 Simulator
To execute a step once in the reverse direction, select "Execute One Step in Re-
verse" from the "Execute" menu, or click the button.
By using this function, debugging can be performed efficiently because the operation
of the ladder program (changes in the operation caused by ON/OFF of contacts and
word device values entered) can be recovered for each instruction, and then con-
firmed.
2-104
Chapter 3 Simulator
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. When the cursor position in the line
currently being executed is specified, the cursor color changes to red. When the
program is stopped at the break point, the cursor color changes to red. (These
cursor colors are used when the system is set to the standard Windows color set-
tings.) 13
Two or more break points can be specified.
When the cursor position in the line
currently being executed is specified
To cancel a break point setting, place the cursor in the specified line, and then
double-click it or press the space bar.
2-105
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.
Note: A search can be performed only when simulation is stopped and the ladder
monitor is active.
2. Enter the instruction word to be found into the "Instruction Word" text box. Enter
the operand to be found into the "Operand" text box. A search can only be
performed by specifying either an instruction word or operand.
The search is started, and the first block containing the instruction or operand is
displayed.
When the specified instruction or operand is not found, the message "Can’t find
specified symbol." is displayed.
5. To perform a continuous search, click the [Next] button. To stop the search, click
the [Cancel] button.
2-106
Chapter 3 Simulator
Note 1: When the search reaches the last line or the first line, the message
"Searched to end (beginning) of program" is displayed.
Note 2: The cross reference search is available only while the ladder monitor is
active.
2-107
Chapter 3 Simulator
Select "Stop" or "Pause" from the "Execute" menu, or click the or button.
3 • When "Stop" is specified, all types of operations are stopped and the output Y is
cleared.
Note: When operations are stopped, execution of a step in the reverse direction is
not available. To execute a step in the reverse direction after stopping operations,
you must execute the steps again. When operations are paused, execution of a step
in the reverse direction can be performed.
Reset
Execute ➔ Reset (F10)
The current value can be returned to the default value.
• The system is processed as if the power of the PLC is turned off, and is then
turned on again.
• When device all clear is performed during operation, the operation is stopped.
2-108
Chapter 3 Simulator
• 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. 13
• Turns on/off bit devices.
• Changes the current value, etc. using the dialog bar.
• Sets the break condition.
• Sets the scan time.
• Sets the watch dog timer.
2-109
Chapter 3 Simulator
2. Select "Monitor All" from the "File" menu, or click the button.
3
Note: Every time this procedure is performed, a new window is opened.
• Registering a device by dragging and dropping from the ladder monitor window
➮ Registering a device by dragging it from the ladder monitor window (p. 2-114)
• Registering a device by specifying the type and number of the device from the
dialog bar
➮ Registering a device by specifying it using the dialog bar (p. 2-115)
2-110
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 or numbers.
The extension is set to "kal", and should not be changed.
Note 1: The monitor all window cannot be saved while a scan is being continuously
executed.
Note 2: Current values/preset values are not saved.
2. Click the button of "File Type", and select "Monitor All (*.kal)".
3. Specify the folder and file name in which the file to be read is located.
2-111
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.
• The specified file is read, and the monitor all window is opened.
2-112
Chapter 3 Simulator
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.
2-113
Chapter 3 Simulator
2. Select "Monitor All" from the "File" menu, or click the button.
3
• 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.
1. While a device is selected, press and hold the left mouse button.
2. While pressing and holding the left button, move the cursor to the monitor all
window (drag).
2-114
Chapter 3 Simulator
• Device type
• Device No.
• Bit count
• Radix
• Comment display method *1.
• Current value
• Preset value (in a timer/counter exclusively)
2-115
Chapter 3 Simulator
Selecting devices
To select a device, perform the following procedure.
2-116
Chapter 3 Simulator
2-117
Chapter 3 Simulator
• Device type
• Device No.
• Bit count
• Radix
3
• Comment display method
• Current value
• Preset value (only in a timer/counter)
■ Setting procedure
1 Select the monitor window for which devices are to be changed as the current
window. Place the cursor over the device to be changed, and click it.
2 Change the current value, preset value and attribute 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.
• The contents set using the dialog bar are written to the selected device.
Note: Even if bit devices are turned on/off or the current/preset values are changed
while operation is stopped, these settings are reset when an operation is started up.
Pause the operation, and then change the device status.
Resetting devices
Edit ➔ Reset Device in Monitor All/Registration Monitor
To reset the selected device to the default value, perform the following procedure.
Select "Reset Device in Monitor All/Registration Monitor" from the "Edit" menu.
• The current value of the selected device is returned to the default value.
2-118
Chapter 3 Simulator
• Registers up to 40 devices.
• Changes the position of registered devices. 13
• Displays timing charts for registered devices (both bit devices and word devices).
• Displays the ON/OFF status and comments of bit devices.
• Turns on/off bit devices.
• Changes the current value, etc. using the dialog bar.
• Sets the break condition.
• Sets the scan time.
• Sets the watch dog timer.
➮ For the procedure for registering devices by specifying the type and number from the dialog bar, refer
to "Changing the current value/preset value/attribute" on page 2-118.
2-119
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 button.
2. On the ladder monitor window, select devices to be registered, and press and
hold the left mouse button.
• When you press the left mouse button while pressing and holding the [Ctrl] key
on the ladder monitor window, all the devices displayed in the ladder monitor
window are selected.
3. While pressing and holding the left mouse button, move the cursor to the regis-
tration monitor window (drag), and release the left button.
• Timing charts are displayed by default. To display comments, select the com-
ment type using "Comment" on the dialog bar.
Drag
▼
[Ctrl] +
Drag
▼
2-120
Chapter 3 Simulator
2. Select "Save Window As" from the "File" menu, or click the 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.
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.
2. Specify the folder and file name in which the file to be read is located.
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. The extension is set to "kre".
File Type Select the type of the file to be read.
"Registration Monitor (*.kre)" and "Monitor All (*.kal)" are available.
• The specified file is read, and the registration monitor window is opened.
2-121
Chapter 3 Simulator
• When many devices are registered, it is recommended that you open two or
more windows for easier viewing.
• While the simulator is running, the current values are changed continuously
according to the operation speed.
2-122
Chapter 3 Simulator
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.
2-123
Chapter 3 Simulator
➮ The procedure for changing these items is the same as that described for the monitor all. Refer to
"Changing the current value/preset value/attribute" on page 2-118.
Note: Even if bit devices are turned on/off or the current/preset values are changed
while operation is stopped, these settings are reset when an operation is started up.
Pause the operation, and then change the device status.
2-124
Chapter 3 Simulator
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.
13
2. Place the cursor in the copy destination device, and right-click it. When the menu
is displayed, select "Copy Attribute".
Note 1: Never left-click a device when specifying the copy destination. Leftclicking
specifies the copy source.
Note 2: Step 2 can be performed by pressing the Esc key so that the cursor color
becomes the same as the title bar color. Place the cursor in the copy destination
device using the UP and RIGHT keys, and then select "Copy Device Attribute in
Registration Monitor" from the "Edit" menu.
2-125
Chapter 3 Simulator
Moving devices
The device in the currently selected cursor position can be moved to another posi-
tion by dragging and dropping to change the device order. To move a device,
perform the following procedure.
2. While pressing and holding the left mouse button, move the mouse cursor to the
device in the position below the destination (drag).
2-126
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.
Before deletion
13
After deletion
Sorting devices
Edit ➔ Sort Devices in Registration Monitor ★ Right-click (Sort)
To sort devices by type or number, perform the following procedure.
Resetting devices
Edit ➔ Reset Device in Monitor All/Registration Monitor ★ Right-click (Reset)
To reset the selected device to the default value, perform the following procedure.
Select "Reset Device in Monitor All/Registration Monitor" from the "Edit" menu.
• The current value of the selected device is returned to the default value.
Note: Only the device in the cursor line is reset by this operation. To reset all the
displayed devices, select "Reset" from the "Execute" menu. Devices cannot be reset
in the monitor.
2-127
Chapter 3 Simulator
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.
When a step is executed in the reverse direction after a step has been continuously
executed, symmetry timing charts are displayed.
However, when steps are executed at high speed, the progress for each individual
3 step is not displayed and each timing chart is progressed by only one scale. Accord-
ingly, timing charts displayed are not symmetrical even if a step is executed in the
reverse direction.
The time axis of a timing chart proceeds from the right to the left. The further right on
the chart, the closer to the current time.
The cursor on a timing chart indicates the part currently being simulated. The cursor
position can be moved.
The scale for a timing chart is different depending on whether scans or steps are
being executed. [This difference is provided only in the simulator. It is not provided in
the monitor.] One scale in the monitor indicates the timing inside the monitor, and
has nothing to do with the PLC scan.)
When the execution method is changed over, the timing chart color changes.
• While pressing and holding the left mouse button on the cursor pointer, move it to
the movement destination, and then release the left button.
• Press the Esc key to change the cursor on a device to blue, and then move the
cursor using the LEFT and RIGHT keys.
• The active status of the vertical cursor can be changed by pressing the Tab key.
2-128
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. In the monitor, the vertical cursor can be manipulated only when the
monitor is stopped.
Note 2: The vertical cursor can be used to change the ON/OFF status of contacts,
the current values and the preset values of devices.
By default, 32 scales are displayed on the screen. The number of scales can be set
anywhere between 1 and 511.
Timing charts are easier to view when you adjust the number of scales when the
interval between ON and OFF of contacts is short, for example.
To set the number of scales, perform the following procedure.
1. Select "Set No. of Scales for Timing Chart" from the "Settings" menu, or click the
button.
• The "Set No. of Scales for Timing Chart" dialog box is displayed.
2. Set the number of scales between 1 and 511. The default value is 32.
Note: When scales cannot be displayed on the window because there are too many
scales, the message "Can’t write scales." is displayed. If this occurs, either widen
the window or reduce the number of scales.
• The number of scales for timing charts is changed to the value entered.
When "32" is entered
2-129
Chapter 3 Simulator
1. Select "Wait Time" from the "Settings" menu, or click the button.
3. Click the [OK] button to register the value entered. To cancel the setting, click the
[Cancel] button.
2-130
Chapter 3 Simulator
Preview display
File ➔ Print Preview
To confirm the contents to be printed out on the preview screen, perform the follow-
ing procedure.
• The [Print] button on the screen can be clicked to print out the image displayed.
2-131
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.
3 • Printout is executed.
Note: If printout is not correctly performed, confirm the settings and connection
status of the printer.
2-132
Chapter 4
Monitor
• Allows you to confirm the operation status of a program in real-time using the
4 ladder monitor, timing charts, etc.
• Allows you to operate input contacts on the monitor screen by disabling the input
refresh and the output. (Visual KV and KV-300 only)
• Easily changes the preset values and current values of timers, counters and
devices.
• Changes the current values of devices all at once by specifying the range.
• Minimized windows are not monitored. (The operation speed becomes slow if
there are many devices to be monitored. To prevent this, it is recommended that
you minimize or close the windows which do not need to be monitored.)
• When the entire monitor window is minimized, the monitor is stopped. When
performing monitoring again, select "Start Monitor" from the menu or click the
button.
• Timing charts in the registration monitor are not actuated by a scan on the PLC
side.
2-134
Chapter 4 Monitor
• Never disconnect the connection cable from the PLC while monitoring is being
performed. If you do this, a communication error may occur or the system may
be reset.
• If communication errors occur often, set the baud rate (communication speed) to
a lower value.
2-135
Chapter 4 Monitor
3. When the communication port is set, the monitor mode is automatically selected.
To continue edits, select "Editor" from the "File" menu or click the button.
2. Set the COM port and the baud rate (communication speed) to be used.
COM Port Select the COM port number connected to the cable. The initial value is
"COM1". "COM port" refers to a serial port, and the RS-232C interface is
used for communication. Only one COM port may be provided in some
personal computers.
Baud Rate Select the baud rate from "AUTO", "9600", "19200" and "38400" (some of
them may not be available in some personal computers). The default value
is "AUTO". "Baud rate" refers to the communication speed, and indicates the
number of bits which can be transferred in a second. As the baud rate value
becomes larger, communication is performed at a higher speed. Normally
"AUTO" should be selected.
3. Click the [OK] button to register the setting. To cancel the setting, click the
[Cancel] button.
2-136
Chapter 4 Monitor
Port 1: RS-232C
14
Port 2: RS-422A RS-232C/RS-422A
converter
• The machine number refers to the number set by the station number setting
switch on the KV-L2 unit.
➮ Refer to the “Chapter 7 KV-L2 Serial Interface Module” on page 1-239.
3. Click the [OK] button to register the setting. To cancel the setting, click the
[Cancel] button.
2-137
Chapter 4 Monitor
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), KV-
24R(W)/T(W) and KV-40R(W)/T(W)/80R(W)/T(W).
Note 3: Up to 1,000 comments can be transferred. When more than 1,000 com-
ments are set, 1,000 comments are transferred from the top of the device list.
• When the [Auto Setup] button is clicked, all the registered comments are se-
lected.
3. To register the setting and close the dialog box, click the [OK] button. To cancel
the setting, click the [Cancel] button.
2-138
Chapter 4 Monitor
To transfer a program from the PLC and start up the monitor, perform the following
procedure.
1. Select "File", "Monitor" and "Monitor PLC" from the editor menu.
2. The transfer status of the program from the PLC is indicated on the graph.
Transferring programs
File ➔ Monitor ➔ Compile ➔ Transfer ➔ Monitor (Ctrl + F8)
Programs created using the editor can be compiled into machine code, and then
transferred to the program memory area of the PLC.
Connect the PLC to the personal computer before starting the transfer.
To transfer a program, perform the following procedure.
1. Select the ladder diagram of the program to be transferred as the current win-
dow.
2-139
Chapter 4 Monitor
2. Select "File", "Monitor" and "Convert → Transfer → Monitor" from the menu, or
4 click the button.
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." is displayed. When the [OK] button is clicked, the
error list is displayed. Correct the cause of error, and then transfer the program
again.
Note 3: When the code check is specified, the message "Reverse conversion error"
is displayed for the ladder containing a deconversion error. When the [OK] button is
clicked, the ladder is transferred to the PLC. However, the transferred program
cannot be read. Correct the cause of error, and then transfer the program again.
➮ H-3 Programs which cannot be decompiled (p. 2-203)
3. The program is transferred to the PLC, and the write status is indicated on the
graph.
2-140
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 win-
dow on the editor screen.
2. Select "File", "Monitor" and "Read Program from PLC" from the menu, or click the
button.
1. Select "File", "Monitor" and "Verify against PLC Program" from the menu on the
editor screen.
• The monitor screen is displayed, the program currently saved in the PLC is
transferred, and then the editor screen is automatically displayed again.
2-141
Chapter 4 Monitor
1. Select "File", "Monitor" and "Edit Offline Device" from the editor menu.
4 Note: When the monitor is started up in the device setting mode, the ladder monitor,
registration monitor and monitor all cannot be opened.
Exit procedure
File ➔ Editor
You can exit from the monitor and return to the editor.
When switching to the monitor again using the same program, select "File", "Moni-
tor" and "Compile _ Transfer _ Monitor" from the editor menu.
• When the program is the same as that saved in the PLC, the monitor is selected
again without transferring the program.
Note: The Ladder Builder for KV itself cannot be terminated directly from the moni-
tor. To exit from the Ladder Builder for KV, return to the editor, and then select "Exit"
from the editor’s "File" menu.
2-142
Chapter 4 Monitor
Sample screen
Menu bar
Displays the menu
to execute com- Ladder
mands. monitor
window
➮ p. 2-90
14
Monitor all
Tool bar window
Provides buttons to ➮ p. 2-113
execute commands.
Only commonly used Registration
commands are monitor
provided as buttons. window
Each command can be ➮ p. 2-122
executed by clicking
the corresponding
button once. Dialog bar Status indication bar
Allows you to register Indicates the currently selected function
devices, assign device values and the monitor’s operating status.
and preset values, and reset
timers and counters.
➮ The name and function of each part of each window are described on the pages listed below.
• Ladder monitor window p. 2-90
• Monitor all window p. 2-113
• Registration monitor window p. 2-122
2-143
Chapter 4 Monitor
Note 1: This operation is not typically required because the ladder monitor window
is always displayed when the simulator is started up from the editor.
Note 2: Only one ladder monitor window can be opened at a time.
Note 3: This function is disabled when the ladder window is already open.
➮ For error messages and countermeasures, refer to "Appendix A Error Message List" on page 2-156.
2-144
Chapter 4 Monitor
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.
Note 2: When the monitor is started up for the first time, the monitor is automatically
started.
Select "Start Monitor" from the "Monitor" menu, or click the button (green).
Never disconnect the connection cable to the PLC while the monitor is run-
14
CAUTION ning. If you do this, a communication error may occur or the personal com-
puter may be reset.
Select "Stop Monitor" from the "Monitor" menu, or click the button (red).
2-145
Chapter 4 Monitor
Status indication
While the monitor is running or while data is reconstructed in the record reconstruc-
tion mode, the PLC mode, scan time, etc. are displayed in the status indication area
on the monitor window.
2-146
Chapter 4 Monitor
2-147
Chapter 4 Monitor
• Displays the current value and preset value of all devices, and the ON/OFF
status of the contacts and coils for each device type.
➮ For execution and operating procedures for the monitor all window, refer to "3.4 Monitor All" on
page 2-109.
• Registers up to 40 devices.
• Displays the current values of registered devices, and the ON/OFF status of bit
devices and comments.
• Displays timing charts for registered devices (both bit devices and word devices).
➮ For execution and operating procedures for the registration monitor, refer to "3.5 Registration Monitor"
on page 2-119.
Note: Timing charts are not actuated by a scan on the PLC side.
Only one vertical cursor is displayed on timing charts.
2-148
Chapter 4 Monitor
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.
Check mark
If input refresh is disabled, read (input refresh) of input relays of the PLC is dis
abled, and write from the monitor is enabled. The setting status is saved in the PLC.
However, when the PLC operation mode is changed from STOP to RUN or when
the power is turned off and on again, the setting is not saved.
To set the output refresh disable function, select "Disable Output " from the "Moni-
tor" menu when the monitor is started.
Check mark
If output refresh is disabled, write (output) to output relays of the PLC is disabled.
The setting status is saved in the PLC. However, when the PLC operation mode is
changed from STOP to RUN or when the power is turned off and on again, the
setting is not saved.
2-149
Chapter 4 Monitor
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.
When the devices to be read are specified using the dialog bar and the [Register]
button is clicked, all the specified devices are read to the change all window.
• The cursor can be moved between items using the Tab key (forward direction) or
the Tab + Shift keys (reverse direction).
• When the [X] button located in the upper right corner of the window is clicked, the
change all window is closed.
• When a current value outside the acceptable range is entered, "NG" is displayed.
Note 1: Only one consecutive range can be read to one window. Separate ranges
cannot be read to one window. When reading separate ranges, select "Change All"
from the "File" menu, open a new change all window, specify and register the
desired range using the dialog bar, and then read it.
Note 2: Only the current value can be manipulated for timers/counters.
Note 3: Writing to the PLC requires a longer time than reading from the PLC.
2-150
Chapter 4 Monitor
• 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.
Note: Only one consecutive range can be written at a time. Separate ranges cannot
be written at the same time.
Saving/reading devices
The setting of devices read from the PLC can be saved to a file. The setting of
devices saved in a file can be read.
2. Select "Save Window As" from the "File" menu, or click the button.
2-151
Chapter 4 Monitor
3. Specify the folder (directory) and file name to which data is to be saved.
Folder (directory) Select the folder (directory) in which the file is to be saved.
The current folder (directory) is selected as the default.
4 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. If you do this, the original data
will be erased because the existing file is overwritten by the new file.
1. Specify the device range to be printed out in the change all window. Click the
[File Read] button.
The "Save" dialog box is displayed. Enter the file name.
2. Read the change all text file (*.txt) saved in step 1 that is to be printed out using
the Windows memo, editor or word processor software.
(The file is saved in text format. Be sure to select text format when opening the
file in the word processor software.)
3. Print out the file from the software used to read the file.
2-152
Chapter 4 Monitor
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.
File Type Select "Change All (*.kdv)" as the file type to be read.
• The specified file is read, and the change all window is opened.
2-153
Chapter 4 Monitor
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.
• If the PLC operation mode is set to "RUN" when devices other than data memory
are cleared, the message "Set STOP and execute?" is displayed.
➮ When the PLC is set to RUN mode while "All Clear" is executed (below).
■ When the PLC is set to RUN mode while "All Clear" is executed
If the PLC operation mode is set to "RUN" when devices other than data memory
are cleared, the message "Set STOP and execute?" is displayed.
To select the STOP mode and then execute all clear, click the [Yes] button. To
cancel execution of all clear, click the [No] button.
2-154
Appendices
This section describes error messages displayed during operation and the counter-
measures to be taken when an error message is displayed.
When a memory error is displayed, exit from other applications that are open,
or increase the amount of memory.
2-156
Appendices
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.
Appendices
Error [file name]: Read comment file failed.
1
A-4 Installation errors
An installation error is displayed when the target file does not exist in the appropriate
location. The target file may have been deleted from the installation destination
folder (directory).
When an installation error message is displayed, reinstall the Ladder Builder for KV.
2-157
Appendices
2-158
Appendices
Appendices
Error message Cause Countermeasures
Communication An error occurred during Confirm that the personal 1
error occurred. communication. computer’s RS-232C port is
Check for commu- correctly connected to the PLC.
nication setting Confirm that the communication
and connection (COM1/2) port and baud rate are
lines. set correctly in "Settings"-"Serial
Port".
Unregistered The attempt is made to execute Transfer a program to the KV
program PLC monitor or to call up or before making these attempts.
verify the program in the CPU,
although the KV main unit has
no program.
2-159
Appendices
there is not a program in the main unit, and then select RUN
KV main unit. mode.
Cycle Time Error The cycle time has exceeded Change the program so that the
208 ms. (300 ms for KV-300) cycle time is shorter.
Memory Error The contents of the KV main Reset the error, and then select
unit’s memory have been RUN mode.
erased.
CALL Instruction The number of nested levels in An error occurred when the
Nest Error the subroutine exceeds 4. program was executed. Check the
program and correct the error.
FOR Instruction The number of nested levels in
Nest Error the FOR - NEXT instruction
exceeds 8.
MPS Instruction The number of nested levels in
Nest Error the MPS - MPP instruction
exceeds 8.
INI Instruction Nest Five or more interrupts occurred Correct the program so that only
Error at once. one interrupt occurs at once.
2-160
Appendices
Appendices
Second operand
form is illegal.
1
Third operand form
is illegal.
First operand value
is illegal.
Second operand
value is illegal.
Third operand value
is illegal.
First operand is not
found.
Second operand is
not found.
Third operand is not
found.
Instruction is An instruction which can be used Use the instruction only once.
repeatedly used. only once has been used two or
more times.
Operand is repeat- An operand which can be used only Use the operand only once.
edly used. once has been used two or more
times.
Unusable in interrupt An unusable instruction is used in Change the program so that another
program. an interrupt program. method is used.
Instruction position A subroutine or an interrupt program Describe the program between the
error. is described before the END END instruction and the ENDH
instruction. instruction.
Nested levels in The number of nested levels in the Change the program so that the
subroutine is too many. subroutine exceeds 4. number of nested levels is 4 or less.
Undefined subroutine The program is terminated without a Describe the subroutine program
exists. called subroutine being defined. between the END instruction and the
ENDH instruction.
Subroutine No. is Two or more subroutines with the The number assigned to each
repeatedly used. same number are defined. subroutine should be different.
Change the program.
Nested levels of The number of nested levels of Change the program so that the
paired instruction is paired instructions exceeds the number of nested levels is within the
too many. maximum number. maximum.
Usage of paired An instruction to be used as a pair is Change the program so that it is used
instruction is incorrect. not used as a pair. as a pair.
Parallel connection is The STG instruction contains an Never use an OR (parallel) connection
used in STG instruction. OR (parallel) connected block. in the STG instruction.
END instruction is not The END instruction is not found in Include the END instruction in the
found. the program before the ENDH program before the ENDH instruction.
instruction.
ENDH instruction is The ENDH instruction is not found Include the ENDH instruction in the last
not found. in the last line of the program. line of the program.
STG instruction The STG instruction is not present Include the STG instruction at the
position error. at the head of a block. head of a block.
SFT instruction The SFT instruction operand is Include the SFT instruction within the
operand error. outside the available range. available range.
2-161
Appendices
First operand is
illegal.
Second operand is
Appendices
illegal.
Third operand is
illegal.
After mnemonic is
unnecessary.
After first operand is
unnecessary.
After second operand
is unnecessary.
After third operand is
unnecessary.
Code file was not
generated.
Ladder diagram can’t Because instructions are sorted Confirm the specifications of the
be drawn. incorrectly, they cannot be instructions, and correct the program.
compiled into a ladder diagram.
Number of instruc-
tions is too large.
Previous connecting
block is not found.
Following connecting
block is not found.
Instructions are not
paired.
Usage of CON
instruction is incorrect.
Connection of multiple
input elements is illegal.
Output elements can’t be
connected in parallel.
Input element connected
to output line.
Output element
connected to bus.
Termination element not
connected to output line.
Block has too long Because there are too many Change the circuit to reduce the
parallel connection. instructions in a parallel connected number of instructions in the parallel
block, it cannot be compiled into a connected block.
ladder diagram.
Lines in block exceeds A block in the ladder diagram Change the program so that no more
maximum number. exceeds 100 lines. than 100 lines are included per block.
No connection. An instruction symbol does not exist Include an instruction symbol on a path
on a path between buses. between buses.
Illegal short-circuiting. Two points are short-circuited when Never short-circuit them.
they should not be.
Illegal parallel Blocks are not correctly parallel Change the circuit so that they are
connection. connected. correctly parallel connected.
Illegal connection. The instruction symbol connection Change the circuit so that the symbol
method is incorrect. is correctly connected.
2-162
Appendices
Appendices
And Load ANL Connects in series the blocks made of one or more 1
contacts.
Or Load ORL Connects in parallel the blocks made of one or more
contacts.
Set SET Turns ON specified relay forcibly, and enables it to
remain ON.
Reset RES Turns OFF specified relay forcibly.
Timer TMR Sets an on-delay timer that counts down in 0.1 s
increments.
High-Speed Timer TMH Sets an on-delay timer that counts down in 0.01 s
increments.
High-Speed 1-ms TMS Sets an on-delay timer that counts down in 0.001 s
Timer increments.
Counter C Sets an up counter.
Up-Down Counter UDC Sets an up-down counter.
Differentiate Up DIFU Detects rising edge of input signal and turns ON
specified relay for first scan time only.
Differentiate Down DIFD Detects falling edge of input signal and turns ON
specified relay for first scan time only.
Keep KEEP Turns ON specified relay when SET input relay turns
ON, and enables this relay to remain ON. Turns OFF
specified relay when RESET input relay turns ON.
Shift SFT Sets a shift register.
High Speed HSP Shortens time constant of specified input relay to be
ready for high speed.
Master Control MC Selects ON/OFF status of relays, timers or counters
set before MCR instruction.
Master Control MCR Ends the execution of MC instruction.
Reset
Memory Switch MEMSW Sets memory switches.
No Operation NOP Performs no operation.
End END Indicates end of each routine in the program.
End Hi ENDH Indicates end of entire program.
2-163
Appendices
2-164
Appendices
Appendices
Add ADD Adds value specified by operand to content of internal
@ADD register, and inputs result back to same internal 1
register.
Subtract SUB Subtracts value specified by operand from content of
@SUB internal register, and inputs result back to same internal
register.
Multiply MUL Multiplies content of internal register by value specified
@MUL by operand, and inputs result back to same internal
register.
Divide DIV Divides content of internal register by value specified
@DIV by operand, and inputs result back to same internal
register.
And A ANDA ANDs content of internal register and value specified
@ANDA by operand for each of 16 bits, and inputs result back
to same internal register.
Or A ORA ORs content of internal register and value specified by
@ORA operand for each of 16 bits, and inputs result back to
same internal register.
Exclusive Or A EORA EXCLUSIVE ORs content of internal register and value
@EORA specified by operand for each of 16 bits, and inputs
result back to same internal register.
Shift Right A SRA Moves content of internal register serially right by value
@SRA specified by operand.
Shift Left A SLA Moves content of internal register serially left by value
@SLA specified by operand.
Rotate Right A RRA Rotates content of internal register clockwise by value
@RRA specified by operand.
Rotate Left A RLA Rotates content of internal register counterclockwise by
@RLA value specified by operand.
Complement COM Inverts content of each bit in internal register.
@COM
Increment Memory INC Adds 1 to content of data memory specified by
@INC operand.
Decrement DEC Subtracts 1 from content of data memory specified by
Memory @DEC operand.
Multiplexer MPX Converts one digit data of internal register specified by
@MPX operand into 16-bit data.
Demultiplexer DMX Converts into a value in position of most significant bit
@DMX in internal register.
2-165
Appendices
2-166
Appendices
Appendices
(W)/T(W): AR/AT/DR/DT:
0300 to 0415 0200 to 0415 1
Basic output 0500 to 0503 0500 to 0505 0500 to 0507 KV-40 0500 to 0503 KV-10 KV-24
relay R(W)/T(W): AR/AT/DR/DT: AR/AT/DR/DT:
0500 to 0507 0500 to 0503 0500 to 0507
0600 to 0607 KV-16 KV-40
KV-80 AR/AT/DR/DT: AR/AT/DR/DT:
R(W)/T(W): 0500 to 0505 0500 to 0515
0500 to 0615
Extended output 0600 to 0915 0600 to 0915 0600 to 0915 0700 to 0915 — 0600 to 0915 0600 to 0915
relay
Internal utility 1000 to 1915 1000 to 1915 1000 to 1915 1000 to 1915 1000 to 1915 1000 to 1915 1000 to 1915
relay 3000 to 6915 3000 to 6915 3000 to 6915 3000 to 15915 3000 to 15915
Special utility 2000 to 2915 2000 to 2915 2000 to 2915 2000 to 2915 2000 to 2915 2000 to 2915 2000 to 2915
relay
External I/O relay — — — — 7000 to 17915 — —
Timer/counter T/C000 to 063 T/C000 to 063 T/C000 to 119 T/C000 to 119 T/C000 to 249 T/C000 to 249 T/C000 to 249
High-speed CTH0 to 1 CTH0 to 1 CTH0 to 1 CTH0 to 1 CTH0 to 1 CTH0 to 1 CTH0 to 1
timer/counter
High-speed CTC0 to 3 CTC0 to 3 CTC0 to 3 CTC0 to 3 CTC0 to 3 CTC0 to 3 CTC0 to 3
comparator
Data memory DM0 to 0999 DM0 to 0999 DM0 to 1999 DM0 to 1999 DM0 to 9999 DM0 to 1999 DM0 to 1999
Temporary TM0 to 31 TM0 to 31 TM0 to 31 TM0 to 31 TM0 to 31 TM0 to 31 TM0 to 31
memory
2-167
Appendices
* Read-only relay.
Multiplication
1 pulse x2 x4 2 pulses
mode
2113 OFF ON OFF ON
2114 OFF OFF ON ON
Note: Never use special utility relays that are not shown above.
2-168
Appendices
Appendices
2208
comparator CTC3 turns ON. OFF: Permitted 1
2209 Direct output to 0501 is set to OFF when comparator ON: Set to OFF
CTC3 turns ON. OFF: Not set to OFF
2210 Direct output to 0501 is set to ON when comparator ON: Set to ON
CTC3 turns ON. OFF: Not set to ON
2211 ON/OFF status of output to 0501 is reversed each ON: Reversed
time comparator CTC3 turns ON. OFF: Not reversed
2212 A utomatic clear of CTH1 when comparator CTC3 ON: Cleared
turns ON. OFF: Not cleared
2213 Selects multiplication mode for comparator CTH1.
OFF ON OFF ON
2214 OFF: 1 pulse OFF: x2 ON: x4 ON: 2 pulses
* Read-only relay.
Multiplication
1 pulse x2 x4 2 pulses
mode
2213 OFF ON OFF ON
2214 OFF OFF ON ON
Note: Never use special utility relays that are not shown above.
2-169
Appendices
2-170
Appendices
Appendices
being affected by the 1
MEMSW instruction).
Use of high-speed input correction circuit
2714 This area is not
ON: Used OFF: Not used cleared even if the
utility relay All Clear
function is activated.
However, this area is
cleared when an All
2715 ON while cam switch is in operation. Clear is executed
without registering a
program.
2800 Break signal send to communication port A (remains ON while sending).
Receives text data from communication port A, and remains ON during only
2801
1 scan while receiving text data.
Communication port A text data acceptance error. Remains ON during only
2802 1 scan ON when text data is received while either relay 2801 or relay 2803
is ON.
Communication port A text data receive error
2803
Remains ON during only 1 scan when a text data receive error occurs.
2804 Communication port A text data send start (remains ON during sending.)
2805 Break signal send to communication port B (remains ON while sending).
Receives communication port B text data, and remains ON during only 1
2806
scan while receiving text data.
Communication port B text data acceptance error.
2807 Remains ON during only 1 scan ON when text data is being received while
relay 2806 or relay 2808 is ON.
Communication port B text data receive error
2808
Remains ON during only 1 scan when a text data receive error occurs.
2809 Communication port B text data send start (remains ON during sending.)
2812 Turns ON when an abnormality occurs with backup battery.
Sets input time constant to all inputs in basic module (except inputs used by
HSP instruction).
2813
OFF: Sets input time constant to 10 ms.
ON: Refers to value stored in DM1940, then determines input time constant.
2814 HKEY instruction: Multiple keys are prohibited.
2815 HKEY instruction: Scan is finished.
2900 to 2915 HKEY information storage area.
Note: Never use special utility relays that are not shown above.
2-171
Appendices
through 6915.
bit9 Clears DM0000 to DM0999 at power-on. 1: Clears 0: Retains
bit10 Clears DM1000 to DM1899 at power-on. 1: Clears 0: Retains
bit11 Switches between 24- and 16-bit comparators 1: 24-bit 0: 16-bit
for CTH0.
bit12 Switches between 24- and 16-bit comparators 1: 24-bit 0: 16-bit
for CTH1.
bit13 Clears values of counter, CTH, and CTC. 1: Clears 0: Retains
bit14 Write-protects program in KV PLC. 1: Yes 0: No
bit15 Read-protects program in KV PLC. 1: Yes 0: No
2-172
Appendices
Appendices
stored.
1
Frequency (Hz)
DM1481
(operation)
2-173
Appendices
2-174
Appendices
Appendices
■ Other special utility relays 1
Relay No. Function
*2300 Disables output to all relays (500 to 515, 7000 to 17915). 1: Yes 0: No
*2301 Disables input to all relays. 1: Yes 0: No
*2302 Stops execution of user program (Does not stop interrupts.). 1: Stop 0: Run
*2304 Constant scan time mode (preset value in TM29). 1: Valid 2: Invalid
*2305 Remains ON only for first scan when constant scan time is exceeded.
Forced reset (Initializes DM/TM/TMR/C utility relays by MEMSW except
high-speed counters.). 1: Yes 0: No
*2306 Turns ON when remote is disconnected, and is cleared when operation is
started. (Refer to DM9500 to DM9517.)
*2308 Stops X-axis motor driver.
*2309 Remains ON while X-axis motor driver is operating or in emergency stop
status.
*2310 Starts operation of X-axis motor driver (by detecting rising edge).
*2311 Stops Y-axis motor driver.
*2312 Remains ON while Y-axis motor driver is operating or in emergency stop
status.
*2313 Starts operation of Y-axis motor driver (by detecting rising edge).
*2314 Converts ASCII character string into BIN (32 bits) (by detecting rising edge).
*2315 Converts BIN (32 bits) into ASCII character string (by detecting rising edge).
2600 to 2608 Used to convert extended ladder into standard ladder.
*2803 Sends break signal (during ON).
2804 Text data receive relay. Remains ON for one scan when text data is
received.
2805 Text data overflow. Remains ON for one scan when text data is not correctly
received.
2806 Text data communication error. Remains ON for one scan when a text data
communication error occurs.
*2807 Starts transmission of text data. Remains ON during transmission.
*2812 Power supply error
*2813 Sets input time constant for 0108 to 0215 (KV-80) to 25 µs. 1: Yes 0: No
Sets input time constant for 0000 to 0009 (KV-300) to 10 µs. 1: Yes 0: No
2814 Disables any other key input during HKEY instruction.
2815 Terminates scan in HKEY instruction.
2900 to 2915 Stores key information on HKEY instruction.
* Valid with the KV-300 only.
2-175
Appendices
■ Memory for A/D units and D/A units (valid in the KV-300 only)
DM9000 to DN9029 Stores A/D or D/A unit data (for up to 5 units).
2-176
Appendices
Appendices
DM9414 Y-axis operation frequency (Hz) 153 to 50000 1
DM9415 Y-axis acceleration/deceleration time (ms) 0 to 4096
DM9416 Y-axis output pulses (higher-order 16 bits) 0 to 65535
DM9417 Y-axis output pulses (lower-order 16 bits) 2 to 65535
Frequency (Hz)
DM1481
(operation)
■ Data memory to convert ASCII character string into BIN value (32 bits)
DM9600 First DM number that stores ASCII code
DM9601 First DM number to which converted BIN value is written
■ Data memory to convert BIN value (32 bits) into ASCII character string
DM9602 First DM number to which converted ASCII code is written
DM9603 First DM number that stores BIN value
2-177
Appendices
■ Samp02.ldr
Automatic flashing of indicators
Applicable models : All KV Series models (KV-10 is used in the program.)
Description : When the program is executed, indicators automatically flash.
Appendices
The flash speed can be set using an analog trimmer built into
the KV unit.
■ Samp03.ldr
Perfect emergency stop circuit
Applicable models : All KV Series models (KV-10 is used in the program.)
Description : Offers an emergency stop circuit using MC and MCR instruc-
tions.
■ Samp04.ldr
Calculation of analog input mean value in KV-AD4
Applicable models : KV Series (except KV-300) and KV-AD4 (KV-10 is used in the
program.)
Description : Obtains the mean value of analog input values received by the
KV-AD4.
■ Samp05.ldr
Controlling cylinder
Applicable models : All KV Series (KV-10 is used in the program.)
Description : The cylinder starts moving when the work piece arrives. It
returns when it reaches to the end of stroke.
■ Samp06.ldr
Direct clock pulse
Applicable models : All KV Series (KV-10 is used in the program.)
Description : The basic usage of high-speed counters.
■ Samp07.ldr
Ramp-up/down program
Applicable models : All KV Series (KV-10 is used in the program.)
Description : The program is used to control the stepper motor motion and
position. The motor slowly starts rotating and maintains when it
reaches at the specified frequency. It stops gradually in a
specified duration.
■ Samp08.ldr
High-speed input
Applicable models : All KV Series (KV-10 is used in the program.)
Description : Using HSP instruction, a fast input signal can be detected
stably and retained until reset.
2-178
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.
■ Samp10.ldr
One-shot timer with adjustable set value by using Analog timer
Applicable models : All KV Series (KV-10 is used in the program.)
Description : The set value of this one-shot timer can be adjusted using
Analog timer on the KV PLC.
■ 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.
Appendices
1
■ Samp12.ldr
Positioning control in KV-300 CPU (with return to home function)
Applicable models : KV-300
Description : Performs trapezoid control and return to home using the posi-
tioning control function built into the KV-300 CPU unit.
■ Samp13.ldr
Direct memory sharing between KV-L2 units
Applicable models : KV-300 and KV-L2
Description : Sets one KV-L2 as the parent station (no-procedure protocol
mode), sets the other KV-L2 as the child station (KV mode), and
reflects values of DMs changed in the parent station on the
child station.
■ Samp14.ldr
Convenient instruction to measure a pulse-to-pulse interval
Applicable models : All KV Series models (KV-10 is used in the program.)
Description : Measures a pulse-to-pulse interval using ITVL instruction.
■ Samp15.ldr
Calculation of analog input mean value in KV-AN6
Applicable models : KV-300 and KV-AN6
Description : Obtains the mean value of analog input values received by the
KV-AN6.
2-179
Appendices
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.
Creating/reading/saving a file
Creating a new ladder program File ➔ New 2-29
2-180
Appendices
Appendices
Undoing the last edit operation Edit ➔ Undo 2-45 1
Cancels the last edit operation.
Redoing the last canceled edit operation Edit ➔ Redo 2-45
Sets the directory for the automatic file save function, reverse conver-
sion error check, etc.
2-181
Appendices
Jump/find/replace
Jump Edit ➔ Jump 2-58
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 2-62
Linking the upper screen and the lower screen Edit ➔ Link Screens 2-28
Develops a macro.
Compilation and error display
Compilation Compile ➔ Compile 2-75
2-182
Appendices
Appendices
Monitor
File ➔ Monitor ➔ PLC Monitor 2-139 1
➔ Compile ➔ Transfer ➔ Monitor
Changes to the monitor. Note that the monitor cannot be started up if
compilation errors are present.
Simulator File ➔ Simulator 2-86
Changes to the simulator. If the ladder program is not yet compiled, it
is compiled when the simulator is started up.
Changing the display mode
Setting the display mode and the change range
View ➔ Display Mode 2-19
➔ Zoom In
➔ Zoom Out
➔ Show Label
➔ Show Comment
Sets the display size and display status of labels/comments.
Sets the range in which the display mode setting is valid. 2-21
Changing colors in ladder diagrams
Changing colors in ladder diagrams
View ➔ Change Ladder Diagram Color 2-82
Sets the color layout of ladder diagrams.
Setting/changing the model
Setting and changing the model File ➔ Change Models 2-17
2-183
Appendices
Edit Line Enters line comments. (Displays the line comment input
Comment dialog box.)
PLC Monitor Reads programs from the PLC, and changes to monitor
mode.
Display Mode Sets the display size and display mode (for labels,
comments, etc.).
2-184
Appendices
Appendices
Coil Input position.
1
Vertical Draws a vertical connection line down from the current
Connection Line cursor position.
Delete Vertical Deletes the vertical connection line in the current cursor
Connection Line position.
Delete Horizontal Deletes the horizontal connection line in the current cursor
Connection Line position.
2-185
Appendices
● Edit
Undo [Ctrl] + [Z]
Redo [Ctrl] + [Y]
Symbol Selective Input [Tab]
Appendices
2-186
Appendices
Appendices
Usage Information [Ctrl] + [E] 1
● Comment
Edit Comment/Label [Ctrl] + [F7]
Edit Line Comment [Ctrl] + [ENTER]
Change Ladder Line into Comment-Set [Ctrl] + [Q]
Change Ladder Line into Comment-Cancel [Ctrl] + [W]
Change Label Name of Current Device [Ctrl] + [B]
Change Comment of Current Device [Ctrl] + [N]
● Compile
Compile [Ctrl] + [F9]
Show Error [Ctrl] + [F10]
● View
Zoom In [Ctrl] + [PageDown]
Zoom Out [Ctrl] + [PageUp]
Show Label [Ctrl] + [BackSpace]
Show Comment [Ctrl] + [ ]
● Help
Using Help [F1]
Instruction Word [Ctrl] + [1]
2-187
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
Reading and saving a monitor all window File ➔ Open Window 2-111
➔ 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 2-121
➔ Save Window As 2-120
Reads a registration monitor file. Saves the current registration monitor
window with a new file name (extension: kre).
Appendices
2-188
Appendices
Appendices
Using the dialog bar, current values can be specified and written to 1
devices. Currently saved values/preset values can be changed.
Resetting devices
Edit ➔ Reset Device in Monitor All/Registration Monitor 2-118
Returns the currently selected device to the default value.
Registration monitor
Displaying a registration monitor window File ➔ Registration Monitor 2-119
Displays current values, comments and timing charts for the regis-
tered devices. In this window, the ON/OFF status of bit devices can be
changed, and the attribute (bit count, radix and comment type) can be
changed using the dialog bar.
Registering devices 2-122
Devices to be displayed on the registration monitor window can be
registered by dragging and dropping them from a ladder diagram or by
using the dialog bar.
Setting the number of scales for timing charts
Settings ➔ Set No. of Scales for Timing Chart 2-129
Allows you to set the number of scans/steps (= number of scales) to
be displayed on timing charts.
Copying and deleting the device attribute
Edit ➔ Copy Device Attribute in Registration Monitor 2-125
➔ Delete Device in Registration Monitor 2-127
Copies the attribute (bit count, radix and comment type) set for the
currently selected device to another device, or deletes the device.
Sorting devices Edit ➔ Sort Devices in Registration Monitor 2-127
Sorts (arranges) devices in order.
Resetting devices Edit ➔ Reset Device in Monitor All/Registration Monitor 2-127
Returns the selected devices to their default values.
Timing chart 2-128
Timing charts for the registered devices are displayed while scans or
steps are executed (only when "Comment" on the dialog bar is set to
"No").
Mnemonic list window
When steps are executed, a mnemonic list window is displayed to 2-101
indicate the mnemonic line currently being executed.
Changing the current value/preset value/attribute (dialog bar)
Change device types, device numbers, current values, preset values, 2-96
etc. using the dialog bar, or register new devices to each monitor.
Set the bit count, radix and comment display method.
2-189
Appendices
2-190
Appendices
Show Ladder Always shows the ladder monitor window at the bottom
Monitor Always when two or more windows are displayed. This function is
at Bottom convenient when registering devices from the ladder
monitor to the monitor all or the registration monitor.
Appendices
Monitor All Displays a new monitor all window.
1
Open Window Reads a saved monitor all file or registration monitor file.
Save Window Saves a monitor all file or registration monitor file with a
new name.
2-191
Appendices
Break Condition Registers the break condition, and displays the break
condition window.
No. of Scales Sets the number of scales (one scale = one scan or one
for Timing Chart instruction) shown on timing charts displayed on the
registration monitor.
2-192
Appendices
● File
Editor [Ctrl] + [F1]
Clear Device and Go to Editor [Ctrl] + [F2]
● Edit
Search Ladder Monitor [Ctrl] + [F]
Search Backward [F2]
Search Forward [F3]
Search for OUT Backward [Shift] + [F2]
Search for OUT Forward [Shift] + [F3]
● Execution
Appendices
Execute Continuous Scan [F5] 1
Execute One Scan [F9]
Execute Continuous Step [Shift] + [F8]
Execute One Step [F8]
Execute High-speed Step [Shift] + [F9]
Execute Continuous Step in Reverse [Shift] + [F7]
Execute One Step in Reverse [F7]
Pause [F4]
Stop [Shift] + [F5]
Reset [F10]
● View
Enlarge Display [Ctrl] + [PageDown]
Reduce Display [Ctrl] + [PageUp]
● Help
2-193
Appendices
on timing chart
Reverse bit devices [ ]
Reads values to dialog bar [ENTER]
Delete devices [Delete]
2-194
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
Reading and saving a monitor all window File ➔ Open Window 2-111
➔ 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 2-121
➔ Save Window As 2-120
Reads a registration monitor file. Saves the current registration monitor
window with a new file name (extension: kre).
Appendices
Reading and saving change all File ➔ Open Window 2-150 1
➔ Save Window As
Saves the device setting read from the PLC with a new file name,
or reads the saved device setting (extension: kdv).
Setting communication parameters
Setting serial ports Settings ➔ Serial Port 2-136
Sets the COM port and baud rate (communication speed).
Setting the machine number (KV-300 Series only) 2-137
PLC operation mode
Setting the PLC operation mode Execute ➔ RUN 2-147
➔ STOP
Selects the operation mode of the PLC.
Starting and stopping the monitor
Starting the monitor Monitor ➔ Start Monitor 2-145
When the monitor is started, the operation status of the program
transferred to the PLC is displayed on the ladder monitor window, the
registration monitor window and the monitor all window in real-time.
Stopping the monitor Monitor ➔ Stop Monitor 2-145
2-195
Appendices
Initializing devices
Device all clear
Settings ➔ Device All Clear ➔ DM All Clear 2-154
➔ Latching Relay All Clear
➔ Counter All Clear
Sets the current value of each device to 0 (OFF).
Ladder monitor
Displaying a ladder monitor window File ➔ Ladder Monitor 2-144
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.
Registering devices to another monitor 2-114
For registration, select a device to be monitored, and then drag and
drop it to the registration monitor window or the monitor all window
while pressing and holding the left mouse button.
Appendices
2-196
Appendices
Appendices
Change device types, device numbers, current values, preset values, 2-96 1
etc. using the dialog bar, or register new devices to each monitor.
Set the bit count, radix and comment display method.
Changing the current values all at once
Changing the current values all at once File ➔ Change All 2-150
Reads devices in the specified range from the PLC, changes the
current values on an on-line basis, and then writes the changed
current values to the PLC.
Changing the mode
Editor File ➔ Editor 2-142
Terminates communication with the PLC, and changes to editor mode.
Printout
Printing out the registration monitor File ➔ Print 2-132
Prints out the contents currently displayed on the registration monitor.
2-197
Appendices
Show Ladder Always shows the ladder monitor window at the bottom
Monitor Always when two or more windows are displayed. This function is
at Bottom convenient when performing operations on another
window.
Save Window Saves a monitor all file or registration monitor file with a
new name.
No. of Scales for Sets the number of scales for timing charts.
Timing Chart
2-198
Appendices
● Edit
Search in Ladder Monitor [Ctrl] + [F]
Search Backward [F2]
Search Forward [F3]
Search for OUT Backward [Shift] + [F2]
Search for OUT Forward [Shift] + [F3]
● PLC mode
RUN [Shift] + [F7]
STOP [Shift] + [F6]
Appendices
● Monitor 1
Start Monitor [F4]
Stop Monitor [F3]
● View
Enlarge Display [Ctrl] + [PageDown]
Reduce Display [Ctrl] + [PageUp]
● Help
Using Help [F1]
Instruction Word [Ctrl] + [1]
2-199
Appendices
2-200
Appendices
• The circuit shown on the left cannot be programmed. Modify it as shown on the
right.
0500 0500
A B C E B
A
E
A D A E D
Appendices
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.
1000 0500
A A 1000
0500 1000
1000 A
• If the same coil is used in two positions, the latter position has the priority and the
coil in the former position is ignored.
0500 0500
A B A B
0500
C E C E
• The circuit shown on the left cannot be programmed. Modify it as shown on the
right.
0500 0500
A B C B C A
D E D E
F F E
• The circuit shown on the left cannot be programmed. Modify it as shown on the
right.
0500 0500
A B C D B
C D A
0501 0501
E C E
2-201
Appendices
2002
#0010 #0010
T000 T000
X
C
• Make sure that every contact/coil is located on a path from a bus to an output
line. Make sure that there are no unconnected portions.
X
A B
0500
• Make sure that illegal short-circuits are not generated in parallel connection.
X X
0500
A B C
D 0501
A B C 0500
D 0501
2-202
Appendices
A B C D E F G
Appendices
1
I
Fig. a
A B C D E F G
A I
Fig. b
2-203
Appendices
Note: When a file with the extension shown above is edited or deleted by any
software other than the LADDER BUILDER for KV or the KV IncrediWare (DOS), it
may not work correctly.
2-204
Appendices
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.
● Does the Windows system allow the use of a specific communication port?
Check that Windows has enabled the communication port specified with the
LADDER BUILDER for KV.
Appendices
disconnect the modem or use another communication port. 1
● Isn’t a serial mouse assigned to a specific communication port?
If you use a laptop computer with a serial mouse and replace the mouse with a
communication cable to start communication, the communication port is not
enabled. To solve this problem, if your computer has another available communi-
cation port, specify that port with the LADDER BUILDER for KV. If there is no
available communication port, disconnect the mouse and restart the KV unit.
2-205
Appendices
Appendices
2-206
Index
Index — For Visual KV User’s Only
2-208 Index
Index — For Visual KV User’s Only
Index
KV-P3E(01), entering instructions using Function No. list (alphabetical order) 3-41
KV-P3E(01), functions available with Function Nos. list 1-216
KV-P3E(01), operating Basic programming operation 1-200
M
Memory card, capacity of Storage capacity 1-230
Memory card, replacing battery of To replace battery 1-238
Multi-step comparator operation of DM, executing Multi-step comparator mode 3-234
O
Output, disabling output from KV Output disabled function 3-26
P
Panel mounting of KV Attaching a unit directly to a panel 1-66
Personal computer, receiving data from Receiving text data 3-318
Personal computer, transmitting data from KV to Transmitting text data 3-319
Program capacity, calculation of Calculating the byte count used 3-4
Program capacity, learning about Program capacity 3-4
Programs, saving into memory card Functions [used with KV-P3E(01)] 1-230
Pulse motor, driving Parameter setting procedure 3-255
Pulse output at desired frequency Specified frequency pulse output function 3-228
Relay Nos. assigned to basic unit Relay list 3-5
Relay Nos. assigned to expansion unit List of relays in expansion units 3-6 1
Relay Nos., assigning Assigning relay Nos. 3-8
S
Saving current value of counter/DM into ROM LOAD and SAVE modes 1-96
Scan time Scan time 3-3
Sensors or other devices, connecting to KV Wiring procedures for basic units 1-67
Special utility relays, change in status of, when arithmetic Change in status of special utility relays (arithmetic
3-186
instruction is used flags) by arithmetic instructions
Special utility relays, functions assigned to Special utility relay list 3-86
Specified frequency pulse output function, setting item for Device used for specified frequency pulse output 3-228
T
Temporary data memory, functions assigned to Temporary data memory 3-21
Timers/counters, maximum number of Timer/Counter list 3-18
Index 2-209
Index — For KV-300, KV-10/80 User’s Only
2-210 Index
Index — For KV-300, KV-10/80 User’s Only
MPX/@MPX: Multiplexer ........................................ 3-176 System Configuration (Memory Card) .................... 1-196
MRD: Read ............................................................. 3-103 System specifications [Visual KV Series] ............... 1-382
MUL/@MUL: Multiply .............................................. 3-150 System specifications [KV-300 Series] .................. 1-392
N T
NEXT: Repeat End .................................................. 3-125 TBCD/@TBCD: Transfer BCD ................................ 3-180
Non-procedure mode [KV-L2] ................................ 1-292 TBIN/@TBIN: Transfer BIN ..................................... 3-180
NOP: No Operation ................................................... 3-94 Temporary Memory ................................... 2-172, 2-176
Timers and Counters ........................................... 2-169
TMH: 0.01-s Timer .................................................... 3-68
O TMIN: Trimmer In .................................................... 3-138
OR: Or ....................................................................... 3-60 @TMIN: Trimmer Setting ........................................ 3-138
ORA/@ORA: Or A .................................................. 3-161 TMR: 0.1-s Timer ...................................................... 3-67
ORB: Or Bar .............................................................. 3-60 TMS: 1-ms Timer ...................................................... 3-69
ORL: Or Load ............................................................ 3-63 Transmitting text data .............................................. 3-319
OUB: Out Bar ............................................................ 3-65 Troubleshooting ..................................................... 1-372 1
OUT: Out ................................................................... 3-65
Output Relays ........................................................... 3-10 U
Index
UDC: Up-Down Counter ............................................ 3-76
P
Peripheral equipments ........................................... 1-176 W
Port1/Port2 [KV-L2] ................................................ 1-245
Positionning control ................................................. 3-296 W-DE: Wait Down Edge ............................................ 3-98
Programming examples .......................................... 3-324 W-OFF: Wait OFF ..................................................... 3-96
W-ON: Wait ON ......................................................... 3-96
W-UE: Wait Up Edge ................................................ 3-98
R
RASC/@RASC: Reverse ASCII Convert ................ 3-183 X
Receiving text data .................................................. 3-318
Relay/Memory/Memory Switch Lists .................. 2-167 @xxxx: Differentiation ............................................. 3-137
Relay/Memory Nos. .............................................. 2-167
Relay No. List ....................................................... 2-167
Relay Nos. and Functions ................................... 2-167
RES: Reset ............................................................... 3-66
RET: Subroutine Return .......................................... 3-122
RETI: Return Interrupt ............................................. 3-192
RLA/@RLA: Rotate Left A ...................................... 3-169
ROOT/@ROOT: Square Root ................................ 3-185
RRA/@RRA: Rotate Right ...................................... 3-169
RS-232C cable connection ..................................... 3-307
RS-232C Protocol ................................................... 3-306
RS-422A [KV-L2] .................................................... 1-248
S 1
SBN: Subroutine Entry ............................................ 3-122
Serial Communication ............................................. 3-306
SET: Set .................................................................... 3-66
SFT: Shift .................................................................. 3-82
SLA/@SLA: Shift Left A .......................................... 3-166
Special Utility Relays ............................................... 2-174
SRA/@SRA: Shift Right A ....................................... 3-166
STA/@STA: Store A ............................................... 3-140
Station No. [KV-L2] ................................................ 1-246
STE: Step End ........................................................ 3-114
STG: Stage ............................................................. 3-106
STP: Step ................................................................ 3-114
SUB/@SUB: Subtract ............................................. 3-150
System configuration .............................................. 1-166
Index 2-211
Index — Software/P3E (handheld programmer)
2-212 Index
1
Index
1
Index 2-213
Index
2-214 Index
WARRANTIES AND DISCLAIMERS:
(1) KEYENCE warrants the Products to be free of defects in materials and workmanship for a period of
one (1) year from the date of shipment. If any models or samples were shown to Buyer, such models or
samples were used merely to illustrate the general type and quality of the Products and not to represent
that the Products would necessarily conform to said models or samples. Any Products found to be defec-
tive must be shipped to KEYENCE with all shipping costs paid by Buyer or offered to KEYENCE for in-
spection and examination. Upon examination by KEYENCE, KEYENCE, at its sole option, will refund the
purchase price of, or repair or replace at no charge any Products found to be defective. This warranty
does not apply to any defects resulting from any action of Buyer, including but not limited to improper
installation, improper interfacing, improper repair, unauthorized modification, misapplication and mishan-
dling, such as exposure to excessive current, heat, coldness, moisture, vibration or outdoors air. Compo-
nents which wear are not warranted.
(2) KEYENCE is pleased to offer suggestions on the use of its various Products. They are only sugges-
tions, and it is Buyer’s responsibility to ascertain the fitness of the Products for Buyer’s intended use.
KEYENCE will not be responsible for any damages that may result from the use of the Products.
(3) The Products and any samples (“Products/Samples”) supplied to Buyer are not to be used internally
in humans, for human transportation, as safety devices or fail-safe systems, unless their written specifica-
tions state otherwise. Should any Products/Samples be used in such a manner or misused in any way,
1
KEYENCE assumes no responsibility, and additionally Buyer will indemnify KEYENCE and hold
KEYENCE harmless from any liability or damage whatsoever arising out of any misuse of the Products/
Samples.
Index
(4) OTHER THAN AS STATED HEREIN, THE PRODUCTS/SAMPLES ARE PROVIDED WITH NO
OTHER WARRANTIES WHATSOEVER. ALL EXPRESS, IMPLIED, AND STATUTORY WARRANTIES,
INCLUDING, WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY RIGHTS, ARE EXPRESSLY
DISCLAIMED. IN NO EVENT SHALL KEYENCE AND ITS AFFILIATED ENTITIES BE LIABLE TO ANY
PERSON OR ENTITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, SPECIAL OR CONSE-
QUENTIAL DAMAGES (INCLUDING, WITHOUT LIMITATION, ANY DAMAGES RESULTING FROM
LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF INFORMATION, LOSS OR INACCURACY OF
DATA, LOSS OF PROFITS, LOSS OF SAVINGS, THE COST OF PROCUREMENT OF SUBSTITUTED
GOODS, SERVICES OR TECHNOLOGIES, OR FOR ANY MATTER ARISING OUT OF OR IN CONNEC-
TION WITH THE USE OR INABILITY TO USE THE PRODUCTS, EVEN IF KEYENCE OR ONE OF ITS
AFFILIATED ENTITIES WAS ADVISED OF A POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR
ANY OTHER CLAIM AGAINST BUYER. In some jurisdictions, some of the foregoing warranty disclaimers
or damage limitations may not apply.
Index 2-215
96M0365
INDEX
1 2 3
Installation Support Programming
1. Configuration and
Software
1. Introduction 1. Programming
User's Manual