Вы находитесь на странице: 1из 134

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 3 Simulator
2-84
3
3.1 Outline of the Simulator Functions
This section outlines the simulator functions and the precautions for use.
3.1.1 Outline of the functions
The simulator simulates the operations of the ladder diagram created by the editor
without having to connect to the PLC.
The simulator offers the following functions.
Confirms a programs operation status in real-time using the ladder monitor,
registration monitor (timing chart) and monitor all.
Performs simulations using diversified execution methods such as continuous
scan, continuous step, one step and one scan.
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.
Provides easy adjustment of preset values, and current values of timers,
counters and devices, as well as contact comments.
Sets and resets contacts forcibly.
3.1.2 Restrictions in the simulator
Special utility relays 2002 to 2012 and 2206 are actuated. Other special utility
relays are not actuated.
High-speed counters are not actuated.
The direct clock pulse function is not available.
The positioning control function is not available.
The following restrictions are provided in operations of interrupt programs.
Data memory is not actuated if external data input is used.
KV-10 to 80: DM700 to DM799
KV-300: DM9000 to DM9299, DM9407, DM9517
Because simulation is performed in Windows, the scan time is longer than the
actual time required. Pay careful attention to the timer setting.
A small difference is generated in the cycle time indication depending on the
personal computer model. This occurs even when the same ladder program is
used because operations equivalent to those in the KV main body are simulated
internally in the personal computer.
INT CTC* Is not executed.
INT 0000 to INT 0003 Executed in the early portion of a scan.
INT 0003 The timing edge can be changed over when 2206 goes ON/
OFF. At this time, the current value of the CTH1 is not as
signed to the TM30.
Chapter 3 Simulator
2-85
1
3
I Special utility relays supported
The table below shows the special utility relays which can be processed by the
simulator.
Special utility relays
When conventional KV Series is selected:
When Visual KV Series is selected:
I 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.
Counters and high-speed counters are cleared according to the MEMSWs
specification.
Trimmer status is retained.
Relay No. Function
2002 Always ON
2003 Always OFF
2004 0.01 sec clock pulse (duty = 50%)
2005 0.1 sec clock pulse (duty = 50%)
2006 1.0 sec clock pulse (duty = 50%)
2007 OFF for only one scan when operation is started
2008 ON for only one scan when operation is started
2009 ON when arithmetic result is negative or when overflow occurs (<)
2010 ON when arithmetic result is 0 (=)
2011 ON when arithmetic result is positive (>)
2012 ON when arithmetic error occurs
2206 Selects edge of INT3 (ON: Down edge, OFF: Up edge)
2402/2403: Interrupt polarity of INT0
2402 OFF ON At rising edge OFF At falling edge ON At both edges
2403 OFF OFF ON ON
2404/2405: Interrupt polarity of INT1
2404 OFF ON At rising edge OFF At falling edge ON At both edges
2405 OFF OFF ON ON
2410/2411: Interrupt polarity of INT2
2410 OFF ON At rising edge OFF At falling edge ON At both edges
2411 OFF OFF ON ON
2412/2413: Interrupt polarity of INT3
2412 OFF ON At rising edge OFF At falling edge ON At both edges
2413 OFF OFF ON ON
Chapter 3 Simulator
2-86
3
3.2 Starting up and Exiting from the Simulator
This section describes the simulator startup method, screen layout, simulator func-
tions, etc.
3.2.1 Operating procedure for startup and exit
Startup procedure
File Simulator (Ctrl + F2)
The simulator can be started up by opening a ladder program created using the
editor.
Perform the following procedure in the editor.
1. In the editor, set the window of the ladder program to be simulated as the current
window.
2. Select "Simulator" from the "File" menu.
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.
Note: Simulation is disabled when a compile error is present.
Repair the error so that compile can be performed correctly, and then run the simu-
lation again.
Chapter 3 Simulator
2-87
1
3
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.
I Returning to the editor without clearing device values
Select "Editor" from the "File" menu.
Note: When this operation is performed, the information on bus, etc. is cleared.
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.
I Returning to the editor after clearing device values
Select "Clear Device and Go to Editor" from the "File" menu.
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.
Chapter 3 Simulator
2-88
3
3.2.2 Name and function of each part of the screen
When the simulator is started up, the ladder monitor window of the last edited ladder
program is displayed. If the monitor all window and registration monitor window were
previously displayed, they are also displayed when the simulator is started. In
addition, you can view the mnemonic list window and break condition window by
selecting them from the menu.
Sample screen
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
Main window title bar
Displays the file name of the ladder
program currently being simulated.
Menu bar
Displays the menu to
execute commands.
Tool bar
Provides buttons to execute commands.
Only commonly used commands are
provided as buttons. Each command
can be executed by clicking the
corresponding button once.
Dialog bar
Allows you to register devices, assign device
values and preset values, and reset timers
and counters.
Main window
The entire simulator
screen.
Ladder monitor
window
p. 2-90
Monitor all
window
p. 2-113
Registration
monitor window
p. 2-122
Status indication bar
Indicates the currently selected
function and the monitors
operating status.
Chapter 3 Simulator
2-89
1
3
3.3 Ladder Monitor
This section describes the ladder monitor window displayed while the simulator is
running, the scan/step execution procedure, the current/preset value change proce-
dure, etc.
3.3.1 Outline of the ladder monitor
The ladder monitor offers the following functions.
Executes the scan of the ladder.
Executes the step of the mnemonic.
Turns ON/OFF the bit device.
Changes the current value using the dialog bar.
Displays all of the registered comments.
Sets the break condition.
Sets the scan time.
Sets the watch dog timer.
3.3.2 Executing scans
Execution of scans is described below.
Outline of the scan execution function
"To execute a scan" means to start a program at the initialization process and run it
through to the end process. This is one scan cycle.
Execution of scans is classified into two types, "execution of continuous scan" and
"execution of one scan". "Execution of continuous scan" is equivalent to the "RUN"
operation in the monitor.
The one-scan time and the watch dog timer can be set. Current values and preset
values can be changed.
Displaying the ladder monitor window
File Ladder Monitor
If a displayed ladder diagram is closed, select "Ladder Monitor" from the "File" menu
to display it again, or click the button.
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.
Chapter 3 Simulator
2-90
3
Ladder monitor window
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.
I Moving the cursor
LEFT/RIGHT/UP/DOWN keys : Move the cursor in the corresponding
direction.
Pageup/PageDown keys : Move the cursor up or down one page
(screen).
Ctrl + UP/DOWN keys : Move the cursor by one block.
Home key : Move the cursor to the first line.
End key : Move the cursor to the last line.
I When dividing the screen into two windows
When the pointer is placed between the bottom of the scroll bar and the window
frame, the pointer is changed into " ". (While the pointer shape is " ", the window
size can be changed but the screen cannot be divided.)
When the left button is pressed and held and moved upward in this status, the
screen is divided into the upper and lower windows. Different contents can be
displayed in each window. However, only the upper window is scrolled when a step
is executed. (The lower screen is not scrolled.)
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.
Cursor
Contact
Line No.
Step No.
Scroll bar
Chapter 3 Simulator
2-91
1
3
I Status indication during execution
While a scan or step is executed, the current operation status and the scan time are
displayed in the status indication area on the main window.
Note: While the continuous scan operation is executed, "Execute Scan" is dis-
played. While the continuous step operation is executed, "Execute Step" is dis-
played.
I Changing the display size and the display method
Five different sizes are available to display the ladder diagram. The ladder monitor
window can be always displayed below other windows.
When changing the display size
The following five display sizes can be selected.
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 set the display mode, perform the following procedure.
Selecting the upper mode: View Zoom In (Ctrl + PageDown)
Selecting the lower mode: View Zoom Out (Ctrl + PageUp)
When displaying the ladder monitor window at the bottom
The ladder monitor window can always be displayed below the mnemonic list
window and other windows. Therefore, each device can be registered to each
monitor by dragging and dropping it even if the registration monitor window and the
monitor all window are placed on top of the ladder monitor window.
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
Step No. being executed Status (Operating, Stopped or Paused)
Operation mode being executed Scan time
Chapter 3 Simulator
2-92
3
Executing continuous scan
Execute Execute Continuous Scan (F5)
A program can be executed continuously.
To execute a program continuously, select "Execute Continuous Scan" from the
"Execute" menu, or click the button.
The operation status is displayed on the ladder monitor window.
Ladder monitor window (p. 2-90)
One scan is repeated.
Program is executed.
One scan
End process
Chapter 3 Simulator
2-93
1
3
Executing one scan
Execute Execute One Scan (F9)
A program can be executed only once. When only one scan is executed while scans
are continuously executed or one step is executed, operation is paused.
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.
End process
One scan
Program is executed.
Chapter 3 Simulator
2-94
3
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.
I Selecting a device using the mouse
Place the mouse pointer over the device to be selected, and click it.
The cursor becomes gray to indicate that it is selected.
I Selecting a device using the keyboard
While the cursor is green, place the cursor in the device to be selected using the
LEFT, RIGHT, UP and DOWN keys, and then press the ENTER key.
The cursor becomes gray to indicate that it is selected.
I Changing the current value, etc.
Once a device is selected, the current value, etc. can be changed using the dialog
bar.
For the procedure for changing the current value, preset value, etc. using the dialog bar, refer to
"Changing the current value/preset value/attribute" (p. 2-96).
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.
0000 0000
Chapter 3 Simulator
2-95
1
3
Turning on/off bit devices
To turn on/off a bit device, perform the following procedure.
I Turning on/off a bit device using the mouse
Place the cursor over the device to be turned on/off, and double-click it.
The color of the contact changes to indicate that the ON/OFF status has been
toggled.
When the mouse is used for operation, the cursor is selected as soon as it is
double-clicked.
I Turning on/off a bit device using the keyboard
While the cursor is green, place the cursor in the device to be turned on/off using the
LEFT, RIGHT, UP and DOWN keys, and then press the space bar.
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
OFF status
While the mouse is used While the cursor is manipulated
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.
0000 0000
0000 0000
Chapter 3 Simulator
2-96
3
Changing the current value/preset value/attribute
To change the current value, preset value or attribute (radix, comment) of the
selected device, use the dialog bar.
The dialog bar is displayed at the bottom of the screen, and allows you to register a
device on the monitor all window and registration monitor window. To change the
current value, preset value and attribute (radix, comment), perform the following
procedure.
For registration of devices, refer to Monitor All on page 2-109 and Registration Monitor on
page 2-119.
1. Select the device to be changed on the ladder monitor window.
Selecting devices (p. 2-94)
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).
When the ENTER key is pressed, the following operation is performed.
When the cursor is placed in "Type" or "No.": Registers a new value.
When the cursor is placed in "Bit", "Radix" or "Comment": Writes a value to the
current device.
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.
Comment
Preset value write button
Radix
Current value write button
Preset value write box
Current value write box
Chapter 3 Simulator
2-97
1
3
3. Click the [Write Current Value] button or the [Write Preset Value] button.
The current value or preset value is changed.
Set items and available contents/values
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.
I To cancel the settings
Click the [Cancel] button.
I To return the timer/counter setting to the default value
Click the [Reset] button. (This button is only displayed when a timer/counter is set.)
I 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.
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.
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 (twos 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.
Chapter 3 Simulator
2-98
3
Setting break conditions
Settings Set Break Condition Break Condition
OR condition # Right-click
The break condition is the condition which stops a program while execution of one
scan or step is repeated continuously. The break condition can be specified for each
device. Use the break condition to confirm the partial operation status or to detect a
defective location.
When using the break condition together with the step function, operations can be
confirmed in a shorter time.
To set the break condition, perform the following procedure.
1. Select "Settings", "Set Break Condition" and "Break Condition" from the menu, or
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.
3. Specify the device name and the condition.
For word devices, specify the condition using comparison arithmetic.
For bit devices
For word devices
Device name Specify one device name.
Condition ON Sets "contact ON" as the condition.
OFF Sets "contact OFF" as the condition.
Device name Specify two device names.
Comparison arithmetic < Sets "Right is larger than left." as the condition.
= Sets "Left is equivalent to right." as the condition.
> Sets "Left is larger than right." as the condition.
< Sets "Right is larger than or equivalent to left." as the
condition.
> Sets "Left is larger than or equivalent to right." as the
condition.
=
=
Chapter 3 Simulator
2-99
1
3
4. Click the [Register] button.
The specified condition is registered, and the contents are displayed on the break
condition window.
5. When registering two or more conditions, repeat steps 2 to 4.
6. When all conditions are registered, click the [Exit] button.
The "Register Break Condition" dialog box is closed.
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.
Changing and deleting registered contents
All the registered conditions are displayed on the break condition window.
The registered contents can be changed or deleted from this window.
I Changing the registered contents
Place the cursor over the condition to be changed, and double-click it. The "Regis-
ter/Change Break Condition" dialog box is then displayed. (See the figure above.)
Set a new break condition, and click the [Change] button. The break condition in the
line with the cursor is changed.
When first registering the condition, click the [Register] button instead.
I Deleting the registered contents
The following three methods are available to delete the registered contents.
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.
Chapter 3 Simulator
2-100
3
Setting the scan time
Settings Scan Time
Set the time for execution of one scan or step. For execution of one scan, there are
two time settings: the measured value indicating the actual time and the virtual fixed
value (fixed scan). (For execution of one step, only the virtual fixed value can be
set.)
1. Select "Scan Time" from the "Settings" menu.
The "Set Scan Time" dialog box is displayed.
2. When setting the fixed scan, click "Set Fixed Scan" to add a check mark.
3. 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.
I Fixed scan
The length of the scan time while the simulator is running usually depends on the
personal computers 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.
Setting the watch dog timer
Settings Set Watch Dog Timer
The watch dog timer detects abnormal delays in the program execution cycle. These
delays can be due to programming errors (i.e. infinite loops), or any other condition
that may cause the program to take too long to finish. The default value is "3,000
msec (= 3 sec)".
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.
1. Select "Set Watch Dog Timer" from the "Settings" menu.
The "Set Watch Dog Timer" dialog box is displayed.
2. Enter the watch dog timer within the range of "500 msec (0.5 sec) to 5,000 msec
(5 sec)".
Chapter 3 Simulator
2-101
1
3
3.3.3 Executing steps
Execution of steps is described below.
Outline of the step execution function
"To execute a step" means to simulate the program one instruction at a time. While
a step (one instruction) is executed, a mnemonic list is displayed and the line cur-
rently being executed can be verified.
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.
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".
Mnemonic list window
When a step is executed, the displayed device values and ON/OFF status are
changed continuously on the ladder monitor window according to the operation
speed. The current position is also scrolled according to the operation speed.
In addition, the mnemonic list window is opened and the mnemonic line currently
being executed is highlighted.
Line No. Mnemonic Operand
Current cursor position
Displays the position in which
the cursor is currently
located.
Execution line cursor
Highlights the line currently
being executed.
Break point cursor
Displays the break point by
double-clicking.
When the execution line cursor is
superimposed on the break point
cursor, it is displayed in red.
Scroll bar
Yellow (when
changing setting)
Blue
Chapter 3 Simulator
2-102
3
When execution reaches
"ENDH", the cursor
returns to the top.
One step (instruction) is
executed every time the is
clicked.
When execution
reaches "ENDH", the
cursor returns to the top.
One step (instruction) is
continuously executed.
L
L
L
Executing a step once
Execute Execute One Step (F8)
A step in a program can be executed only once. When a step is executed only once
during a scan, execution is stopped.
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)
Executing a step continuously
Execute Execute Continuous Step (Shift + F8)
A step in a program can be continuously executed.
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)
L
L
L
L
L
L
1 step = 1 instruction
Chapter 3 Simulator
2-103
1
3
Note 1: Only the upper window is scrolled according to the operation speed. To
confirm the operation of a certain portion, use the lower screen.
Note 2: If the speed is too fast, increase the wait time appropriately.
Executing steps at a high speed
Execute Execute High-speed Step (Shift + F9)
You can specify the program to stop execution at a certain step. The program will
then be executed quickly without displaying the progress at each step. When the
program reaches the specified step, it will stop execution.
When a jump instruction is provided in the specified range, execution is stopped
after the specified line.
This type of execution is useful when the portion to be simulated is located near the
end of a long program.
To execute steps at high speed, perform the following procedure.
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.
The program is executed up
to the specified step.
L
Chapter 3 Simulator
2-104
3
Executing a step once in the reverse direction
Execute Execute One Step in Reverse (F7)
After a step is executed once, a step is executed continuously, or steps are ex-
ecuted at high speed, these steps can be re-executed one at a time in the reverse
direction.
To execute a step once in the reverse direction, select "Execute One Step in Re-
verse" from the "Execute" menu, or click the button.
Executing a step continuously in the reverse direction
Execute Execute Continuous Step in Reverse (Shift + F7)
After a step is executed once, a step is executed continuously, or steps are ex-
ecuted at a high speed, these steps can be re-executed continuously in the reverse
direction.
To execute a step continuously in the reverse direction, select "Execute Continuous
Step in Reverse" from the "Execute" menu, or click the button.
I Executing a step in the reverse direction
When a step is executed in the reverse direction, all the items which changed due to
the execution of the program are returned to their original status. This includes the
device values and the bus status.
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.
When execution reaches
the top, the cursor
returns to "ENDH". One step (instruction) is
executed every time the
button is clicked.
When execution reaches
the top, the cursor
returns to "ENDH".
One step (instruction) is
continuously executed in
the reverse direction.
L
L
L
L
L
L
L
L
L
Chapter 3 Simulator
2-105
1
3
Specifying a break point
A break point is the position in which a program is to be stopped. When a break
point is first specified, the program is automatically stopped in the specified position
while a step is continuously executed.
To specify a break point, place the cursor in the line to be specified, and then
double-click it or press the space bar.
The break point cursor is displayed in yellow. 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.)
Two or more break points can be specified.
To cancel a break point setting, place the cursor in the specified line, and then
double-click it or press the space bar.
The break point cursor is deleted.
3.3.4 Jump and search
The simulation control can be jumped to a different position by specifying a line
number or step number in the program. Instructions and devices can be found while
setting an instruction word and an operand as the key words. A cross reference
search can be performed from the current position.
Jump to the specified line/step
Edit Jump in Ladder Monitor
To jump to a different position by specifying a line number or step number, perform
the following procedure.
1. Select "Jump in Ladder Monitor" from the "Edit" menu.
The "Jump to Specified Line" dialog box is displayed.
2. Specify a line number or step number as the jump destination.
When the cursor position in the line
currently being executed is specified
Chapter 3 Simulator
2-106
3
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.
Searching by specifying an instruction word/operand
Edit Search in Ladder Monitor
To find instructions and devices in a program by specifying an instruction word and
operand, perform the following procedure.
Note: A search can be performed only when simulation is stopped and the ladder
monitor is active.
1. Select "Search in Ladder Monitor" from the "Edit" menu.
The "Find Instruction/Device" dialog box is displayed.
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.
3. Select the search direction.
Forward: Searches forward from the current cursor position.
Backward: Searches backward from the current cursor position.
4. Click the [Next] button.
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 "Cant find
specified symbol." is displayed.
5. To perform a continuous search, click the [Next] button. To stop the search, click
the [Cancel] button.
Chapter 3 Simulator
2-107
1
3
Cross reference search
Edit Find Device at Cursor Position on Ladder Monitor
Search Backward (F2) # Right-click
Search Forward (F3) # Right-click
Search for OUT Backward (Shift + F2) # Right-click
Search for OUT Forward (Shift + F3) # Right-click
To perform a cross reference search means to search for a device equivalent to the
device in the current cursor position or an instruction which sets the device to OUT.
The following four search methods are available.
Search in the backward direction
Search Backward (F2) # Right-click
Searches for a device equivalent to the device in the current cursor position in the
area before the current position.
Search in the forward direction
Search Forward (F3) # Right-click
Searches for a device equivalent to the device in the current cursor position in the
area after the current position.
Search for OUT in the backward direction
Search OUT Backward (Shift + F2) # Right-click
Searches for an instruction which sets the device in the current cursor to OUT in the
area before the current position.
Search for OUT in the forward direction
Search OUT forward (Shift + F3) # Right-click
Searches for an instruction which sets the device in the current cursor to OUT in the
area after the current position.
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.
Chapter 3 Simulator
2-108
3
3.3.5 Stop/reset and device all clear
To stop/reset execution of scans or steps, or to clear all the devices, perform the
following procedure.
Stopping/pausing the operations
Execute Stop (Shift + F5)
Pause (F4)
Operations can be stopped or paused.
Select "Stop" or "Pause" from the "Execute" menu, or click the or button.
When "Stop" is specified, all types of operations are stopped and the output Y is
cleared.
When "Pause" is specified, all types of operations are temporarily stopped.
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.
Select "Reset" from the "Execute" menu, or click the button.
When this procedure is performed during operation, the operation is stopped.
The system is processed as if the power of the PLC is turned off, and is then
turned on again.
Device all clear
Execute Device All Clear DM All Clear
Latching Relay All Clear
Counter All Clear
By the device all clear function, the current value of some devices can be initialized.
The following three initialization methods are available.
Clearing all data memory
Execute Device All Clear DM All Clear
Clearing all latching relays
Execute Device All Clear Latching Relay All Clear
Clearing all counters
Execute Device All Clear Counter All Clear
When device all clear is performed during operation, the operation is stopped.
Chapter 3 Simulator
2-109
1
3
3.4 Monitor All
Monitor all displays the current value of all devices, the ON/OFF status of contacts,
and registered comments for each device type. This section describes the opera-
tions available in monitor all.
3.4.1 Outline of monitor all
Monitor all offers the following functions.
Displays the current value and preset value of all devices, and the ON/OFF
status of the contacts and coils for each device type.
Displays all the registered comments.
Turns on/off bit devices.
Changes the current value, etc. using the dialog bar.
Sets the break condition.
Sets the scan time.
Sets the watch dog timer.
3.4.2 Displaying, saving, and reading the monitor all window
To display the monitor all window, a device must be selected on the ladder monitor
window. The contents registered to the monitor all window can be saved in a file for
each device type, to be read at a later time.
Displaying the monitor all window
File Monitor All
The method for displaying the monitor all window is different depending on whether
you are opening a new window or changing the contents of a currently open window.
I When displaying a new window
To display the monitor all window for the first time or to display it in another window,
perform the following procedure.
1. On the ladder monitor window, select the device to be displayed.
When a device is clicked, its color is changed to indicate that it is selected.
Chapter 3 Simulator
2-110
3
2. Select "Monitor All" from the "File" menu, or click the button.
The monitor all window is opened.
A list is displayed in the window, with the selected device at the top.
The line of the selected device is highlighted to indicate that it is selected.
Note: Every time this procedure is performed, a new window is opened.
I When changing the contents displayed on an open window
When the monitor all window is already open and you want to change its contents,
perform the following procedure. For more details, refer to the corresponding sec-
tion.
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)
Chapter 3 Simulator
2-111
1
3
Saving the monitor all window
File Save Window As
To save the monitor all window, perform the following procedure.
1. Select the monitor all window to be saved as the current window.
2. Select "Save Window As" from the "File" menu, or click the 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.
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.
Reading the monitor all file
File Open Window
To read a monitor all file, perform the following procedure.
1. Select "Open Window" from the "File" menu.
The "Open Window" dialog box is displayed.
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.
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.
Chapter 3 Simulator
2-112
3
4 Click the [OK] button.
The specified file is read, and the monitor all window is opened.
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.
Chapter 3 Simulator
2-113
1
3
3.4.3 Monitor all window
To look at the hidden (undisplayed) portion, use the scroll bar or the [PageUp]
and [PageDown] keys.
The cursor can be moved using the [LEFT] [RIGHT] [UP][DOWN] keys.
While the simulator is running, the current values are changed accordingly.
Current value display format
B: Bit
O: Byte
D: Binary without sign
d: Binary with sign
H: Hexadecimal
A: ASCII
3.4.4 Registering devices
To perform a simulation using the monitor all window, a device must be registered.
Three methods are available to register a device.
Selecting and registering a device on the ladder monitor window
File Monitor All
1. On the ladder monitor, select the device to be displayed.
When a device is clicked, its color is changed to indicate that it is selected.
Contact status
Device No. Current value Preset value Comment
Cursor
Scroll bar
Display Bit Radix Sign
format
B1 1 2 Not provided
B16 16 2 Not provided
O16 16 8 Not provided
O32 32 8 Not provided
D16 16 10 Not provided
D32 32 10 Not provided
d16 16 10 Provided
d32 32 10 Provided
H16 16 16 Not provided
H32 32 16 Not provided
A16 16 ASC
A32 32 ASC
Chapter 3 Simulator
2-114
3
2. Select "Monitor All" from the "File" menu, or click the button.
The monitor all window is opened.
A list is displayed in the window, with the selected device at the top.
The line of the selected device is highlighted to indicate that it is selected.
Registering a device by dragging it from the ladder monitor window
Drag and drop a device from the ladder monitor window, and register it to the moni-
tor all or registration monitor window.
In this case, it is recommended to display the ladder window at the bottom by
selecting "Move Ladder to Bottom" from the "View" menu or clicking the button.
This allows dragging and registration to be performed even while the registration
destination window is positioned above the ladder monitor window.
1. While a device is selected, press and hold the left mouse button.
The cursor shape is changed.
2. While pressing and holding the left button, move the cursor to the monitor all
window (drag).
Chapter 3 Simulator
2-115
1
3
3. Release the left button (drop).
In the monitor all window, a list of devices with an equivalent type to the selected
device is displayed.
The line of the selected device is highlighted to indicate that it is selected.
Registering a device by specifying it using the dialog bar
The dialog bar is a tool shared by the ladder monitor window, the monitor all window
and the registration monitor window. It allows you to register new devices and
change the setting of the selected device.
The following items can be set using the dialog bar.
Device type
Device No.
Bit count
Radix
Comment display method
*1.
Current value
Preset value (in a timer/counter exclusively)
*1. It is not displayed while the ladder monitor window is active.
Changing the current value/preset value/attribute: Note (p. 2-96)
1. When registering a device, first perform the following procedure.
I When the registration destination window is not open
Specify the device to be registered using the dialog bar, and then select the monitor
to which the device is to be registered.
I When the registration destination window is open
Set the monitor window to which a device is to be registered as the current window,
and then set the device to be registered using the dialog bar.
Chapter 3 Simulator
2-116
3
2. Set the device to be registered using the dialog bar.
For items, contents and precautions on changing settings, refer to "Changing the current value/preset
value/attribute" on page 2-96.
3. Click the [Register] button.
The device satisfying the contents set is registered to each monitor.
I To cancel the setting entered
Click the [Cancel] button.
3.4.5 Selecting and changing devices
Devices can be selected on the monitor all window, and then the ON/OFF status
and the current value of bit devices can be changed.
Selecting devices
To select a device, perform the following procedure.
I Selecting a device using the mouse
Place the cursor over the device to be selected, and click it.
The cursor changes to gray to indicate that the device is selected.
I Selecting a device using the keyboard
When the cursor color is the same as the title bar color, place the cursor in the
device to be selected using the UP and DOWN keys, and press the ENTER key.
The cursor changes to gray to indicate that the device is selected.
Comment
Preset value write button
Radix Current value write button
Preset value write box
Current value write box
Status in which a device is selected
Chapter 3 Simulator
2-117
1
3
I Changing the current value, etc.
Once a device is selected, the current value, etc. can be changed using the dialog
bar.
For the procedure for changing the current value, preset value, etc. using the dialog bar, refer to
"Changing the current value/preset value/attribute" on page 2-118.
Turning on/off bit devices
To turn on/off a bit device, perform the following procedure.
I Turning on/off a bit device using the mouse
Place the cursor over the device to be turned on/off, and double-click it.
The ON/OFF indication is toggled.
I Turning on/off a bit device using the mouse
When the cursor color is the same as the title bar color, place the cursor in the
device to be turned on/off using the UP and DOWN keys, and press the space bar.
The ON/OFF indication is toggled.
I Turning on/off each bit using the bit cursor
When a bit device consists of 16 bits and is set to binary, the bit cursor is displayed.
Place the bit cursor in the device to be turned on/off, and double-click it. Or when the
cursor color is equivalent to the title bar color, place the cursor in the device to be
turned on/off using the LEFT and RIGHT keys and press the space bar. The indica-
tion is toggled between "0" and "1", and each bit can be turned on/off separately.
ON status OFF status
7015 B01
7100 B01
7101 B01
7015 B01
7100 B01
7101 B01
7000 0000000000000000 B16
7100 0000001000000000 B16
7200 0000000000000000 B16
Chapter 3 Simulator
2-118
3
Changing the current value/preset value/attribute
The dialog bar is a tool shared by the ladder monitor window, the monitor all window
and the registration monitor window, and allows you to register new devices and
change the setting of the selected device.
The following items can be set using the dialog bar.
Device type
Device No.
Bit count
Radix
Comment display method
Current value
Preset value (only in a timer/counter)
I 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.
3 Click the [Write Current Value] or [Write Preset Value] button.
The contents set using the dialog bar are written to the selected device.
I To cancel the setting entered
Click the [Cancel] button.
I To return the setting of a timer/counter to the default value.
Click the [Reset] button. (This button is displayed only when a timer/counter is set.)
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.
Comment Preset value write button
Radix Current value write button
Preset value write box Current value write box
Chapter 3 Simulator
2-119
1
3
3.5 Registration Monitor
The registration monitor displays timing charts for registered devices. When steps
are executed, the current status is displayed in real-time so that program operations
can be confirmed. This section describes how to view and manipulate the registra-
tion monitor.
3.5.1 Outline of the registration monitor
The registration monitor offers the following functions.
Registers up to 40 devices.
Changes the position of registered devices.
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.
3.5.2 Displaying, saving, and reading the registration monitor
The registration monitor registers devices and displays timing charts.
The registration monitor window in which devices are registered can be saved in a
file.
Displaying the registration monitor
File Registration Monitor
When displaying the registration monitor for the first time, display the registration
monitor window, and then register devices by dragging and dropping them from the
ladder monitor or by using the dialog bar.
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.
Chapter 3 Simulator
2-120
3
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.
The registration monitor window is open.
Note: Every time this operation is performed, a new window is opened.
2. On the ladder monitor window, select devices to be registered, and press and
hold the left mouse button.
The cursor shape is changed.
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.
The selected devices are displayed on the registration monitor window.
Timing charts are displayed by default. To display comments, select the com-
ment type using "Comment" on the dialog bar.
Saving the registration monitor
File Save Window As
To save the registration monitor window, perform the following procedure.
1. Select the registration monitor window to be saved as the current window.
When registering one device
M
M
When registering all the devices displayed on the screen
Drag
[Ctrl] +
Drag
Chapter 3 Simulator
2-121
1
3
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.
Reading the registration monitor file
File Open Window
To read a registration monitor file, perform the following procedure.
1. Select "Open Window" from the "File" menu.
The "Open Window" dialog box is displayed.
2. Specify the folder and file name in which the file to be read is located.
3. Click the [OK] button.
The specified file is read, and the registration monitor window is opened.
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.
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.
Chapter 3 Simulator
2-122
3
3.5.3 Registration monitor window
On the registration monitor window, timing charts and comments are displayed
along with the device data, current values and preset values.
When many devices are registered, it is recommended that you open two or
more windows for easier viewing.
The cursor can be moved using the LEFT/RIGHT/UP/DOWN keys.
While the simulator is running, the current values are changed continuously
according to the operation speed.
I Displaying comments or timing charts
Whether timing charts or comments are to be displayed can be set for each device
using "Comment" on the dialog bar.
No: Timing charts are displayed.
Comment 1, Comment 2 or Comment 3: Comments are displayed (along with the
preset value in the case of a timer/counter).
3.5.4 Registering devices
To perform a simulation using the registration monitor, a device must be registered.
Two methods are available to register a device.
Registering a device by dragging it from the ladder monitor window
The registration procedure is the same as step 2 and onward in the procedure described for the
monitor all. Refer to page 2-114.
Registering a device by specifying it using the dialog bar
The registration procedure is the same as that described for the monitor all. Refer to page 2-115.
Device No. Bit device status Vertical cursor
Current value Preset value Comment Timing chart Cursor
Chapter 3 Simulator
2-123
1
3
3.5.5 Selecting and changing devices
Devices can be selected on the registration monitor window, and then the ON/OFF
status and the current value of bit devices can be changed.
Note: Devices must first be registered before using the registration monitor.
The device registration procedure is described in "3.5.2 Displaying, saving, and
reading the registration monitor" ( p. 2-118)
Selecting devices
To select a device, perform the following procedure.
I Selecting a device using the mouse
Place the cursor over the device to be selected, and click it.
The cursor changes to gray to indicate that the device is selected.
I Selecting a device using the keyboard
When the cursor color is the same as the title bar color, place the cursor in the
device to be selected using the UP and DOWN keys, and press the ENTER key.
The cursor changes to gray to indicate that the device is selected.
Status in which a device is selected
Chapter 3 Simulator
2-124
3
Turning on/off the bit device
To turn on/off a bit device, perform the following procedure.
I Turning on/off a bit device using the mouse
Place the cursor over the device to be turned on/off, and double-click it.
The ON/OFF indication is toggled.
I Turning on/off a bit device using the mouse
When the cursor color is the same as the title bar color, place the cursor in the
device to be turned on/off using the UP and DOWN keys, and press the space bar.
The ON/OFF indication is toggled.
Changing the current value/preset value/attribute
The dialog bar allows you to change the type, number, attribute, current value and
preset value of devices.
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.
ON status OFF status
7015 B01
7100 B01
7101 B01
7015 B01
7100 B01
7101 B01
Chapter 3 Simulator
2-125
1
3
Copying the device attribute
Edit Copy Device Attribute in Registration Monitor # Right-click (Copy Attribute)
Only the device attribute (bit count, radix, comment type) of another device can be
copied. This function can be used to copy only the attribute of another device while
retaining the device type and device number.
To copy the attribute, perform the following procedure.
1. Left-click the copy source device.
2. Place the cursor in the copy destination device, and right-click it. When the menu
is displayed, select "Copy Attribute".
The attribute is copied.
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.
M
Chapter 3 Simulator
2-126
3
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.
1. Place the cursor in the device to be moved.
2. While pressing and holding the left mouse button, move the mouse cursor to the
device in the position below the destination (drag).
3. Release the left button (drop).
The device is inserted at the mouse cursor position.
Chapter 3 Simulator
2-127
1
3
Deleting devices
Edit Delete Devices in Registration Monitor # Right-click (Delete)
To delete the device in the currently selected cursor position, perform the following
procedure.
Select "Delete Devices in Registration Monitor" from the "Edit" menu.
The selected device is deleted.
The device below the deleted device is selected.
Sorting devices
Edit Sort Devices in Registration Monitor # Right-click (Sort)
To sort devices by type or number, perform the following procedure.
Select "Sort Devices in Registration Monitor" from the "Edit" menu.
Devices are sorted by the "Type" list on the dialog bar.
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.
Before deletion
After deletion
Chapter 3 Simulator
2-128
3
3.5.6 Manipulating timing charts
This section describes timing charts displayed in the registration monitor.
When steps are executed, timing charts are displayed in real-time to indicate the
value history. You can confirm the operation status of a program such as the timing
at which the ON/OFF status of the contact of each registered device is changed
over, etc.
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
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.
I How to interpret a timing chart
Timing charts for all the registered devices are displayed on the screen. For con-
tacts, the ON/OFF status can be determined by the shape. For word devices, the
ON/OFF status can be determined by a change in the value.
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.)
While scans are executed: One scale indicates one scan.
While steps are executed: One scale indicates one instruction.
When the execution method is changed over, the timing chart color changes.
I Moving the vertical cursor
The vertical cursor is displayed when a scale is clicked. The vertical cursor can be
moved using either of the following two procedures.
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.
Chapter 3 Simulator
2-129
1
3
When "32" is entered
When "100" is entered
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.
Setting the number of scales for timing charts
Settings Set No. of Scales for Timing Chart
Scales are provided at the top of timing charts. One scale indicates one scan while
scans are executed or one instruction while steps are executed.
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 "Cant 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.
Chapter 3 Simulator
2-130
3
Setting the wait time
Settings Wait Time
The wait time available while scans are executed can be set.
The wait time is applied to all the operations performed by the simulator. When the
execution speed is too fast or slow, adjust the wait time value accordingly. The wait
time cannot be set in the monitor.
To set the wait time, perform the following procedure.
1. Select "Wait Time" from the "Settings" menu, or click the button.
The "Set Wait Time" dialog box is displayed.
2. Set the wait time between 0 and 10000 ms. The default value is 90 ms.
3. Click the [OK] button to register the value entered. To cancel the setting, click the
[Cancel] button.
Chapter 3 Simulator
2-131
1
3
3.5.7 Printing out the registration monitor
The contents of the registration monitor can be printed out. This section describes
the printout procedure.
Only the registration monitor can be printed out.
First select the registration monitor to be printed out as the current window.
Note: Before performing a printout, confirm the following.
The printer should be correctly connected.
The printer should be correctly set by selecting "Printer Setup" from the "File"
menu.
If the printer is not correctly set, correct the settings according to the requirements
for your printer.
Preview display
File Print Preview
To confirm the contents to be printed out on the preview screen, perform the follow-
ing procedure.
1. Select the registration monitor to be printed out as the current window.
2. Select "Print Preview" from the "File" menu.
The image that will be printed out is displayed on the screen.
The [Print] button on the screen can be clicked to print out the image displayed.
Chapter 3 Simulator
2-132
3
Executing printout
File Print
To execute printout, perform the following procedure.
1. Select the registration monitor window to be printed out as the current window.
2. Select "Print" from the "File" menu.
The "Print" dialog box is displayed.
3. Select "All" in "Print Range", and click the [OK] button.
Printout is executed.
Note: If printout is not correctly performed, confirm the settings and connection
status of the printer.
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
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
Chapter 4 Monitor
2-134
4
4.1 Outline of the Monitor Functions
This section outlines the monitor functions and the precautions for use.
4.1.1 Outline of the functions
The monitor compiles (converts) ladder programs created by the editor, transfers the
converted programs to the PLC (Visual KV or conventional KV), and executes them
to confirm the operation status.
As well, programs saved in the currently connected PLC can be transferred to the
personal computer, decompiled, and then executed to confirm the operation status.
The monitor offers the following functions.
Allows you to confirm the operation status of a program in real-time using the
ladder monitor, timing charts, etc.
Changes the operation mode of the PLC.
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.
Returns some devices to the default values.
4.1.2 Restrictions in the monitor
After the monitor is stopped, never disconnect the PLC and connect another PLC
while the monitor window is displayed. If you do this, the contents of the ladder
monitor on the monitor may be different from the contents of the ladder program
in PLC, and the program may not operate correctly.
Write is disabled in 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) while a program is running.
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.
Up to 1000 comments can be transferred. (Visual KV and KV-300 only)
When "Transfer comment" is specified, comments are always transferred even
when the program has no change. (Visual KV and KV-300 only)
Chapter 4 Monitor
2-135
1
4
4.1.3 Precautions for communication
Connect the PLC to the personal computer with the connection cable, and
confirm that the serial port of the monitor is correctly connected before starting up
the monitor.
If it is not correctly set, the error message "Check connection cable with the
PLC." is displayed when the monitor is started up, and monitoring is disabled.
The initial preset values of the serial port are "COM port: No. 1" and "Baud rate:
AUTO". When using any other setting, read the description in "4.2 Communicat-
ing with the PLC" ( p. 2-136), and then change the setting.
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.
Never perform communication in a location with excessive noise. A communica-
tion error may occur.
Never disconnect the connection cable or abort communication while a program
is being written, as programs saved in the Visual KV or the conventional KV will
be deleted.
If communication errors occur often, set the baud rate (communication speed) to
a lower value.
Chapter 4 Monitor
2-136
4
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.
4.2 Communicating with the PLC
This section describes how to transfer ladder programs created using the editor to
the PLC and how to transfer programs from the PLC.
4.2.1 Setting the PLC communication parameters
File Communication Setup Set PLC Communication Parameters
Before communicating with the PLC, the COM port and the baud rate (communica-
tion speed) on the personal computer connected to the PLC should be set.
To set these parameters, open the monitor from the editor.
1. Select "File", "Communication Setup" and "Set PLC Communication Parameters"
from the menu on the editor screen.
The monitor is displayed.
2. Select "Serial Port" from the monitors "Settings" menu.
The "Set Communication Parameters" dialog box is displayed.
For the setting procedure, refer to "Setting the serial port" below.
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.
Setting the serial port
Settings Serial Port
To set the serial port, perform the following procedure while the monitor is stopped
(while communication is not being performed).
1. Select "Serial Port" from the "Settings" menu.
The "Set Communication Parameters" dialog box is displayed.
2. Set the COM port and the baud rate (communication speed) to be used.
3. Click the [OK] button to register the setting. To cancel the setting, click the
[Cancel] button.
Chapter 4 Monitor
2-137
1
4
Setting the machine number
Set Set Machine Number
The Ladder Builder for KV can specify the station number of two or more KV-L2
units connected in the multi-drop method so that one personal computer can transfer
programs to and monitor programs in two or more KV-300 units.
To set the machine number, perform the following procedure while the monitor is
stopped (while communication is not being performed).
1. Select Set Machine Number from the Settings menu.
The Set Machine Number dialog box is displayed.
2. Set the machine number of the communication destination KV-L2.
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.
Port 1: RS-232C
LADDER
BUILDER for KV
Station No.
F (when port 1 is used)
0 (when port 2 is used)
Port 2: RS-422A
RS-232C/RS-422A
converter
KV-300 Series Only
Chapter 4 Monitor
2-138
4
4.2.2 Setting the comment transfer
File Communication Setup Set Comment Transfer
Set the comment range to be transferred to the PLC.
Note 1: Make sure to set the comment range when comments are transferred along
with programs to the PLC.
Note 2: Comments can be transferred to the KV-300 and Visual KV Series only.
Comments cannot be transferred to the KV-10R(W)/T(W), KV-16R(W)/T(W), 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.
To set the comment range to be transferred, perform the following procedure.
1. Select "File", "Communication Setup" and "Set Comment Transfer".
The "Set Comment Write Range" dialog box is displayed.
2. Enter the range to be transferred for each device.
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.
KV-300 and Visual KV Series
Only
Chapter 4 Monitor
2-139
1
4
4.3 Starting up and Exiting from the Monitor
This section describes how to start up the monitor, how to view the screen displayed
and how to use the monitor functions.
4.3.1 Operating procedures for startup and exit
Transfer programs from the PLC and starting them up
File Monitor PLC Monitor [Ctrl] + [F1]
A new window can be created, a ladder program saved in the PLC can be trans-
ferred to the personal computer and deconverted, and then a ladder drawing can be
displayed and monitored.
Make sure that the PLC is correctly connected, and then perform the following
procedure using the editor.
Note: When using the monitor for the first time, ensure that the PLC communication
parameters are correctly set.
Refer to "4.2.1 Setting the PLC communication parameters" on page 2-136.
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.
3. When a transfer ends normally, the monitor is automatically started up.
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.
Chapter 4 Monitor
2-140
4
2. Select "File", "Monitor" and "Convert Transfer Monitor" from the menu, or
click the button.
The ladder program created by the editor is converted.
The monitor window is displayed.
The "Transfer Program" dialog box is displayed.
Note 1: Write is not performed when there is no difference between the program
saved in the PLC and the program transferred.
Note 2: If conversion is not performed normally, the message "Conversion error
exists. Data cant 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)
If a program is written while running, serious danger may be generated de-
pending on the status of the control equipment connected to the PLC. Pay
careful attention.
3. The program is transferred to the PLC, and the write status is indicated on the
graph.
4. When a transfer ends normally, the monitor is automatically started up.
WARNING
Chapter 4 Monitor
2-141
1
4
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.
The program is decompiled.
3. The transfer status of the program from the PLC is displayed on the graph.
The program is read from the PLC.
When contact comments are transferred from the KV-300, they are also read.
Verifying against the PLC programs
File Monitor Verify against PLC Program
The program in the editor can be verified against the program currently saved in the
PLC memory.
Connect the PLC to the personal computer before starting verification.
To perform verification, perform the following procedure.
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. When no difference is detected during verification, the message "Verify com-
pleted." is displayed.
Click the [OK] button.
3. When a difference is detected during verification, the message "Verify error" is
displayed.
Click the [OK] button to display the error list.
Chapter 4 Monitor
2-142
4
Editing devices in offline mode
File Monitor Edit Offline Device
Specified devices can be read all at once from the PLC by specifying the range, and
then can be edited.
1. Select "File", "Monitor" and "Edit Offline Device" from the editor menu.
The monitor is started up in the device setting mode.
2. Select "Change All" from the monitors "File" menu
The change all window is opened.
Refer to "4.6.2 Changing the current values all at once " (p. 2-150).
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.
Select "Editor" from the "File" menu, or click the button.
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 editors "File" menu.
Chapter 4 Monitor
2-143
1
4
4.3.2 Name and function of each part of the screen
When the monitor is started up, the ladder monitor window of the last edited ladder
program is displayed. If the monitor all window and registration monitor window were
previously displayed, they are also displayed when the monitor is started.
Sample screen
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
Main window title bar
Displays the file name of the ladder
program currently being monitored.
Menu bar
Displays the menu
to execute com-
mands.
Tool bar
Provides buttons to
execute commands.
Only commonly used
commands are
provided as buttons.
Each command can be
executed by clicking
the corresponding
button once.
Dialog bar
Allows you to register
devices, assign device values
and preset values, and reset
timers and counters.
Main window
The entire simulator screen.
Ladder
monitor
window
p. 2-90
Monitor all
window
p. 2-113
Registration
monitor
window
p. 2-122
Status indication bar
Indicates the currently selected function
and the monitors operating status.
Chapter 4 Monitor
2-144
4
4.4 Ladder Monitor
This section describes the monitor start/stop procedure, the screen displayed while
the monitor is running, the PLC mode setting, etc.
4.4.1 Outline of the ladder monitor
The ladder monitor transfers ladder programs to the PLC, displays the actual PLC
operation in real-time, and offers the following functions.
Starts and stops the monitor.
Changes the operation mode (RUN or STOP).
Displays registered comments.
Changes the current values, etc. using the dialog bar.
4.4.2 Displaying the ladder monitor window
File Ladder Monitor
If a displayed ladder diagram is closed, select "Ladder Monitor" from the "File" menu
to display it again, or click the button.
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.
4.4.3 PLC error check
A PLC error check is always performed while the monitor is running.
When an error occurs in the PLC, an error message is displayed.
For error messages and countermeasures, refer to "Appendix A Error Message List" on page 2-156.
Chapter 4 Monitor
2-145
1
4
4.4.4 Starting the monitor
Monitor Start Monitor [F4]
Communication with the PLC can be started, and the operation status of the PLC
can be displayed on each window.
To start the monitor, perform the following procedure.
Note 1: If a conversion error is present, the monitor cannot be started. Make sure
that the ladder program can be correctly compiled (converted) before starting up the
monitor.
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-
ning. If you do this, a communication error may occur or the personal com-
puter may be reset.
4.4.5 Stopping the monitor
Monitor Stop Monitor [F5]
Communication with the PLC can be stopped.
To stop the monitor, perform the following procedure.
Select "Stop Monitor" from the "Monitor" menu, or click the button (red).
The monitor is stopped.
When the entire monitor window is minimized, the monitor is automatically
stopped.
CAUTION
Chapter 4 Monitor
2-146
4
4.4.6 Screen displayed while the monitor is running
When the monitor is started, the operation status is displayed on each window. The
status bar provided at the bottom of the monitor screen indicates the operation mode
currently being executed, etc.
Status indication
While the monitor is running or while data is reconstructed in the record reconstruc-
tion mode, the PLC mode, scan time, etc. are displayed in the status indication area
on the monitor window.
Caution on monitor registration consumption quantity
As the registration consumption quantity of the entire monitor is smaller, the monitor
speed becomes faster.
If the monitor speed is slow, minimize unnecessary windows.
Status indication area
Communication indicator
Rotates while communica-
tion is performed.
PLC mode
Indicates the operation
mode of the PLC.
Registration consumption
quantity
Indicates the monitor registration
consumption quantity of the
current window.
Registration consumption
quantity of entire monitor
Indicates the monitor registration
consumption quantity in the entire
monitor mode.
Scan time
Indicates the scan time in
increments of "0.1 msec".
Chapter 4 Monitor
2-147
1
4
4.4.7 Setting the PLC operation mode
Set the operation mode of the conventional KV.
When the monitor is started up for the first time, the PLC mode is selected.
To change the PLC mode, select the desired mode from "PLC Mode" on the menu
or click the button.
Operation (RUN mode)
PLC Mode Run (Shift + F7)
In this mode, a program operates normally.
Stop (STOP mode)
PLC Mode Stop (Shift + F8)
In this mode, program execution is stopped.
All the outputs are turned off.
Chapter 4 Monitor
2-148
4
4.5 Monitor All and Registration Monitor
This section briefly describes the functions of the monitor all and registration moni-
tor. For details, refer to "Chapter 3 Simulator" on page 2-83.
4.5.1 Functions of the monitor all window
Monitor all offers the following functions.
Displays the current value and preset value of all devices, and the ON/OFF
status of the contacts and coils for each device type.
Displays all the registered comments.
Turns on/off bit devices.
Changes the current value, etc. using the dialog bar.
For execution and operating procedures for the monitor all window, refer to "3.4 Monitor All" on
page 2-109.
4.5.2 Functions of the registration monitor
The registration monitor offers the following functions.
Registers up to 40 devices.
Changes the position of registered 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).
Turns on/off bit devices.
Changes the current value, etc. using the dialog bar.
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.
Chapter 4 Monitor
2-149
1
4
4.6 Monitor Function
This section describes the functions which can be executed by the monitor such as
disabling the input refresh/disabling the output, change all of current values, device
all clear, etc.
4.6.1 Disabling the input refresh/Disabling the output
A Visual KV and KV-300 are equipped with the input refresh disable function and the
output refresh disable function.
Disabling the input refresh
Monitor Disable Input Refresh
When input refresh is disabled, read (input refresh) of input relays of the PLC is
stopped, and write from the monitor is enabled.
To set the input refresh disable function, select "Disable Input Refresh" from the
"Monitor" menu when the monitor is started.
When this function is selected, a check mark is added.
When this function is selected again, the setting is reset and the check mark is
deleted.
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.
Disabling the output
Monitor Disable Output
When output is disabled, the output status is not updated even if a program is
executed. Select this function when outputs from output relays are not desired.
To set the output refresh disable function, select "Disable Output " from the "Moni-
tor" menu when the monitor is started.
When this function is selected, a check mark is added.
When this function is selected again, the setting is reset and the check mark is
deleted.
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.
Check mark
Check mark
Visual KV and KV-300 Only
Chapter 4 Monitor
2-150
4
Change all window
Device Range Specify the device range to be read.
Value Enter a value.
[Partial Change] button Changes all the contents of the selected device range.
[File Read] button Reads the text file of the contents of devices saved by change all.
[File Write] button Saves the contents of devices in the selected range to a text file.
PLC [Write] button Writes the contents of devices in the selected range to the PLC.
PLC [Read] button Reads the contents of devices from the PLC.
Device Indicates the device type and the device number.
Current Value Indicates the current value of a device.
Comment Displays a comment if it is registered.
4.6.2 Changing the current values all at once
File Change All
The specified devices can be read all at once by specifying the range from the PLC.
The current values can then be changed and written to the PLC. In addition, the
setting of the read devices can be saved, and the setting of saved devices can be
read.
Change all can be performed on the change all window displayed when "Change
All" is selected from the "File" menu. Two or more change all windows can be
displayed.
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.
Chapter 4 Monitor
2-151
1
4
Reading devices from the PLC
1. Enter the device range to be read into "Device Range", or specify the range by
dragging using the mouse.
2. Click the PLC [Read] button.
The specified device data is read from the PLC, and displayed in the window.
While in this state, the attribute (radix, bit count, comment) can be changed using
the dialog bar.
Refer to "Changing the current value/preset value/attribute" on page 2-118.
Writing devices to the PLC
1. Enter the device range to be written into "Device Range", or specify the range by
dragging using the mouse.
2. Click the PLC [Write] button.
The specified device data is written to the PLC.
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.
I Saving devices to a file
1. Select the change all window to be saved as the current window.
2. Select "Save Window As" from the "File" menu, or click the button.
The "Save Window As" dialog box is displayed.
Chapter 4 Monitor
2-152
4
3. Specify the folder (directory) and file name to which data is to be saved.
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.
I How to print out device contents lists
To print out device contents, perform the following procedure.
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.
A device list is printed out.
Folder (directory) Select the folder (directory) in which the file is to be saved.
The current folder (directory) is selected as the default.
File Name Enter the file name using up to 8 letters and numbers.
The extension is set to "kdv", and should not be changed.
Chapter 4 Monitor
2-153
1
4
I Reading devices from a file
1. Select "Open Window" from the "File" menu
The "Open" dialog box is displayed.
2. Click the button of "File Type", and select "Change All (*.kdv)".
3. Specify the folder (directory) and file name in which the file to be read is saved.
4. Click the [OK] button.
The specified file is read, and the change all window is opened.
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.
Chapter 4 Monitor
2-154
4
4.6.3 Device all clear
Devices on the PLC can be initialized.
Initializing devices
Settings Device All Clear DM All Clear
Latching Relay All Clear
Counter All Clear
To initialize the device setting, perform the following procedure.
1. Select "Device All Clear" from the "Settings" menu, and then specify the devices
to be initialized.
2. A message to confirm clear is displayed.
To clear data memory, click the [Yes] button. To cancel execution of clear, click
the [No] button.
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).
I 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.
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
Appendices
2-156
A
p
p
e
n
d
i
c
e
s
Appendix A Error Message List
This section describes error messages displayed during operation and the counter-
measures to be taken when an error message is displayed.
A-1 System errors
A system error message is displayed when the entire system (including Windows)
becomes unstable.
When a system error message is displayed, save required files immediately,
exit from the Ladder Builder for KV, and then restart Windows.
If system errors occur frequently, contact our sales representative.
A-2 Memory errors
A memory error message is displayed when Windows does not have enough
memory.
When a memory error is displayed, exit from other applications that are open,
or increase the amount of memory.
Error message Error message
Cant open document. Cant release machine code memory.
Cant obtain font. Jump failed.
Cant create window. ClrList execution error.
Start up from Editor. AddlList execution error.
Cant open window which should exist. GetList execution error.
Initialize window failed. Program is empty.
Cant obtain information on window. Specification of list type is illegal.
Monitor handle not registered. Position of writing line is illegal.
Simulator handle not registered. Position of writing row is illegal.
Cant obtain information on symbol. Data on starting line of display is abnormal.
Ladder data error Cant find program to be deleted.
Write cell data failed. Contents of line cut buffer is abnormal.
Read cell data failed. Error obtaining Program Information.
Content of LDKPRG.DLL is illegal. Reverse conversion failed.
Content of LCK.DLL is illegal. Change failed.
Content of KVCOM.DLL is illegal. Obtain comment failed.
Obtain device context failed. Invalid comment area.
Write device failed. Not enough memory for macro information.
Device information list access error. Illegal Element.
Obtain machine code failed.
Error message Error message
Not enough memory. Not Enough Memory.
Error Obtaining Memory.
Quit other applications and restart.
Global Ladder Line Replication Error Cant register new program with
LDKPRG.DLL.
Cant allocate memory.
Appendices
2-157
1
A
p
p
e
n
d
i
c
e
s
A-3 File errors
A file error is displayed when a file is damaged.
When a file error is displayed, check the disk using "SCANDISK", and then restore
the file if an error is detected. Reinstall the Ladder Builder for KV.
Error messages displayed in the editor are shown below.
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.
Error message Error message
Error [file name]: Read ladder diagram file failed. Cant open ladder diagram file.
Error [file name]: Read file failed. Cant open text file.
Error [file name]: Write file failed. Cant open comment file.
Error [file name]: Read text file failed. Content of LDKPRG.DLL is illegal.
Content of LCK.DLL is illegal.
Error [file name]: Write text file failed. Content of KVCOM.DLL is illegal.
Error [file name]: Read comment file failed.
Error message Error message
Cant Load LDKPRG.DLL. Error LBK.KSU: Read text file failed.
Cant Load LCK.DLL.
Cant Load KVCOM.DLL. Error LBK.EMS: Read text file failed.
Monitor startup failed.
Simulator startup failed.
Appendices
2-158
A
p
p
e
n
d
i
c
e
s
A-5 Errors that occur in the editor
Error messages displayed in the editor are shown below.
Error message Cause Countermeasures
Reverse Compila-
tion Error.
A grammar error occurred
when a program was read from
the KV and converted into a
ladder diagram, or when a
ladder diagram was converted
while the code check system
setting was selected.
Display the error list [ Error
display (p. 2-76)], confirm the
contents of the error, and then
correct the program
[ H-3 Programs which cannot be
decompiled (p. 2-203)].
Compilation Error. A grammar error occurred
when edit was terminated.
Display the error list [ Error
display (p. 2-76)], confirm the
contents of the error, and then
correct the program.
Specified label
already used.
The specified label has already
been assigned to another
device.
Specify a different label for each
device.
Write/Develop
macro failed.
An error occurred while a
macro was being written and
developed.
Confirm the contents of temporary
devices. Confirm that the limitation
in the editor was satisfied while the
macro was written and developed.
Program is too
large.
The program is too large to be
edited.
The maximum number of lines
allowed in a ladder program is
9999.
No. of instruction
word or operand is
illegal.
Too many or too few operands
have been entered.
Contact name is
illegal.
An unaccepted
device is specified.
Confirm the format of the
corresponding instruction using
the manual or the help function.
Temporary device
cant be used for
TMR, TMH and
TMS.
Temporary device
cant be used for C.
Temporary device
cant be used for
CTH.
Temporary device
cant be used for
CTC.
Temporary device
cant be used for
UDC.
These devices cannot be used
as temporary devices.
Do not use them as temporary
devices.
Illegal operand.
Illegal first operand.
Illegal second
operand.
The mnemonic of an instruction
word is incorrect.
Confirm the specifications of the
instruction using the manual or the
help function.
Cant overwrite on
comment ladder
line.
Illegal Comment
File.
Illegal file format.
Cancel reading.
A file may be damaged. Use "SCANDISK" to check for disk
errors.
The file set in the automatic file
read function was not found.
Check whether the corresponding
file exists in the displayed location,
and set it again.
This file is not
found in [File
Names]. Check for
directory and file
name and input
correct name.
Appendices
2-159
1
A
p
p
e
n
d
i
c
e
s
A-6 Errors that occur in the monitor/simulator
The error message displayed in the monitor/simulator is shown in the table below.
A-7 Communication errors (displayed in the monitor)
The error message displayed during communication with the PLC is shown in the
table below.
Cant write scales.
Widen the width
of registration
monitor window.
Error message Cause Countermeasures
Because the width of the
registration monitor window is
too narrow, the specified
number of scales cannot be
drawn.
Increase the width of the
registration monitor window.
Communication
error occurred.
Check for commu-
nication setting
and connection
lines.
Error message Cause Countermeasures
An error occurred during
communication.
Confirm that the personal
computers RS-232C port is
correctly connected to the PLC.
Confirm that the communication
(COM1/2) port and baud rate are
set correctly in "Settings"-"Serial
Port".
Unregistered
program
The attempt is made to execute
PLC monitor or to call up or
verify the program in the CPU,
although the KV main unit has
no program.
Transfer a program to the KV
before making these attempts.
Appendices
2-160
A
p
p
e
n
d
i
c
e
s
Error message Cause Countermeasures
Analysis Disabled
Error
System Error
Run Time Error
Divided by 0
Address Error
Illegal Instruction
Error
Watchdog Timer
Error
An unexpected error occurred
in the KV main unit.
Turn off power to the KV main
unit, and then turn it on again. If
the same error occurs fre-
quently, contact your nearest
KEYENCE office.
Program Error RUN mode is selected while
there is not a program in the
KV main unit.
Transfer a program to the KV
main unit, and then select RUN
mode.
Cycle Time Error The cycle time has exceeded
208 ms. (300 ms for KV-300)
Change the program so that the
cycle time is shorter.
Memory Error The contents of the KV main
units memory have been
erased.
Reset the error, and then select
RUN mode.
CALL Instruction
Nest Error
The number of nested levels in
the subroutine exceeds 4.
FOR Instruction
Nest Error
The number of nested levels in
the FOR - NEXT instruction
exceeds 8.
MPS Instruction
Nest Error
The number of nested levels in
the MPS - MPP instruction
exceeds 8.
An error occurred when the
program was executed. Check the
program and correct the error.
INI Instruction Nest
Error
Five or more interrupts occurred
at once.
Correct the program so that only
one interrupt occurs at once.
A-8 PLC errors
Error messages displayed when problems occur in a Visual KV or a conventional KV
are shown in the table below.
Appendices
2-161
1
A
p
p
e
n
d
i
c
e
s
A-9 Errors that occur during compilation
Error messages displayed during compilation are shown in the table below.
When this type of error message is displayed, eliminate the cause of the error, and
then perform compilation again.
Error message Cause Countermeasures
Not enough memory.
Abort conversion.
There is not enough memory to
complete the compilation.
Confirm that there is enough memory
and hard disk space.
Too many errors.
Abort conversion.
Because 100 errors or more
occurred during compilation,
compilation was aborted.
Correct each error.
First operand is
unnecessary.
The mnemonic of an instruction
word is incorrect. (This error often
occurs when a file created by a
commercial editor or word proces-
sor is opened and the mnemonic list
is edited.)
Confirm the specifications of the
instruction using the manual or the
help function.
Instruction is
repeatedly used.
An instruction which can be used
only once has been used two or
more times.
Second operand is
unnecessary.
Third operand is
unnecessary.
First operand form is
illegal.
Second operand
form is illegal.
Third operand form
is illegal.
First operand value
is illegal.
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.
Use the instruction only once.
Operand is repeat-
edly used.
An operand which can be used only
once has been used two or more
times.
Use the operand only once.
Unusable in interrupt
program.
An unusable instruction is used in
an interrupt program.
Change the program so that another
method is used.
Instruction position
error.
A subroutine or an interrupt program
is described before the END
instruction.
Describe the program between the
END instruction and the ENDH
instruction.
Nested levels in
subroutine is too many.
The number of nested levels in the
subroutine exceeds 4.
Change the program so that the
number of nested levels is 4 or less.
Undefined subroutine
exists.
The program is terminated without a
called subroutine being defined.
Describe the subroutine program
between the END instruction and the
ENDH instruction.
Subroutine No. is
repeatedly used.
Two or more subroutines with the
same number are defined.
The number assigned to each
subroutine should be different.
Change the program.
Nested levels of
paired instruction is
too many.
The number of nested levels of
paired instructions exceeds the
maximum number.
Change the program so that the
number of nested levels is within the
maximum.
Usage of paired
instruction is incorrect.
An instruction to be used as a pair is
not used as a pair.
Change the program so that it is used
as a pair.
Parallel connection is
used in STG instruction.
The STG instruction contains an
OR (parallel) connected block.
Never use an OR (parallel) connection
in the STG instruction.
END instruction is not
found.
The END instruction is not found in
the program before the ENDH
instruction.
Include the END instruction in the
program before the ENDH instruction.
ENDH instruction is
not found.
The ENDH instruction is not found
in the last line of the program.
Include the ENDH instruction in the last
line of the program.
STG instruction
position error.
The STG instruction is not present
at the head of a block.
Include the STG instruction at the
head of a block.
Include the SFT instruction within the
available range.
SFT instruction
operand error.
The SFT instruction operand is
outside the available range.
Appendices
2-162
A
p
p
e
n
d
i
c
e
s
Error message Cause Countermeasures
Corresponding CTH
instruction is not
found.
Although the CTC instruction is
used, the corresponding CTH
instruction is not included in the
program.
Include the corresponding CTH
instruction in the program before the
END instruction.
Corresponding
instruction is
undefined.
Although contacts of timers and
counters are used, the correspond-
ing instructions are not present in
the program.
Include the corresponding instruc-
tions in the program before the END
instruction.
Unusable in subrou-
tine.
There are unusable instructions
included in a subroutine.
Change the program and use another
method.
Model code is
incorrect.
The mnemonic of an instruction
word is incorrect. (This error often
occurs when a file created by a
commercial editor or word proces-
sor is opened and the mnemonic list
is edited.)
Confirm the specifications of the
instruction using the manual or the
help function.
First line is illegal.
Mnemonic is illegal.
First operand is
illegal.
Second operand is
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 cant
be drawn.
Because instructions are sorted
incorrectly, they cannot be
compiled into a ladder diagram.
Confirm the specifications of the
instructions, and correct the program.
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 cant 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
parallel connection.
Because there are too many
instructions in a parallel connected
block, it cannot be compiled into a
ladder diagram.
Change the circuit to reduce the
number of instructions in the parallel
connected block.
Lines in block exceeds
maximum number.
A block in the ladder diagram
exceeds 100 lines.
Change the program so that no more
than 100 lines are included per block.
No connection. An instruction symbol does not exist
on a path between buses.
Include an instruction symbol on a path
between buses.
Illegal short-circuiting. Two points are short-circuited when
they should not be.
Never short-circuit them.
Illegal parallel
connection.
Blocks are not correctly parallel
connected.
Change the circuit so that they are
correctly parallel connected.
Illegal connection. The instruction symbol connection
method is incorrect.
Change the circuit so that the symbol
is correctly connected.
Appendices
2-163
1
A
p
p
e
n
d
i
c
e
s
Appendix B Instruction List
This appendix includes a list of instructions and an outline of their processes. For
details, refer to Chapter 2, "Instructions" on page 3-33.
B-1 Basic instructions
Instruction name Mnemonic Outline of process
Load LD Connects N.O. contact to bus.
Load Bar LDB Connects N.C. contact to bus.
Out OUT Outputs ON/OFF status of input to relay coil.
Out Bar OUB Outputs inverted ON/OFF status of input to relay coil.
And AND Connects N.O. contact in series.
And Bar ANB Connects N.C. contact in series.
Or OR Connects N.O. contact in parallel.
Or Bar ORB Connects N.C. contact in parallel.
And Load ANL Connects in series the blocks made of one or more
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.
Appendices
2-164
A
p
p
e
n
d
i
c
e
s
B-2 Application instructions
Instruction name Mnemonic Outline of process
Wait ON W-ON Turns ON output operand relay when input operand
relay/timer/counter turns ON.
Wait OFF W-OFF Turns ON output operand relay when input operand
relay/timer/counter turns OFF.
Wait Up Edge W-UE Turns ON output operand relay at rising edge of input
operand relay/timer/counter.
Wait Down Edge W-DE Turns ON output operand relay at falling edge of input
operand relay/timer/counter.
Stage STG Executes instructions in STG block when operand relay
is ON.
Connect CON Represents series connection after output status.
Push MPS Stores input status and arithmetic flag status.
Read MRD Reads input status and arithmetic flag status stored
with Push (MPS).
Pop MPP Reads input status and arithmetic flag status stored
with Push (MPS), and clears memory.
Jump JMP Turns current stage OFF, and then transfers execution
to another stage.
End Stage ENDS Turns OFF relay of current stage.
Step STP Executes instructions between STP and STE when
operand relay is ON.
Step End STE Used with STP as a pair to make a program step.
Interval Timer ITVL Measures pulse-to-pulse interval or pulse width in
specified mode.
8-bit (16-bit) High CTH Functions as a general-purpose high-speed counter
Speed Counter with a response frequency of 10 kHz.
8-bit (16-bit) High CTC Comparator: Compares preset value with current value
Speed Counter of CTH0, and turns ON when they become equivalent.
It is also used as an interrupt source.
Subroutine Call CALL Executes subroutine with the specified number.
Subroutine Entry SBN Represents beginning of subroutine.
Subroutine Return RET Represents end of subroutine.
Repeat Start FOR Executes program range between FOR and NEXT by
the number of times specified by operands.
Repeat End NEXT Represents end of repetition.
16-Key Input HKEY Reads hexadecimal key data on time-sharing basis,
and outputs these data to special utility relays 2900 to
2915.
Appendices
2-165
1
A
p
p
e
n
d
i
c
e
s
B-3 Arithmetic instructions
Instruction name Mnemonic Outline of process
Data Memory Write DW Writes constant directly into data memory.
Trimmer Setting TMIN Converts rotation angle of trimmer into a number from
@TMIN 0 to 249, and inputs it back to internal register.
Load A LDA Inputs value specified by operand to internal register.
@LDA * Inputs current value to internal register when timer/
counter is specified by operand.
Store A STA Transfers content of internal register to destination
@STA specified by operand.
* Preset value is changed when timer/counter is
specified by operand.
Compare CMP Compares content of internal register with value
@CMP specified by operand, and outputs result to 2009 to
2011.
Add ADD Adds value specified by operand to content of internal
@ADD register, and inputs result back to same internal
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.
Appendices
2-166
A
p
p
e
n
d
i
c
e
s B-4 Interrupt instructions
Instruction name Mnemonic Outline of process
Transfer BCD TBCD Converts content of internal register into 4-digit BCD
@TBCD data.
Transfer BIN TBIN Converts content of internal register into 16-bit binary
@TBIN data.
ASCII Convert ASC Converts content (2 digits) of lower order byte of
@ASC internal register into 2-digit ASCII code.
Reverse ASCII RASC Converts 2-digit ASCII code into 1-byte data
Convert @RASC representing 2-digit number.
Square Root ROOT Takes square root of 32-bit data (TM00: higher order
@ROOT byte, internal register: lower order byte), and inputs
result back to same internal register.
Differentiation @xxxx Executes instructions only at rising edge of input to
input relay.
Instruction name Mnemonic Outline of process
Interrupt Disabled DI Disables execution of diversified interrupt programs.
Interrupt Enabled EI Enables execution of diversified interrupt programs.
Interrupt INT Executes interrupt between INT and RETI at rising
edge of inputs 0000 to 0002.
Executes interrupts between INT and RETI at rising or
falling edge or input 0003 (Rising or falling edge can
be selected by ON/OFF of 2206). Transfers current
value up to CTH0 to TM30.
Executes interrupts up to RETI when comparison
result by comparator is matched.
Return Interrupt RETI Represents end of interrupts.
Appendices
2-167
1
A
p
p
e
n
d
i
c
e
s
Appendix C Relay No. List
C-1 Relays, timers, counters, and memory numbers for each model
KV-10 KV-16 KV-24 KV-40/80 KV-300 KV-10 (16) KV-24 (40)
R(W)/T(W) R(W)/T(W) R(W)/T(W) R(W)/T(W) AR/AT/DR/DT AR/AT/DR/DT
Basic input relay 0000 to 0005 0000 to 0009 0000 to 0015 KV-40 0000 to 0009 KV-10 KV-24
R(W)/T(W): AR/AT/DR/DT: AR/AT/DR/DT:
0000 to 0107 0000 to 0005 0000 to 0015
KV-80 KV-16 KV-40
R(W)/T(W): AR/AT/DR/DT: AR/AT/DR/DT:
0000 to 0125 0000 to 0009 0000 to 0107
Extended input 0100 to 0415 0100 to 0415 0100 to 0415 KV-40 0100 to 0415 KV-24
relay R(W)/T(W): AR/AT/DR/DT:
0200 to 0415 0100 to 0415
KV-80R KV-40
(W)/T(W): AR/AT/DR/DT:
0300 to 0415 0200 to 0415
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
Appendices
2-168
A
p
p
e
n
d
i
c
e
s
Appendix D Special Utility Relay List
D-1 Special relays and arithmetic operation flags
* Read-only relay.
D-2 Special utility relays for high-speed counter (0)
* Read-only relay.
Note: Never use special utility relays that are not shown above.
. o N y a l e R n o i t c n u F
* 0 0 1 2
1 ( 0 H T C r o f y l n o d e s u k c o l c l a n r e t n I ) s
* 1 0 1 2
0 1 ( 0 H T C r o f y l n o d e s u k c o l c l a n r e t n I ) s
* 2 0 1 2
0 0 1 ( 0 H T C r o f y l n o d e s u k c o l c l a n r e t n I ) s
3 0 1 2
0 C T C r o t a r a p m o c n e h w 0 H T C f o r a e l c c i t a m o t u A
. N O s n r u t
d e r a e l C : N O
d e r a e l c t o N : F F O
4 0 1 2
n e h w 0 0 5 0 o t t u p t u o t c e r i d s t i m r e p / s t i b i h o r P
. N O s n r u t 0 C T C r o t a r a p m o c
d e t i b i h o r P : N O
d e t t i m r e P : F F O
5 0 1 2
r o t a r a p m o c n e h w F F O o t t e s s i 0 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 0 C T C
F F O o t t e S : N O
F F O o t t e s t o N : F F O
6 0 1 2
r o t a r a p m o c n e h w N O o t t e s s i 0 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 0 C T C
N O o t t e S : N O
N O o t t e s t o N : F F O
7 0 1 2
h c a e d e s r e v e r s i 0 0 5 0 o t t u p t u o f o s u t a t s F F O / N O
. N O s n r u t 0 C T C r o t a r a p m o c e m i t
d e s r e v e R : N O
d e s r e v e r t o N : F F O
8 0 1 2
n e h w 0 0 5 0 o t t u p t u o t c e r i d s t i m r e p / s t i b i h o r P
. N O s n r u t 1 C T C r o t a r a p m o c
d e t i b i h o r P : N O
d e t t i m r e P : F F O
9 0 1 2
r o t a r a p m o c n e h w F F O o t t e s s i 0 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 1 C T C
F F O o t t e S : N O
F F O o t t e s t o N : F F O
0 1 1 2
r o t a r a p m o c n e h w N O o t t e s s i 0 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 1 C T C
N O o t t e S : N O
N O o t t e s t o N : F F
1 1 1 2
h c a e d e s r e v e r s i 0 0 5 0 o t t u p t u o f o s u t a t s F F O / N O
. N O s n r u t 1 C T C r o t a r a p m o c e m i t
d e s r e v e R : N O
d e s r e v e r t o N : F F O
2 1 1 2
1 C T C r o t a r a p m o c n e h w 0 H T C f o r a e l c c i t a m o t u A
. N O s n r u t
d e r a e l C : N O
d e r a e l c t o N : F F O
3 1 1 2 . 0 H T C r o t a r a p m o c r o f e d o m n o i t a c i l p i t l u m s t c e l e S
N O F F O N O F F O
s e s l u p 2 : N O 4 x : N O 2 x : F F O e s l u p 1 : F F O
4 1 1 2
n o i t a c i l p i t l u M
e d o m
e s l u p 1 2 x 4 x s e s l u p 2
3 1 1 2 F F O N O F F O N O
4 1 1 2 F F O F F O N O N O
. o N y a l e R n o i t c n u F
* 2 0 0 2 . N O s y a w l A
* 3 0 0 2 . F F O s y a w l A
* 4 0 0 2 ) % 0 5 : e l c y c y t u d ( e s l u p k c o l c s - 1 0 . 0
* 5 0 0 2 ) % 0 5 : e l c y c y t u d ( e s l u p k c o l c s - 1 . 0
* 6 0 0 2 ) % 0 5 : e l c y c y t u d ( e s l u p k c o l c s - 0 . 1
* 7 0 0 2 . p u t r a t s r e t f a n a c s t s r i f g n i r u d F F O s n i a m e R
* 8 0 0 2 . p u t r a t s r e t f a n a c s t s r i f g n i r u d N O s n i a m e R
* 9 0 0 2
n a n e h w r o e v i t a g e n s i n o i t a r e p o c i t e m h t i r a f o t l u s e r n e h w N O s n r u T
. d e t a r e n e g s i w o l f r e v o
* 0 1 0 2 . 0 s i n o i t a r e p o c i t e m h t i r a f o t l u s e r n e h w N O s n r u T
* 1 1 0 2 . e v i t i s o p s i n o i t a r e p o c i t e m h t i r a f o t l u s e r n e h w N O s n r u T
* 2 1 0 2 . r o r r e n a s e t a r e n e g n o i t a r e p o c i t e m h t i r a n a n e h w N O s n r u T
Visual KV Series Only
Appendices
2-169
1
A
p
p
e
n
d
i
c
e
s
D-3 Special utility relays for high-speed counter (1)
* Read-only relay.
Note: Never use special utility relays that are not shown above.
. o N y a l e R n o i t c n u F
* 0 0 2 2
1 ( 1 H T C r o f y l n o d e s u k c o l c l a n r e t n I ) s
* 1 0 2 2
0 1 ( 1 H T C r o f y l n o d e s u k c o l c l a n r e t n I ) s
* 2 0 2 2
0 0 1 ( 1 H T C r o f y l n o d e s u k c o l c l a n r e t n I ) s
3 0 2 2
2 C T C r o t a r a p m o c n e h w 1 H T C f o r a e l c c i t a m o t u A
. N O s n r u t
d e r a e l C : N O
d e r a e l c t o N : F F O
4 0 2 2
n e h w 1 0 5 0 o t t u p t u o t c e r i d s t i m r e p / s t i b i h o r P
. N O s n r u t 2 C T C r o t a r a p m o c
d e t i b i h o r P : N O
d e t t i m r e P : F F O
5 0 2 2
r o t a r a p m o c n e h w F F O o t t e s s i 1 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 2 C T C
F F O o t t e S : N O
F F O o t t e s t o N : F F O
6 0 2 2
r o t a r a p m o c n e h w N O o t t e s s i 1 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 2 C T C
N O o t t e S : N O
N O o t t e s t o N : F F O
7 0 2 2
h c a e d e s r e v e r s i 1 0 5 0 o t t u p t u o f o s u t a t s F F O / N O
. N O s n r u t 2 C T C r o t a r a p m o c e m i t
d e s r e v e R : N O
d e s r e v e r t o N : F F O
8 0 2 2
n e h w 1 0 5 0 o t t u p t u o t c e r i d s t i m r e p / s t i b i h o r P
. N O s n r u t 3 C T C r o t a r a p m o c
d e t i b i h o r P : N O
d e t t i m r e P : F F O
9 0 2 2
r o t a r a p m o c n e h w F F O o t t e s s i 1 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 3 C T C
F F O o t t e S : N O
F F O o t t e s t o N : F F O
0 1 2 2
r o t a r a p m o c n e h w N O o t t e s s i 1 0 5 0 o t t u p t u o t c e r i D
. N O s n r u t 3 C T C
N O o t t e S : N O
N O o t t e s t o N : F F O
1 1 2 2
h c a e d e s r e v e r s i 1 0 5 0 o t t u p t u o f o s u t a t s F F O / N O
. N O s n r u t 3 C T C r o t a r a p m o c e m i t
d e s r e v e R : N O
d e s r e v e r t o N : F F O
2 1 2 2
3 C T C r o t a r a p m o c n e h w 1 H T C f o r a e l c c i t a m o t u A
. N O s n r u t
d e r a e l C : N O
d e r a e l c t o N : F F O
3 1 2 2 . 1 H T C r o t a r a p m o c r o f e d o m n o i t a c i l p i t l u m s t c e l e S
N O F F O N O F F O
s e s l u p 2 : N O 4 x : N O 2 x : F F O e s l u p 1 : F F O
4 1 2 2
n o i t a c i l p i t l u M
e d o m
e s l u p 1 2 x 4 x s e s l u p 2
3 1 2 2 F F O N O F F O N O
4 1 2 2 F F O F F O N O N O
D-4 Other special utility relays
. o N y a l e R n o i t c n u F
0 0 3 2
d e l b a s i d s t u p t u o l a n r e t x E
) 5 1 9 0 o t 0 0 5 0 s t u p t u o (
d e l b a s i D : N O
d e l b a s i d t o N : F F O
1 0 3 2
d e l b a s i d s t u p n i h s e r f e r l a n r e t x E
) 5 1 4 0 o t 0 0 0 0 s t u p n i (
d e l b a s i D : N O
d e l b a s i d t o N : F F O
3 0 3 2
e d o m e m i t n a c s t n a t s n o C
) 9 2 M T n i e u l a v t e s e r p e t i r w (
d e l b a n E : N O
d e l b a s i D : F F O
4 0 3 2
s d e e c x e e m i t n a c s n e h w n a c s e n o r o f N O s n i a m e R
. e m i t n a c s t n a t s n o c t e s e r p
5 0 3 2 . n o i t a r e p o r e t n u o c y c n e u q e r f r o f g a l f t r a t S
6 0 3 2 t u p t u o e s l u p y c n e u q e r f d e i f i c e p S
d e l b a n E : N O
d e l b a s i D : F F O
7 0 3 2 t u p t u o e s l u p y c n e u q e r f d e i f i c e p s r o f g a l f r o r r E
8 0 3 2 . N O d e n r u t n e h w r e v i r d r o t o m s p o t S
9 0 3 2
n i r e v i r d r o t o m s p o t S . n o i t a r e p o n i s i r e v i r d r o t o m n e h w N O s n r u T
. n o i t c u r t s n i t p u r r e t n i y b F F O d e n r u t n e h w s e i c n e g r e m e
0 1 3 2 . ) e g d e g n i s i r t a n o i t c e t e d ( N O d e n r u t n e h w r e v i r d r o t o m s t r a t S
4 1 3 2 . n o i t a r e p o h c t i w s m a c r o f g a l f t r a t S
5 1 3 2 . n o i t a r e p o h c t i w s m a c n i s r u c c o r o r r e n a n e h w N O s n r u T
Appendices
2-170
A
p
p
e
n
d
i
c
e
s
. o N y a l e R n o i t c n u F
0 0 4 2
l a n g i s l a n r e t x e 0 H T C f o g n i m i T
F F O t e s e r p l a n r e t x E F F O
e g d e g n i l l a f t A
N O
e g d e g n i s i r t A
N O
l e v e L
1 0 4 2 F F O d e s u t o n N O F F O N O
2 0 4 2
T N I f o y t i r a l o p t p u r r e t n I
F F O
e g d e g n i s i r t A
F F O
e g d e g n i l l a f t A
N O
e g d e g n i s i r t A
N O
s e g d e h t o b t A
3 0 4 2 F F O N O F F O N O
4 0 4 2
1 T N I f o y t i r a l o p t p u r r e t n I
F F O
e g d e g n i s i r t A
F F O
e g d e g n i l l a f t A
N O
e g d e g n i s i r t A
N O
s e g d e h t o b t A
5 0 4 2 F F O N O F F O N O
6 0 4 2 r e t n u o c g n i r s a t e s 0 H T C t e S : N O t e s t o N : F F O
7 0 4 2
. e d o m n o i t a c i l p i t l u m o n o t t e s s i 0 H T C n e h w t u p n i B e s a h p e r o n g I
. p u t n u o c s y a w l a d n a t u p n i B e s a h p e r o n g I : N O
. l a u s u s a t u p n i B e s a h p e s U : F F O
8 0 4 2
t e s e r p l a n r e t x e 1 H T C f o g n i m i T
F F O t e s e r p l a n r e t x E F F O
e g d e g n i l l a f t A
N O
e g d e g n i s i r t A
N O
l e v e L
9 0 4 2 F F O d e s u t o n N O F F O N O
0 1 4 2
2 T N I f o y t i r a l o p t p u r r e t n I
F F O
e g d e g n i s i r t A
F F O
e g d e g n i l l a f t A
N O
e g d e g n i s i r t A
N O
s e g d e h t o b t A
1 1 4 2 F F O N O F F O N O
2 1 4 2
3 T N I f o y t i r a l o p t p u r r e t n I
F F O
e g d e g n i s i r t A
F F O
e g d e g n i l l a f t A
N O
e g d e g n i s i r t A
N O
s e g d e h t o b t A
3 1 4 2 F F O N O F F O N O
4 1 4 2 r e t n u o c g n i r s a t e s 1 H T C t e S : N O t e s t o N : F F O
5 1 4 2
. e d o m n o i t a c i l p i t l u m o n o t t e s s i 1 H T C n e h w t u p n i B e s a h p e r o n g I
. p u t n u o c s y a w l a d n a t u p n i B e s a h p e r o n g I : N O
. l a u s u s a B e s a h p e s U : F F O
0 0 5 2 . d e n g i s s a s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o ] 1 F [ h c t i w s d e z i m o t s u C
1 0 5 2 . d e n g i s s a s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o ] 2 F [ h c t i w s d e z i m o t s u C
2 0 5 2 . d e n g i s s a s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o ] 3 F [ h c t i w s d e z i m o t s u C
3 0 5 2 . d e n g i s s a s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o ] 4 F [ h c t i w s d e z i m o t s u C
4 0 5 2
s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o 1 p m a l r o t a c i d n i d e z i m o t s u C
. d e n g i s s a
5 0 5 2
s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o 2 p m a l r o t a c i d n i d e z i m o t s u C
. d e n g i s s a
6 0 5 2
s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o 3 p m a l r o t a c i d n i d e z i m o t s u C
. d e n g i s s a
7 0 5 2
s i l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K n o 4 p m a l r o t a c i d n i d e z i m o t s u C
. d e n g i s s a
8 0 5 2
r o t a r e p o n e e w t e b e g n a h c s t i m r e P
0 2 D - V K f o e d o m e c i v e d d n a e d o m
. l e n a p e c a f r e t n i r o t a r e p o
d e t t i m r e P : N O
t o N : F F O
d e t t i m r e p
9 0 5 2
e c a f r e t n i r o t a r e p o 0 2 D - V K e h t s t i m r e P
r o t a r e p o n e e w t e b d e t f i h s e b o t l e n a p
. e d o m m e t s y s d n a e d o m
d e t t i m r e P : N O
O t o N : F F
d e t t i m r e p
0 1 5 2
e h t r o f e g a u g n a l y a l p s i d e h t s e i f i c e p S
l e n a p e c a f r e t n i r o t a r e p o 0 2 D - V K
e s e n a p a J : N O h s i l g n E : F F O
1 1 5 2
r o t a r e p o 0 2 D - V K e h t r o f p e e b e h t s t e S
l e n a p e c a f r e t n i
p e e b e s U : N O p e e b o N : F F O
2 1 5 2 m e t s y s r o f d e v r e s e R
3 1 5 2 m e t s y s r o f d e v r e s e R
5 1 5 2
f o s t n e t n o c ( e g a s s e m r e s u a s y a l p s i D
w o d n i W s s e c c A e h t n i ) 0 5 9 1 M D
y a l p s i D : N O
e g a s s e m
t o n o D : F F O
e g a s s e m y a l p s i d
Appendices
2-171
1
A
p
p
e
n
d
i
c
e
s
Note: Never use special utility relays that are not shown above.
. o N y a l e R n o i t c n u F
9 0 6 2
y a l e r h t i w t i n u n o i s n a p x e t u p n i f o t n a t s n o c e m i t t u p n I
5 1 1 0 o t 0 0 1 0 . s o N
s m 0 1 : F F O
0 1 : N O s
0 1 6 2
y a l e r h t i w t i n u n o i s n a p x e t u p n i f o t n a t s n o c e m i t t u p n I
5 1 2 0 o t 0 0 2 0 . s o N
s m 0 1 : F F O
0 1 : N O s
1 1 6 2
y a l e r h t i w t i n u n o i s n a p x e t u p n i f o t n a t s n o c e m i t t u p n I
5 1 3 0 o t 0 0 3 0 . s o N
s m 0 1 : F F O
0 1 : N O s
2 1 6 2
y a l e r h t i w t i n u n o i s n a p x e t u p n i f o t n a t s n o c e m i t t u p n I
5 1 4 0 o t 0 0 4 0 . s o N
s m 0 1 : F F O
0 1 : N O s
3 1 6 2 t c e n n o c s i d n o i s n a p x e t a t u p n i f o g n i r a e l C
d e r a e l C : F F O
d e r a e l c t o N : N O
2 1 7 2
l a m r o N : F F O r o r r e t c e n n o c s i D
t i n u d e t c e n n o c n i n o i t c e n n o c s i D : N O
d e r o t s s i a e r a s i h T
e h t n e h w n e v e
s i e d o m n o i t a r e p o
m o r f d e g n a h c
, N U R o t M A R G O R P
s i r e w o p e h t n e h w r o
t u o h t i w ( f f o d e n r u t
e h t y b d e t c e f f a g n i e b
. ) n o i t c u r t s n i W S M E M
t o n s i a e r a s i h T
e h t f i n e v e d e r a e l c
r a e l C l l A y a l e r y t i l i t u
. d e t a v i t c a s i n o i t c n u f
s i a e r a s i h t , r e v e w o H
l l A n a n e h w d e r a e l c
d e t u c e x e s i r a e l C
a g n i r e t s i g e r t u o h t i w
. m a r g o r p
4 1 7 2
t i u c r i c n o i t c e r r o c t u p n i d e e p s - h g i h f o e s U
d e s u t o N : F F O d e s U : N O
5 1 7 2 . n o i t a r e p o n i s i h c t i w s m a c e l i h w N O
0 0 8 2 . ) g n i d n e s e l i h w N O s n i a m e r ( A t r o p n o i t a c i n u m m o c o t d n e s l a n g i s k a e r B
1 0 8 2
y l n o g n i r u d N O s n i a m e r d n a , A t r o p n o i t a c i n u m m o c m o r f a t a d t x e t s e v i e c e R
. a t a d t x e t g n i v i e c e r e l i h w n a c s 1
2 0 8 2
y l n o g n i r u d N O s n i a m e R . r o r r e e c n a t p e c c a a t a d t x e t A t r o p n o i t a c i n u m m o C
3 0 8 2 y a l e r r o 1 0 8 2 y a l e r r e h t i e e l i h w d e v i e c e r s i a t a d t x e t n e h w N O n a c s 1
. N O s i
3 0 8 2
r o r r e e v i e c e r a t a d t x e t A t r o p n o i t a c i n u m m o C
. s r u c c o r o r r e e v i e c e r a t a d t x e t a n e h w n a c s 1 y l n o g n i r u d N O s n i a m e R
4 0 8 2 ) . g n i d n e s g n i r u d N O s n i a m e r ( t r a t s d n e s a t a d t x e t A t r o p n o i t a c i n u m m o C
5 0 8 2 . ) g n i d n e s e l i h w N O s n i a m e r ( B t r o p n o i t a c i n u m m o c o t d n e s l a n g i s k a e r B
6 0 8 2
1 y l n o g n i r u d N O s n i a m e r d n a , a t a d t x e t B t r o p n o i t a c i n u m m o c s e v i e c e R
. a t a d t x e t g n i v i e c e r e l i h w n a c s
7 0 8 2
. r o r r e e c n a t p e c c a a t a d t x e t B t r o p n o i t a c i n u m m o C
e l i h w d e v i e c e r g n i e b s i a t a d t x e t n e h w N O n a c s 1 y l n o g n i r u d N O s n i a m e R
. N O s i 8 0 8 2 y a l e r r o 6 0 8 2 y a l e r
8 0 8 2
r o r r e e v i e c e r a t a d t x e t B t r o p n o i t a c i n u m m o C
. s r u c c o r o r r e e v i e c e r a t a d t x e t a n e h w n a c s 1 y l n o g n i r u d N O s n i a m e R
9 0 8 2 ) . g n i d n e s g n i r u d N O s n i a m e r ( t r a t s d n e s a t a d t x e t B t r o p n o i t a c i n u m m o C
2 1 8 2 . y r e t t a b p u k c a b h t i w s r u c c o y t i l a m r o n b a n a n e h w N O s n r u T
3 1 8 2
y b d e s u s t u p n i t p e c x e ( e l u d o m c i s a b n i s t u p n i l l a o t t n a t s n o c e m i t t u p n i s t e S
. ) n o i t c u r t s n i P S H
. s m 0 1 o t t n a t s n o c e m i t t u p n i s t e S : F F O
. t n a t s n o c e m i t t u p n i s e n i m r e t e d n e h t , 0 4 9 1 M D n i d e r o t s e u l a v o t s r e f e R : N O
4 1 8 2 . d e t i b i h o r p e r a s y e k e l p i t l u M : n o i t c u r t s n i Y E K H
5 1 8 2 . d e h s i n i f s i n a c S : n o i t c u r t s n i Y E K H
5 1 9 2 o t 0 0 9 2 . a e r a e g a r o t s n o i t a m r o f n i Y E K H
Appendices
2-172
A
p
p
e
n
d
i
c
e
s
D-5 Memory switches
D-6 Special memory list
I Temporary memory
Attribute R: Read, W: Write
I Communication data memory
TM00 Used for arithmetic operations (DIV/MUL) Attribute: R/W
TM01 Used for arithmetic operations (DIV) Attribute: R/W
TM02 to TM27 Can be used by user Attribute: R/W
TM28 Stores scan time beyond set value while constant scan Attribute: R
time operation is performed.
TM29 Stores set value of constant scan time operation Attribute: R/W
TM30 Stores CTC0 value when INT3 interruption is given. Attribute: R
TM31 Stores measured scan time (mean value of Attribute: R
every 10 scans).
bit0 Cancels error when power is ON. 1: Retains
0: Clears them and starts
operation.
bit1 Cancels error message "MEMORY ERASED" when 1: Memory error
value in data memory/counter or latch setting is erased. 0: Clears error and
continues operation.
bit2 Uses latch function of internal utility relays 1000 1: Yes 0: No
through 1915.
bit3 Uses latch function of internal utility relays 3000 1: Yes 0: No
through 3915.
bit4 Uses latch function of internal utility relays 4000 1: Yes 0: No
through 4915.
bit5 Uses latch function of internal utility relays 5000 1: Yes 0: No
through 5915.
bit6 Uses latch function of internal utility relays 6000 1: Yes 0: No
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
DM1000 to DM1099 Stores received text (PORT A)
DM1100 to DM1199 Stores text to be transmitted (PORT A)
DM1200 to DM1299 Stores received text (PORT B)
DM1300 to DM1399 Stores text to be transmitted (PORT B)
Appendices
2-173
1
A
p
p
e
n
d
i
c
e
s
DM1485 X #65536 + DM1484
(output pulses)
DM1481
(operation)
Frequency (Hz)
DM1480
(startup)
0 DM1482 DM1482 Time (ms)
(acceleration time) (deceleration time)
Setting contents Setting range
DM1480 Ramp up-and-down control startup frequency (Hz) 200 to 50000
DM1481 Ramp up-and-down control operating frequency (Hz) 200 to 50000
(value larger than
startup frequency)
DM1482 Ramp up-and-down control acceleration/deceleration 0 to 4000
time (ms)
DM1484 Number of output pulses (lower 16 bits) 0 to 65535
(2 or more when
DM1485 is 0)
DM1485 Number of output pulses (upper 16 bits) 0 to 65535
DM1486 Set value error code When an error
occurs, a
corresponding error
code 11 to 17 is
stored.
I Data memories for motor drive
Appendices
2-174
A
p
p
e
n
d
i
c
e
s
Appendix E Devices for KV-10R(W)/T(W) to 80R(W)/T(W),
KV-300
E-1 Special utility relays
I Special relays and arithmetic flags
I Utility relays for high-speed counter (0)
* Valid with the KV-300 only.
I Utility relays for high-speed counter (1)
Relay No. Function
2000 Undefined
2001 Undefined
2002 Always ON
2003 Always OFF
2004 0.01 s clock pulse (duty cycle: 50%)
2005 0.1 s clock pulse (duty cycle: 50%)
2006 1.0 s clock pulse (duty cycle: 50%)
2007 OFF for first scan time at startup
2008 ON for first scan time at startup
2009 ON when result of arithmetic operation is negative or an overflow is
generated.
2010 ON when result of arithmetic operation is 0.
2011 ON when result of arithmetic operation is positive.
2012 ON when arithmetic operation generates an error.
Relay No. Function
2100 Internal clock (0.8 s/1 s in KV-300) used only for CTH0
2101 Internal clock (6.4 s/10 s in KV-300) used only for CTH0
2102 Internal clock (102.4 s/100 s in KV-300) used only for CTH0
2103 When comparator CTC0 is ON, clear CTC0 automatically. 1: Yes 0: No.
2104 Direct output to 0500. 1: Disabled 0: Enabled
2105 Turns OFF output to 0500. 1: Yes 0: No
2106 Turns ON output to 0500. 1: Yes 0: No
2107 Reverses (toggles) output to 0500. 1: Yes 0: No
2108 Direct output to 0500. 1: Disabled 0: Enabled
2109 Turns OFF output to 0500. 1: Yes 0: No
2110 Turns ON output to 0500. 1: Yes 0: No
2111 Reverses (toggles) output to 0500. 1: Yes 0: No
*2112 When comparator CTC1 is ON, clears CTC0 automatically. 1: Yes 0: No.
*2113 Uses CTH0 in multiply mode. 1: Yes 0: No
*2114 Selects multiply mode for CTH0. 1: x4 0: x2
*2115 Enables external reset of CTH0. 1: Yes 0: No
Level of
direct output
to 0500 by
comparator
CTC0
(either one
is ON)
Level of
direct output
to 0500 by
comparator
CTC1
(either one
is ON)
Relay No. Function
2200 Internal clock (0.8 s/1 s in KV-300) used only for CTH1
2201 Internal clock (6.4 s/10 s in KV-300) used only for CTH1
2202 Internal clock (102.4 s/100 s in KV-300) used only for CTH1
2203 When comparator CTC2 is ON, clears CTC1 automatically. 1: Yes 0: No
2204 Direct output to 0501 by comparator CTC2. 1: Yes 0: No
2205 Level of direct output to 0501 by comparator CTC2. 1: ON 0: OFF
Appendices
2-175
1
A
p
p
e
n
d
i
c
e
s
Relay No. Function
2206 Selects edge of INT3. 0: Rising edge 1: Falling edge
*2207 Reverses (toggles) output to 0501 by comparator 0501. 1: ON 0: OFF
*2208 Direct output to 0501. 1: Disabled 0: Enabled
*2209 Turns OFF output to 0501. 1: Yes 0: No
*2210 Turns ON output to 0501. 1: Yes 0: No
*2211 Reverses (toggles) output to 0501. 1: Yes 0: No
*2212 When comparator CTC3 is ON, clears CTC1 automatically. 1: Yes 0: No
*2213 Uses CTH1 in multiply mode. 1: Yes 0: No
*2214 Selects multiply mode for CTH1. 1: x4 0: x2
*2215 Enables external reset of CTH1. 1: Yes 0: No
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.
Level of
direct output
to 0501 by
comparator
CTC3
(either one
is ON)
* Valid with the KV-300 only.
I Other special utility relays
* Valid with the KV-300 only.
Appendices
2-176
A
p
p
e
n
d
i
c
e
s
DM0700 to DM0799 Receives text [valid in KV-10R(W)/T(W)/16R(W)/T(W)/24R(W)/T(W)/
40R(W)/T(W)/80R(W)/T(W) only].
DM9200 to DM9299 Receives text (valid in KV-300 only).
DM9300 to DM9399 Receives text (valid in KV-300 only).
TM00 Stores higher-order 16 bits of product (MUL instruction), dividend and
quotient (DIV instruction).
TM01 Stores remainder (DIV instruction).
TM29 Not used.
TM30 Stores CTH1 current value transferred as soon as INT3 is executed
(read only).
TM31 Stores current scan time in unit of 0.1 ms (read only).
bit0 Manipulates all error flags when power is ON. 1: Retains
0: Clears them and starts
operation.
bit1 Performs process when RAM is cleared. 1: Memory error
0: Clears error and
continues operation.
bit2 Retains utility relays 1000 to 1915. 1: Yes 0: No
bit3 Retains utility relays 3000 to 3915. 1: Yes 0: No
bit4 Retains utility relays 4000 to 4915. 1: Yes 0: No
bit5 Retains utility relays 5000 to 5915. 1: Yes 0: No
bit6 Retains utility relays 6000 to 6915. 1: Yes 0: No
bit7 Unused (KV-300: Used as relays 2009 to 2011 by 1: Without MPS
MPS instruction). 0: With MPS
bit8 Unused
bit9 Unused (KV-300: Processes DM0000 to DM4999 1: Clears 0: Retains
when operation is started.)
bit10 Unused (KV-300: Processes DM5000 to DM8999 1: Clears 0: Retains
when operation is started.)
bit11 Processes DM when operation is started. 1: Clears 0: Retains
(KV-300: Processes DM9000 to DM9999 when
operation is started.)
bit12 Resets counter when operation is started. 1: Yes 0: No
bit13 Resets high-speed counter when operation is started. 1: Yes 0: No
bit14 Write-protects program in KV PLC. 1: Yes 0: No
bit15 Read-protects program in KV PLC. 1: Yes 0: No
DM9000 to DN9029 Stores A/D or D/A unit data (for up to 5 units).
E-2 Memory switches
E-3 Special memory list
I Temporary memory
I Data memory for communication
I Memory for A/D units and D/A units (valid in the KV-300 only)
Appendices
2-177
1
A
p
p
e
n
d
i
c
e
s
DM9500 Slot number in which the error occurred
DM9501 Channel number within slot in which the error occurred
DM9507 to DM9517 I/O module connection information map
Set item Allowable setting range
DM9407 Preset value error code 11 to 7
DM9408 X-axis startup frequency (Hz) 153 to 50000
DM9409 X-axis operation frequency (Hz) 153 to 50000
DM9410 X-axis acceleration/deceleration time (ms) 0 to 4096
DM9411 X-axis output pulses (higher-order 16 bits) 0 to 65535
DM9412 X-axis output pulses (lower-order 16 bits) 2 to 65535
DM9413 Y-axis startup frequency (Hz) 153 to 50000
DM9414 Y-axis operation frequency (Hz) 153 to 50000
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
DM9600 First DM number that stores ASCII code
DM9601 First DM number to which converted BIN value is written
DM9602 First DM number to which converted ASCII code is written
DM9603 First DM number that stores BIN value
DM1485 X #65536 + DM1484
(output pulses)
DM1481
(operation)
Frequency (Hz)
DM1480
(startup)
0 DM1482 DM1482 Time (ms)
(acceleration time) (deceleration time)
I I/O module error information (valid in the KV-300 only)
I Data memory for motor drive (valid in the KV-300 only)
I Data memory to convert ASCII character string into BIN value (32 bits)
I Data memory to convert BIN value (32 bits) into ASCII character string
Appendices
2-178
A
p
p
e
n
d
i
c
e
s
Appendix F Sample Program List
This appendix describes sample ladder programs installed by default. Sample
programs are saved in "\LBK\SAMPLE".
F-1 Description of sample ladder programs
I Samp01.ldr
Sequential turning ON of relays
Applicable models : All KV Series models (KV-10 is used in the program.)
Description : When the power switch is turned on, indicators are turned ON
one by one.
I 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.
The flash speed can be set using an analog trimmer built into
the KV unit.
I 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.
I 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.
I 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.
I 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.
I 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.
I 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.
Appendices
2-179
1
A
p
p
e
n
d
i
c
e
s
I 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.
I 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.
I 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.
I 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.
I 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.
I 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.
I 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.
Appendices
2-180
A
p
p
e
n
d
i
c
e
s
Appendix G Quick Reference
This appendix provides a brief description of each function as well as lists of com-
mands (menu buttons) and tool bars used to execute the functions.
G-1 Editor
I 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
Creates a new ladder program.
Reading a ladder program File Open 2-33
Reads a saved ladder program.
Saving a ladder program File Save 2-32
Save As
Overwrites an existing ladder program or saves a new file with a
new name.
Reading and saving a file in another format File Other Format 2-33
Saves/reads a mnemonic list.
Saves/reads comments in another LDR file.
Saves a ladder diagram in text format.
Verifying a ladder program File File-Verify File 2-36
Compares/verifies a program in the editor to/against a saved program.
Entering/deleting symbols and connection lines
Entering/deleting symbols
Edit Symbol Input Symbol Selective Input 2-38
Symbol Direct Input 2-41
Delete Symbol 2-42
Enters/deletes ladder symbols.
Two input methods are available. In the first method, an instruction
word type and an instruction word code can be specified in the
instruction selection window. In the second method, an instruction
word can be entered directly from the direct input window displayed
when the first character of an instruction word is entered.
Entering "a contacts"/"b contacts"/coils
Edit Symbol Input a (N.O.) Contact Input 2-42
b (N.C.) Contact Input
a (N.O.) Contact OR Input
b (N.C.) Contact OR Input
Coil Input 2-43
b (N.C.) Contact Coil Input
Specifies a device, and enters an a contact/b contact/coil, or deletes
an existing a contact/b contact.
Changing to connection line edit mode Edit Edit Connection Line 2-44
Changes to connection line edit mode in which connection lines can
be entered or deleted. Changes to normal edit mode when selected
again while connection line edit mode is selected. (In normal edit
mode, connection lines cannot be entered or deleted.) "Edit Connec-
tion Line" can also be selected from the popup menu displayed by
right clicking.
Appendices
2-181
1
A
p
p
e
n
d
i
c
e
s
Entering/deleting symbols and connection lines
Entering/deleting connection lines
Edit Symbol Input Vertical Connection Line 2-44
Horizontal Connection Line
Delete Vertical Connection Line 2-45
Delete Horizontal Connection Line
Horizontal Connection Line to End of Line
Enters or deletes a connection line. This operation can be performed
more quickly when the mouse or keyboard is used.
Changing a device in the current position
Changing a device in the current position
Edit Change Device at Cursor Position 2-43
Changes a device in the cursor position.
Edit operations
Undoing the last edit operation Edit Undo 2-45
Cancels the last edit operation.
Redoing the last canceled edit operation Edit Redo 2-45
Performs the last canceled operation again.
Inserting/deleting lines
Entering/deleting connection lines Edit Insert Empty Line 2-57
Delete Line
Inserts an empty line in the current cursor position, or deletes the line
in the current cursor position.
Editing comments/labels
Editing comments/label
Comment Edit Comment/Label 2-46
Enters/deletes/changes comments/labels from a device list.
Changing the label name/comment of the current device
Comment Change Label Name of Current Device 2-49
Change Comment of Current Device
Changes the label name or the comment of the device at the current
cursor position.
Editing line comments
Comment Edit Line Comment 2-50
Enters line comments into a program.
Changing ladder lines into comments
Comment Change Ladder Line into Comment 2-51
Treats ladder lines as comments. Ladder lines changed into
comments are ignored during conversion.
Copy/move/delete
Copying/moving/deleting a selected range Edit Cut 2-54
Copy
Paste
Copies/moves/deletes a selected range.
System setting
System setting Edit System Settings 2-71
Sets the directory for the automatic file save function, reverse conver-
sion error check, etc.
Appendices
2-182
A
p
p
e
n
d
i
c
e
s
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
Searches for the specified instruction word/operand.
Replacing operands Edit Replace Operand 2-64
Replaces an existing operand with another operand by specifying the
replacement width.
Converting a-b contacts Edit Convert a-b (N.O.-N.C.) Contacts 2-65
Converts an a contact into a b contact or a b contact into an a contact
by specifying an operand.
Linking screens
Linking the upper screen and the lower screen Edit Link Screens 2-28
Scrolls the lower screen when the upper screen is scrolled.
Editing lists
Editing mnemonic lists Edit Edit List 2-67
Edits a ladder diagram by the unit of circuit block using a mnemonic
list.
Displaying the usage status
Displaying the usage status Edit Usage Information 2-70
Displays the usage status of relays, timers/counters, comparators/
high-speed counters, data memory and temporary data memory.
Entering and developing macros
Creating macro files File New 2-72
Creates a new macro file.
Entering and developing macros File Macro Input Develop 2-74
Develops a macro.
Compilation and error display
Compilation Compile Compile 2-75
Compiles the ladder program into machine code.
Error display Compile Show Error 2-76
Displays error codes generated during compilation.
Double coil check Compile Check Double Coil 2-76
Checks double coil sections.
Appendices
2-183
1
A
p
p
e
n
d
i
c
e
s
Communicating with PLC
Setting PLC communication parameters
File Communication Setup Set PLC Communication Parameters 2-136
Sets parameters required for communication with the PLC.
Transferring, reading, and verifying programs
File Monitor Compile Transfer Monitor 2-139
Read Program from PLC 2-141
Verify against PLC Program
Transfers compiled ladder programs to the PLC, and switches to
monitor mode. Reads programs transferred from the PLC. Verifies a
program in the PLC against a program on the editor.
Editing devices while offline
File Monitor Edit Offline Device 2-142
Edits devices in the PLC while off-line in monitor mode.
Changing the mode
Monitor
File Monitor PLC Monitor 2-139
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
Sets/changes the model of the connected PLC.
Printout
Printout and print preview File Print 2-132
Print Preview 2-131
Prints out ladder diagrams, mnemonic lists, labels/comments/
references and the device usage status. The printout range can be
specified precisely.
Exiting from a program
Exiting from a program File Exit
Exits from a program.
Appendices
2-184
A
p
p
e
n
d
i
c
e
s
I Tool bar list
New Creates a new ladder program.
Open file Opens a saved ladder program.
Save file Saves (overwrites) an existing ladder program.
Cut Cuts the specified range (and copies it to the clipboard).
Copy Copies the specified range (to the clipboard).
Paste Pastes the cut or copied range (from the clipboard).
Print Prints out ladder diagrams, mnemonic lists, etc. (Opens
the printout setting dialog box.)
Undo Cancels the last edit operation.
Redo Performs the last edit operation canceled using the
UNDO function again.
Edit Comment/ Edits comments/labels. (Displays the comment/label edit
Label dialog box.)
Edit Line Enters line comments. (Displays the line comment input
Comment dialog box.)
Show/hide Specifies whether to show or hide comments.
comment
Jump to Jumps to a specified line/step.
specified line/step
Find Specifies instruction words/operands to be found.
Replace Operand Specifies operands to be replaced.
Usage Information Displays the device usage status.
Edit List Edits mnemonic lists.
Compile Performs compile.
Show Error Displays list of errors that occurred during compilation.
Transfer to PLC Transfers programs to the PLC, and changes to monitor
mode.
Read from PLC Reads programs from the PLC.
PLC Monitor Reads programs from the PLC, and changes to monitor
mode.
Simulator Changes to simulator mode.
Display Mode Sets the display size and display mode (for labels,
comments, etc.).
Operating Displays the online help information.
procedure
Appendices
2-185
1
A
p
p
e
n
d
i
c
e
s
I Function menu list
a (N.O.) Contact Enters an a (N.O.) contact OR in the current cursor
OR Input position.
b (N.C.) Contact Enters a b (N.C.) contact OR in the current cursor position.
OR Input
a (N.O.) Contact Enters an a (N.O.) contact in the current cursor position.
Input
b (N.C.) Contact Enters a b (N.C.) contact in the current cursor position.
Input
Coil Input Enters a coil in the current cursor position.
b (N.C.) Contact Enters a b (N.C.) contact coil in the current cursor
Coil Input position.
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.
Horizontal Draws a horizontal connection line down from the current
Connection Line cursor position.
Delete Horizontal Deletes the horizontal connection line in the current cursor
Connection Line position.
Appendices
2-186
A
p
p
e
n
d
i
c
e
s
I Shortcut key list [ ] indicates the space bar.
G File
New [Ctrl] + [N]
Open [Ctrl] + [O]
Save [Ctrl] + [S]
Print [Ctrl] + [P]
PLC Monitor [Ctrl] + [F1]
Convert Transfer Monitor [Ctrl] + [F8]
Simulator [Ctrl] + [F2]
G Edit
Undo [Ctrl] + [Z]
Redo [Ctrl] + [Y]
Symbol Selective Input [Tab]
Symbol Direct Input [ENTER] (Mnemonic can be entered.)
Delete Symbol [ ]
[BackSpace]
[Delete]
a (N.O.) Contact Input [F5]
b (N.C.) Contact Input [Shift] + [F5]
a (N.O.) Contact OR Input [F4]
b (N.C.) Contact OR Input [Shift] + [F4]
Coil Input [F7]
b (N.C.) Contact Coil Input [Shift] + [F7]
Vertical Connection Line [F8], [ / ]
Horizontal Connection Line [F9], [ ]
Horizontal Connection Line to End of Line [Ctrl] + [Tab]
Delete Vertical Connection Line [Shift] + [F8]
Delete Horizontal Connection Line [Shift] + [F9]
Macro Input Develop [Shift] + [F1]
Range selection [Shift] + [UP][DOWN][LEFT][RIGHT]
Cut [Ctrl] + [X]
[Ctrl] + [Delete]
Copy [Ctrl] + [C]
[Ctrl] + [Insert]
Paste Ctrl] + [V]
[Shift] + [Insert]
Insert Empty Line [Shift] + [ENTER]
Delete Line [Shift] + [Delete]
Edit Connection Line [Ctrl] + [K], [\]
Change Device at Cursor Position [Esc]
Edit List [Ctrl] + [F3]
Appendices
2-187
1
A
p
p
e
n
d
i
c
e
s
G Comment
Jump to the top [Ctrl] + [Home]
Jump to the bottom [Ctrl] + [End]
Jump to a registered line [Ctrl] + [J]
Line Registration [Ctrl] + [L]
Next Block [Ctrl] + [DOWN]
Previous Block [Ctrl] + [UP]
Find [Home]
[End]
Search [Ctrl] + [F]
Search Backward [F2]
Search Forward [F3]
Search for OUT Backward [Shift] + [F2]
Search for OUT Forward [Shift] + [F3]
Replace Operand [Ctrl] + [R]
Convert a-b (N.O.-N.C.) Contacts [Ctrl] + [A]
Usage Information [Ctrl] + [E]
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]
G Compile
Compile [Ctrl] + [F9]
Show Error [Ctrl] + [F10]
G View
Zoom In [Ctrl] + [PageDown]
Zoom Out [Ctrl] + [PageUp]
Show Label [Ctrl] + [BackSpace]
Show Comment [Ctrl] + [ ]
G Help
Using Help [F1]
Instruction Word [Ctrl] + [1]
G Operations in the ladder window
Close window [Ctrl] + [F4]
Move between windows [Ctrl] + [F6]
Move between windows (reverse direction) [Ctrl] + [Shift] + [F6]
Move between panes [F6]
Appendices
2-188
A
p
p
e
n
d
i
c
e
s
G-2 Simulator
I 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).
Setting the simulator operation status
Setting and deleting the break condition
Settings Set Break Condition 2-98
Edit Delete Break Condition
Setting the wait time Settings Wait Time 2-130
Setting the scan time Settings Scan Time 2-100
Setting the watch dog timer Settings Set Watch Dog Timer 2-100
Executing and stopping the simulator
Executing scans Execute Execute Continuous Scan 2-92
Execute One Scan 2-93
Two execution modes are available: continuous scan and one scan.
Executing steps Execute Execute Continuous Step 2-102
Execute One Step 2-103
Execute High-speed Step 2-104
Execute Continuous Step in Reverse
Execute One Step in Reverse
Five execution modes are available: continuous step, one step,
high-speed step, continuous step in reverse, and one step in reverse.
When steps are executed, the mnemonic window is displayed.
Stopping and pausing execution of step/scan Execute Stop 2-108
Pause
Reset Execute Reset 2-108
Returns the current values to the default values according to the
specification given by "MEMSW".
Device all clear Execute Device All Clear DM All Clear 2-108
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-189
1
A
p
p
e
n
d
i
c
e
s
Jump and search Edit Jump in Ladder Monitor 2-105
Search in Ladder Monitor 2-106
Search for Device at Cursor Position in Ladder Monitor 2-107
Searches for instruction words and operands, or jumps to a specified line.
Monitor all
Displaying a monitor all window File Monitor All 2-109
Displays devices, current values, preset values, contacts, coils and
comments.
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-113
Devices to be displayed on the monitor all window can be registered
by dragging and dropping them from a ladder diagram or by using the
dialog bar.
Changing current values/preset values for devices 2-118
Using the dialog bar, current values can be specified and written to
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.
Appendices
2-190
A
p
p
e
n
d
i
c
e
s
Changing the mode
Editor File Editor 2-87
Changes to editor mode.
Clearing devices and selecting the editor
File Clear Device and Go to Editor 2-87
Clears devices, and then changes to the editor.
Printout
Printing the registration monitor File Print 2-132
Prints out the contents currently displayed on the registration monitor.
Appendices
2-191
1
A
p
p
e
n
d
i
c
e
s
I Tool bar list
Clear Device Clears device values, and returns to the editor.
and Go to Editor
Editor Returns to the editor without clearing device values.
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.
Ladder Monitor Displays a ladder monitor window.
Registration Displays a new registration monitor window.
Monitor
Monitor All Displays a new monitor all window.
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.
Execute Executes steps continuously in the reverse direction
Continuous Step (continuous undo).
in Reverse
Execute One Executes one step in the reverse direction (undo).
Step in Reverse
Execute One Executes one step.
Step
Execute Executes steps continuously.
Continuous Step
Execute Executes steps at a high speed.
High-speed Step
Pause Temporarily stops all operations.
Stop Stops all operations.
Execute Scan Executes one scan.
Execute Executes scans continuously.
Continuous Scan
Appendices
2-192
A
p
p
e
n
d
i
c
e
s
Break Condition Registers the break condition, and displays the break
condition window.
Wait Time Sets the wait time.
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.
Reset Returns current values to their default values. Stops
operations if operations have been performed.
Using Help Displays the online help.
Appendices
2-193
1
A
p
p
e
n
d
i
c
e
s
I Shortcut key list [ ] indicates the space bar.
G File
Editor [Ctrl] + [F1]
Clear Device and Go to Editor [Ctrl] + [F2]
G Edit
Search Ladder Monitor [Ctrl] + [F]
Search Backward [F2]
Search Forward [F3]
Search for OUT Backward [Shift] + [F2]
Search for OUT Forward [Shift] + [F3]
G Execution
Execute Continuous Scan [F5]
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]
G View
Enlarge Display [Ctrl] + [PageDown]
Reduce Display [Ctrl] + [PageUp]
G Help
Using Help [F1]
Instruction Word [Ctrl] + [1]
Appendices
2-194
A
p
p
e
n
d
i
c
e
s
G Operations in the ladder monitor
Move between panes [F5]
Move cursor [LEFT][RIGHT][DOWN][UP]
Move cursor by unit of block [Ctrl] + [DOWN][UP]
Move cursor to the beginning of line [Home]
Move cursor to the end of line [End]
Reverse bit devices [ ]
Read values to dialog bar [ENTER]
Switch numbering system (decimal hexadecimal) [Ctrl]+[E]
G Operations in the registration monitor
Move cursor [DOWN][UP]
Move vertical cursor on timing chart [LEFT][RIGHT]
Changes over selection of vertical cursor [Tab]
on timing chart
Reverse bit devices [ ]
Reads values to dialog bar [ENTER]
Delete devices [Delete]
G Operations in the monitor all
Move cursor [DOWN][UP]
Move bit cursor [LEFT][RIGHT]
(only for binary 16-bit bit devices)
Reverse bit devices [ ]
Reads values to dialog bar [ENTER]
G Operations on the mnemonic window
Move cursor [DOWN][UP]
Sets/cancels break point [ ]
G Operations on the break condition window
Move cursor [DOWN][UP]
Change/register break condition [ENTER]
Delete break condition [Delete]
G Other operations common to all the windows
Close window [Ctrl] + [F4]
Move between windows [Ctrl] + [F6]
Move between windows (reverse direction) [Ctrl] + [Shift] + [F6]
Appendices
2-195
1
A
p
p
e
n
d
i
c
e
s
G-3 Monitor
I 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).
Reading and saving change all File Open Window 2-150
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
Stops the monitor.
Disabling input refresh/output
Disabling the input refresh Monitor Disable Input Refresh 2-149
Disables reading of input relays (input refresh) in the PLC.
* This setting is available in the KV-300 and Visual KV Series only.
Disabling the output Monitor Disable Output 2-149
Disables update of the output status.
* This setting is available in the KV-300 and Visual KV Series only.
Appendices
2-196
A
p
p
e
n
d
i
c
e
s
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.
Jump and search 2-58
Edit Jump in Ladder Monitor
Search Ladder Monitor
Search for Device at Cursor Position in Ladder Monitor
Searches for instruction words and operands, or jumps to a specified
line.
Monitor all
Displaying a monitor all window File Monitor All 2-109
Displays devices, current values, preset values, contacts, coils and
comments.
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-114
Devices to be displayed on the monitor all window can be registered
by dragging and dropping them from a ladder diagram or by using the
dialog bar.
Changing current values/preset values of devices 2-118
Using the dialog bar, current values can be specified and written to
devices. Currently saved values/preset values can be changed.
Registration monitor
Displaying a registration monitor window File Registration Monitor 2-119
Displays current values, comments and timing charts for the registered
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.
Appendices
2-197
1
A
p
p
e
n
d
i
c
e
s
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 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 in 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.
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").
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.
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.
Appendices
2-198
A
p
p
e
n
d
i
c
e
s
I Tool bar list
Editor Exits from the monitor, and returns to the editor.
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.
Ladder Monitor Displays a ladder monitor window.
Registration Displays a registration monitor window.
Monitor
Monitor All Displays a monitor all window.
Change All Specifies the range of current values of devices to be
changed, and then changes them all at once.
Open Window Opens a monitor all file or registration monitor file.
Save Window Saves a monitor all file or registration monitor file with a
new name.
Stop Monitor Stops the monitor.
(red)
Start Monitor Starts the monitor.
(green)
Run Sets the PLC to RUN mode.
Stop Sets the PLC to STOP Mode.
No. of Scales for Sets the number of scales for timing charts.
Timing Chart
Using Help Displays the on-line help.
Appendices
2-199
1
A
p
p
e
n
d
i
c
e
s
I Shortcut key list [ ] indicates the space bar.
G File
G Edit
G PLC mode
G Monitor
G View
G Help
Editor [Ctrl] + [F1]
Search in Ladder Monitor [Ctrl] + [F]
Search Backward [F2]
Search Forward [F3]
Search for OUT Backward [Shift] + [F2]
Search for OUT Forward [Shift] + [F3]
RUN [Shift] + [F7]
STOP [Shift] + [F6]
Start Monitor [F4]
Stop Monitor [F3]
Enlarge Display [Ctrl] + [PageDown]
Reduce Display [Ctrl] + [PageUp]
Using Help [F1]
Instruction Word [Ctrl] + [1]
G Operations in the ladder monitor
Move between panes [F6]
Move cursor [LEFT][RIGHT][DOWN][UP]
Move cursor by unit of block [Ctrl] + [DOWN][UP]
Move cursor to the beginning of line [Home]
Move cursor to the end of line [End]
Reverse bit devices [ ]
Read values to dialog bar [ENTER]
Switch numbering system (decimal hexadecimal) [Ctrl]+[E]
L L
Appendices
2-200
A
p
p
e
n
d
i
c
e
s
G Operations in the registration monitor
G Operations in the monitor all
G Other operations common to all the windows
Move cursor [UP][DOWN]
Move vertical cursor on timing chart [LEFT][RIGHT]
Reverse bit devices [ ]
Reads values to dialog bar [ENTER]
Delete devices [Delete]
Move cursor [DOWN][UP]
Move bit cursor [LEFT][RIGHT]
(only for binary 16-bit bit devices)
Reverse bit devices [ ]
Reads values to dialog bar [ENTER]
Close window [Ctrl] + [F4]
Move between windows [Ctrl] + [F6]
Move between windows (reverse direction) [Ctrl] + [Shift] + [F6]
Appendices
2-201
1
A
p
p
e
n
d
i
c
e
s
Appendix H Notes for Programming
This appendix describes important points and precautions for creating ladder pro-
grams.
H-1 Circuits that must be modified
The circuit shown on the left cannot be programmed. Modify it as shown on the
right.
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.
If the same coil is used in two positions, the latter position has the priority and the
coil in the former position is ignored.
The circuit shown on the left cannot be programmed. Modify it as shown on the
right.
The circuit shown on the left cannot be programmed. Modify it as shown on the
right.
A
A D
E
B
0500 0500
C
A
C
E B
A E D
A
1000
1000
0500
0500
1000
A 1000
A
A B
0500
C E
0500
0500
A B
C E
A
F
E D
B C
0500 0500
B
D
C A
F
E
E
C
A
D B
0500
C E
0501
0500
A
C D
B
E
0501
Appendices
2-202
A
p
p
e
n
d
i
c
e
s
0500
#0010
T000
0500
2002
#0010
T000
X
A 0500 B D E E
C
X
A B
C
0500
X X
A B C
0500
A B
D
C
0500
0501
A B
D
C
0500
0501
H-2 Precautions for programming
A coil output or timer/counter cannot be connected directly from a bus. When an
output coil or a timer/counter is required, insert a b contact of an unused internal
utility relay, a b contact of an unused special utility relay, or a special utility relay
2002 (always ON) as a dummy.
A contact cannot be connected to an output line.
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.
Make sure that illegal short-circuits are not generated in parallel connection.
Circuits including output coils cannot be connected in parallel.
However, parallel connection is enabled when each circuit in parallel connection
is connected to an output line respectively.
Appendices
2-203
1
A
p
p
e
n
d
i
c
e
s
Fig. a
Fig. b
A B C D E F G
H
I
A B C D E F G
H
I A
H-3 Programs which cannot be decompiled
When a return is included in parallel connection in a ladder program, a
decompilation (reverse compilation) error is generated as shown in Fig. a below.
To prevent this, change the ladder diagram to eliminate the return, or separate the
parallel connection.
Appendices
2-204
A
p
p
e
n
d
i
c
e
s
Appendix I List of Files Used
This appendix describes files generated when the Ladder Builder for KV is executed.
Files generated in the data directory
********.LDC Source file dedicated to the Ladder Builder
********.LDR Ladder diagram source file [usable by the KV IncrediWare (DOS)]
********.RCM Contact comment 1 file [usable by the KV IncrediWare (DOS)]
********.CM2 Contact comment 2 file
********.CM3 Contact comment 3 file
********.LVL Label file
********.ERR Error file [usable by the KV IncrediWare (DOS)]
********.MNM Mnemonic list file [usable by the KV IncrediWare (DOS)]
********.COD Code file [usable by the KV IncrediWare (DOS)]
********.KRE Registration monitor information file
********.KAL Monitor all information file
********.KDV Change all information file
********.INT Ladder diagram comment transfer range setting file
********.KEN MDI setting file
Files generated in the working directory
These files are automatically saved, and deleted when the software is closed nor-
mally.
********.$DC Ladder diagram source file
********.$CM Contact comment 1 file
********.$M2 Contact comment 2 file
********.$M3 Contact comment 3 file
********.$M3 Contact comment 3 file
********.$VL Device label file
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.
Appendices
2-205
1
A
p
p
e
n
d
i
c
e
s
Appendix J Countermeasures for Frequent Communication
Errors
Check the following points if communication errors frequently occur while you
monitor the KV Series with the LADDER BUILDER for KV.
Note: Each parameter setting may vary depending on the computer. For setting
details, refer to the instruction manual supplied with your computer or ask the
manufacturer of the computer.
G 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.
G Isnt a modem assigned to a specific communication port?
Some personal computers may assign a modem to a communication port. If so,
disconnect the modem or use another communication port.
G Isnt 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.
G Isnt infrared communication specified?
Some personal computers may specify infrared communication for the communi-
cation port. In this case, if your computer has another available communication
port, specify that port with the LADDER BUILDER for KV. If there is no available
communication port, cancel the infrared communication setting.
G Isnt the Suspend function activated?
If the Suspend function is activated with Windows 95, the communication will fail.
Do not use the Suspend function.
Appendices
2-206
A
p
p
e
n
d
i
c
e
s
Index
I
n
d
e
x
Index
2-208
Index For Visual KV Users Only
The following is the index with some descriptions for your reference.
Index For Visual KV Users Only
e s o p r u P e l t i T e g a P
A
n i e u l a v e c i v e d g n i g n a h c , w o d n i W s s e c c A e d o m e c i v e D 7 8 - 1
n i s e d o m g n i g n a h c , w o d n i W s s e c c A k c o l y e k g n i t t e s e r / g n i t t e s d n a s e d o m g n i t c e l e S 2 8 - 1
n i s n o i t c e r i d g n i y a l p s i d , w o d n i W s s e c c A s e g a s s e m r e s U 7 9 - 1
n i s r o r r e g n i y a l p s i d , w o d n i W s s e c c A s u t a t s r o r r e d n a s e g a s s e m r o r r E 7 9 - 1
n i y a l p s i d r o r r e , w o d n i W s s e c c A t s i L r o r r E 2 7 3 - 1
n i d e e p s n o i t c e l e s e c i v e d g n i s a e r c n i , w o d n i W s s e c c A n o i t c n u f o b r u T 3 8 - 1
f o s n o i t c n u f s e m a n t r a p , w o d n i w s s e c c A w o d n i W s s e c c A e h t f o s n o i t c n u f d n a s e m a n t r a P 2 8 - 1
d n a N U R n e e w t e b C L P V K e h t g n i h c t i w s , w o d n i W s s e c c A
n i s e d o m ) p o t s ( M A R G O R P
e d o M m e t s y S 4 9 - 1
n i r e m m i r t l a t i g i d g n i s u , w o d n i W s s e c c A e d o M r e m m i r T l a t i g i D 4 8 - 1
t u o b a g n i n r a e l , s n o i t c u r t s n i n o i t a c i l p p A s n o i t c u r t s n i n o i t a c i l p p A 6 3 - 3
t u o b a g n i n r a e l , s n o i t c u r t s n i c i t e m h t i r A s n o i t c u r t s n i c i t e m h t i r A 8 3 - 3
B
t u o b a g n i n r a e l , s n o i t c u r t s n i c i s a B s n o i t c u r t s n i c i s a B 4 3 - 3
C
r o f m e t i g n i t t e s , n o i t c n u f h c t i w s m a C n o i t c n u f h c t i w s m a c r o f d e s u e c i v e D 3 3 2 - 3
s a V K g n i s u , h c t i w s m a C n o i t c n u f h c t i w s m a C 3 3 2 - 3
g n i r i u q c a , g n i k r a m E C g n i k r a m E C e h t g n i r i u q c a n o n o i t c i r t s e R ) 2 (
r e t u p m o c l a n o s r e p d n a V K n e e w t e b n o i s s i m s n a r t d n a m m o C t s i l e s n o p s e r / d n a m m o c n o i t a c i n u m m o C 0 1 3 - 3
g n i r u d s r u c c o r o r r e n e h w , n o i s s i m s n a r t d n a m m o C t s i l e d o c r o r r E 6 1 3 - 3
f o s n o i t a c i f i c e p s , t r o p n o i t a c i n u m m o C n o i t a c i f i c e p S s n o i t a c i n u m m o C 6 0 3 - 3
C L P V K o t m e h t g n i t t i m s n a r t , s t n e m m o c t c a t n o C n o i t c n u f e v a s t n e m m o c t c a t n o C 7 2 - 3
g n i t c e t o r p , s t c a t n o C n o i t c e t o r p t c a t n o C 9 6 - 1
h t i w s e c n e r e f f i d , s e i r e s V K l a n o i t n e v n o C s t i n u l a r e h p i r e p V K l a n o i t n e v n o c h t i w y t i l i b i t a p m o C ) 4 (
n o i t p m u s n o c t n e r r u C s n o i t a c i f i c e p s l a r e n e G 4 - 1
D
o t d e n g i s s a s n o i t c n u f , y r o m e m a t a D s e i r o m e m a t a D 9 1 - 3
f o e n i l t u o , e s l u p k c o l c t c e r i D t u p t u o e s l u p k c o l c t c e r i d f o e n i l t u O 7 3 2 - 3
g n i s u o i t a r F F O / N O 1 : 1 h t i w s e s l u p g n i t t u p t u o , e s l u p k c o l c t c e r i D 1 : 1 f o o i t a r F F O / N O 8 3 2 - 3
h t d i w e s l u p e l b a i r a v h t i w s e s l u p g n i t t u p t u o , e s l u p k c o l c t c e r i D h t d i w e s l u p e l b a i r a V 8 3 2 - 3
r o f m e t i g n i t t e s , e s l u p k c o l c t c e r i D
r e t n u o c d e e p s - h g i h e h t h t i w g n i t t e s t u p t u o e s l u P
r o t a r a p m o c
8 3 2 - 3
E
f o n o i t a r e p o g n i k c e h c , t i n u n o i s n a p x E s t i n u n o i s n a p x e r o f n o i t a m r o f n i n o i t c e n n o C 5 7 - 1
g n i t c e n n o c , t i n u n o i s n a p x E s t i n u n o i s n a p x e s e i r e S V K l a u s i V g n i t c e n n o C 1 7 - 1
o t d e t c e n n o c e b o t r e b m u n m u m i x a m , t i n u n o i s n a p x E s t i n u e l b a t c e n n o c f o r e b m u N 3 7 - 1
t i n u c i s a b e p y t - C A h t i w h s u l f t h g i e h s t i g n i t t e s , t i n u n o i s n a p x E r e c a p s t i n u n o i s n a p x E 6 6 - 1
g n i l b a s i d , t u p t u o l a n r e t x E n o i t c n u f n o i t i b i h o r p t u p t u O 6 2 - 3
F
h c t i w s t u o h t i w F F O / N O t u p n i g n i c r o F n o i t c n u f d e l b a s i d h s e r f e r t u p n I 6 2 - 3
r o f m e t i g n i t t e s , n o i t c n u f r e t n u o c y c n e u q e r F r e t n u o c y c n e u q e r f e h t h t i w d e s u s e c i v e D 1 3 2 - 3
f o e g n a r t n e m e r u s a e m g n i s a e r c n i , r e t n u o c d e e p s - h g i H r e t n u o c d e e p s - h g i h t i b - 4 2 1 2 2 - 3
h t i w y c n e u q e r f g n i r u s a e m , r e t n u o c d e e p s - h g i H n o i t c n u f r e t n u o c y c n e u q e r F 1 3 2 - 3
g n i s u s e s l u p g n i t t u p t u o , r e t n u o c d e e p s - h g i H t u p t u O e s l u P k c o l C t c e r i D 7 3 2 - 3
f o e u l a v t n e r r u c g n i d a e r , r e t n u o c d e e p s - h g i H r e t n u o c d e e p s - h g i h e h t f o e u l a v t n e r r u c e h t g n i d a e R 1 1 2 - 3
" 0 " n a h t r e h t o o t e u l a v e h t g n i t t e s e r , r e t n u o c d e e p s - h g i H n o i t c n u f t e s e r P 5 1 2 - 3
I
n
d
e
x
Index
2-209
1
1
e s o p r u P e l t i T e g a P
" 0 " o t e u l a v e h t g n i t t e s e r , r e t n u o c d e e p s - h g i H r e t n u o c d e e p s - h g i h e h t g n i t t e s e R 4 1 2 - 3
r o f e c r u o s t u p n i g n i t c e l e s , r e t n u o c d e e p s - h g i H d o h t e m t u p n i t n u o C 2 1 2 - 3
f o s n o i t a c i f i c e p s , r e t n u o c d e e p s - h g i H s r e t n u o c d e e p s - h g i h f o s n o i t a c i f i c e p S 8 0 2 - 3
f o e u l a v t e s e r p e h t g n i y f i c e p s , r e t n u o c d e e p s - h g i H r o t a r a p m o c r e t n u o c d e e p s - h g i h e h t f o e u l a v t e s e r P 1 1 2 - 3
r e t n u o c g n i r s a , g n i s u , r e t n u o c d e e p s - h g i H n o i t c n u f r e t n u o c g n i R 5 2 2 - 3
I
g n i g n a h c , t i n u c i s a b f o t n a t s n o c e m i t t u p n I n o i t c n u f e g n a h c t n a t s n o c e m i t t u p n I 3 2 - 3
g n i t t e s , t i n u n o i s n a p x e f o t n a t s n o c e m i t t u p n I s t i n u n o i s n a p x e r o f t n a t s n o c e m i t t u p n I 6 7 - 1
n a c s f o t n e d n e p e d n i s u t a t s y a l e r g n i t t u p t u o , n o i t c u r t s n i t p u r r e t n I
e m i t
t u p t u O / t u p n I t c e r i D 7 9 1 - 3
t u o b a g n i n r a e l , s n o i t c u r t s n i t p u r r e t n I n o i t c u r t s n i t p u r r e t n I 1 4 - 3
n i h t i w d e s u e b t o n n a c t a h t s n o i t c u r t s n i , s m a r g o r p t p u r r e t n I d e s u e b t o n n a c t a h t s n o i t c u r t s n I 6 9 1 - 3
y b r e t n u o c d e e p s - h g i h f o e u l a v t n e r r u c g n i d a e r , t p u r r e t n I e r u t p a c t u p n I 5 9 1 - 3
r o f n o i t i d n o c t u p n i g n i t t e s , t p u r r e t n I t u p n i l a n r e t x e n a y b s t p u r r e t n i r o f g n i t t e s y t i r a l o P 5 9 1 - 3
d e t u c e x e e r a s t p u r r e t n i l a r e v e s n e h w : t p u r r e t n I y t i r o i r p t p u r r e t n I 6 9 1 - 3
K
g n i s u , V K r o f R E D L I U B R E D D A L / ) S O D ( e r a W i d e r c n I V K
r e d d a l f o n o i s r e v s u o i v e r p e h t g n i s u n e h w s n o i t u a C
e r a w t f o s t r o p p u s
) 5 (
g n i s u s n o i t c u r t s n i g n i r e t n e , ) 1 0 ( E 3 P - V K ) r e d r o l a c i t e b a h p l a ( t s i l . o N n o i t c n u F 1 4 - 3
h t i w e l b a l i a v a s n o i t c n u f , ) 1 0 ( E 3 P - V K t s i l . s o N n o i t c n u F 6 1 2 - 1
g n i t a r e p o , ) 1 0 ( E 3 P - V K n o i t a r e p o g n i m m a r g o r p c i s a B 0 0 2 - 1
M
f o y t i c a p a c , d r a c y r o m e M y t i c a p a c e g a r o t S 0 3 2 - 1
f o y r e t t a b g n i c a l p e r , d r a c y r o m e M y r e t t a b e c a l p e r o T 8 3 2 - 1
g n i t u c e x e , M D f o n o i t a r e p o r o t a r a p m o c p e t s - i t l u M e d o m r o t a r a p m o c p e t s - i t l u M 4 3 2 - 3
O
V K m o r f t u p t u o g n i l b a s i d , t u p t u O n o i t c n u f d e l b a s i d t u p t u O 6 2 - 3
P
V K f o g n i t n u o m l e n a P l e n a p a o t y l t c e r i d t i n u a g n i h c a t t A 6 6 - 1
m o r f a t a d g n i v i e c e r , r e t u p m o c l a n o s r e P a t a d t x e t g n i v i e c e R 8 1 3 - 3
o t V K m o r f a t a d g n i t t i m s n a r t , r e t u p m o c l a n o s r e P a t a d t x e t g n i t t i m s n a r T 9 1 3 - 3
f o n o i t a l u c l a c , y t i c a p a c m a r g o r P d e s u t n u o c e t y b e h t g n i t a l u c l a C 4 - 3
t u o b a g n i n r a e l , y t i c a p a c m a r g o r P y t i c a p a c m a r g o r P 4 - 3
d r a c y r o m e m o t n i g n i v a s , s m a r g o r P ] ) 1 0 ( E 3 P - V K h t i w d e s u [ s n o i t c n u F 0 3 2 - 1
g n i v i r d , r o t o m e s l u P e r u d e c o r p g n i t t e s r e t e m a r a P 5 5 2 - 3
y c n e u q e r f d e r i s e d t a t u p t u o e s l u P n o i t c n u f t u p t u o e s l u p y c n e u q e r f d e i f i c e p S 8 2 2 - 3
t i n u c i s a b o t d e n g i s s a . s o N y a l e R t s i l y a l e R 5 - 3
t i n u n o i s n a p x e o t d e n g i s s a . s o N y a l e R s t i n u n o i s n a p x e n i s y a l e r f o t s i L 6 - 3
g n i n g i s s a , . s o N y a l e R . s o N y a l e r g n i n g i s s A 8 - 3
S
M O R o t n i M D / r e t n u o c f o e u l a v t n e r r u c g n i v a S s e d o m E V A S d n a D A O L 6 9 - 1
e m i t n a c S e m i t n a c S 3 - 3
V K o t g n i t c e n n o c , s e c i v e d r e h t o r o s r o s n e S s t i n u c i s a b r o f s e r u d e c o r p g n i r i W 7 6 - 1
c i t e m h t i r a n e h w , f o s u t a t s n i e g n a h c , s y a l e r y t i l i t u l a i c e p S
d e s u s i n o i t c u r t s n i
c i t e m h t i r a ( s y a l e r y t i l i t u l a i c e p s f o s u t a t s n i e g n a h C
s n o i t c u r t s n i c i t e m h t i r a y b ) s g a l f
6 8 1 - 3
o t d e n g i s s a s n o i t c n u f , s y a l e r y t i l i t u l a i c e p S t s i l y a l e r y t i l i t u l a i c e p S 6 8 - 3
r o f m e t i g n i t t e s , n o i t c n u f t u p t u o e s l u p y c n e u q e r f d e i f i c e p S t u p t u o e s l u p y c n e u q e r f d e i f i c e p s r o f d e s u e c i v e D 8 2 2 - 3
T
o t d e n g i s s a s n o i t c n u f , y r o m e m a t a d y r a r o p m e T y r o m e m a t a d y r a r o p m e T 1 2 - 3
f o r e b m u n m u m i x a m , s r e t n u o c / s r e m i T t s i l r e t n u o C / r e m i T 8 1 - 3
Index For Visual KV Users Only
I
n
d
e
x
Index
2-210
A
A/D converter .......................... 1-312 [AN6], 1-334 [AD4]
A/D conversion table ............... 1-408 [AN6], 1-357 [AD4]
ADD/@ADD: Add .................................................... 3-150
AND: And .................................................................. 3-58
ANB: And Bar ............................................................ 3-58
ANDA/@ANDA: And A............................................ 3-159
ANL: And Load.......................................................... 3-61
Application Instructions ........................... 3-36, 3-45, 3-95
Arithmetic Instructions ........................... 3-38, 3-48, 3-134
ASC/@ASC: ASCII Convert ................................... 3-183
Assignment of Data Memory ..................................... 3-19
Assignment of I/O relay numbers .............................. 3-22
B
Basic Instructions .................................... 3-34, 3-42, 3-56
Baud rate ....................................... 2-136, 1-247 [KV-L2]
Break signal ............................................................ 3-308
C
C: Counter ................................................................ 3-72
CALL: Subroutine Call ............................................. 3-122
CMP/@CMP: Compare........................................... 3-146
COM/@COM: Complement .................................... 3-171
Commands [Serial communication] ........................ 3-310
Communications ....................................... 2-135, 3-306
CON: Connect ......................................................... 3-102
Connector wiring ...................................................... 1-72
CTC: Counter Comparator ...................................... 3-204
CTH1: 16-Bit Counters ............................................ 3-204
D
Data Memory............................................................. 3-19
D/A converter .......................... 1-312 [AN6], 1-334 [AD4]
D/A conversion table ............... 1-408 [AN6], 1-357 [DA4]
DEC/@DEC: Decrement Memory ........................... 3-172
DI: Interrupt Disabled .............................................. 3-193
DIFD: Differentiate Down .......................................... 3-78
DIFU: Differentiate Up.............................................. 3-78
Dimensions ............................................................ 1-404
DIN rail (mounting) ................................................. 1-180
Direct Clock Pulse................................................... 3-276
Display Interface Mode [KV-L2] ............................. 1-244
DIV/@DIV: Divide ................................................... 3-150
DMX/@DMX: Demultiplexer ................................... 3-176
DW: Data Memory Write ......................................... 3-136
E
EI: Interrupt Enabled ............................................... 3-193
END: End .................................................................. 3-94
ENDH: End Hi ........................................................... 3-94
ENDS: End Stage ................................................... 3-106
Environment requirements ....................................... 1-64
EORA/@EORA: Exclusive Or A ............................. 3-164
Error code list ......................................................... 1-372
Extended Ladder Diagrams ...................................... 3-29
Index For KV-300, KV-10/80 Users Only
Index For KV-300, KV-10/80 Users Only
F
FOR: Repeat Start .................................................. 3-125
H
High-Speed Counters.............................................. 3-276
HKEY: 16 Key Input ................................................ 3-131
HSP: High Speed ...................................................... 3-86
I
INC/@INC: Increment Memory ............................... 3-172
Indirect Addressing of Data Memory or Relay ........ 3-127
Input Relays ................................................................ 3-9
Instruction List .................................................. 3-34, 3-42
INT: Interrupt ........................................................... 3-192
Interface [RS-232C] ................................................ 3-306
Internal register ....................................................... 3-135
Internal Utility Relays ................................................ 3-11
Internal Clocks for CTH0 and CTH1 ....................... 3-278
Interrupt Instructions ............................................... 3-268
I/O distribution ........................................................ 1-187
ITVL: Interval Timer ................................................. 3-117
J
JMP: Jump .............................................................. 3-106
K
KEEP: Keep .............................................................. 3-80
KV-10/16/24/40/80 ........................... 1-167, 1-175, 1-177
KV-300 ........................................................ 1-166, 1-170
KV-AD4 .................................................................. 1-334
KV-AN6 .................................................................. 1-312
KV-B16R/B16S/C32T ............................................. 1-172
KV-C16X/C32X ...................................................... 1-171
KV-DA4 .................................................................. 1-334
KV-L2 ..................................................................... 1-240
KV-R1A/R16X/R16R/R16T/R8X/R8R/R8T . 1-173, 1-174
KV-U4/U5 .................................................... 1-168, 1-169
KV mode [KV-L2] ................................................... 1-253
L
LD: Load.................................................................... 3-57
LDA/@LDA: Load A ................................................ 3-140
LDB: Load Bar ........................................................... 3-57
M
Macros ..................................................................... 2-72
MC: Master Control ................................................... 3-89
MCR: Master Control Reset ...................................... 3-89
Memory Card ......................................................... 1-230
MEMSW: Memory Switch ......................................... 3-92
Module names ........................................................ 1-175
Mounting Environment ............................................. 1-64
MPP: Pop ................................................................ 3-103
MPS: Push .............................................................. 3-103
I
n
d
e
x
Index
2-211
1
1
MPX/@MPX: Multiplexer ........................................ 3-176
MRD: Read ............................................................. 3-103
MUL/@MUL: Multiply .............................................. 3-150
N
NEXT: Repeat End.................................................. 3-125
Non-procedure mode [KV-L2] ................................ 1-292
NOP: No Operation ................................................... 3-94
O
OR: Or ....................................................................... 3-60
ORA/@ORA: Or A .................................................. 3-161
ORB: Or Bar .............................................................. 3-60
ORL: Or Load............................................................ 3-63
OUB: Out Bar ............................................................ 3-65
OUT: Out ................................................................... 3-65
Output Relays ........................................................... 3-10
P
Peripheral equipments ........................................... 1-176
Port1/Port2 [KV-L2] ................................................ 1-245
Positionning control ................................................. 3-296
Programming examples .......................................... 3-324
R
RASC/@RASC: Reverse ASCII Convert ................ 3-183
Receiving text data.................................................. 3-318
Relay/Memory/Memory Switch Lists .................. 2-167
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
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 For KV-300, KV-10/80 Users Only
System Configuration (Memory Card) .................... 1-196
System specifications [Visual KV Series] ............... 1-382
System specifications [KV-300 Series] .................. 1-392
T
TBCD/@TBCD: Transfer BCD................................ 3-180
TBIN/@TBIN: Transfer BIN..................................... 3-180
Temporary Memory ................................... 2-172, 2-176
Timers and Counters ........................................... 2-169
TMH: 0.01-s Timer .................................................... 3-68
TMIN: Trimmer In .................................................... 3-138
@TMIN: Trimmer Setting ........................................ 3-138
TMR: 0.1-s Timer ...................................................... 3-67
TMS: 1-ms Timer ...................................................... 3-69
Transmitting text data.............................................. 3-319
Troubleshooting ..................................................... 1-372
U
UDC: Up-Down Counter ............................................ 3-76
W
W-DE: Wait Down Edge............................................ 3-98
W-OFF: Wait OFF ..................................................... 3-96
W-ON: Wait ON......................................................... 3-96
W-UE: Wait Up Edge ................................................ 3-98
X
@xxxx: Differentiation ............................................. 3-137
I
n
d
e
x
Index
2-212
A
ACCS ..................................................................... 1-234
ALL CLEAR [FNC60] [P3E] .................................... 1-217
ALL DATA MEMORY CLEAR
(DM ALL CLEAR): [FNC64] [P3E] ..................... 1-219
ALL LATCHING RELAYS RESET
(L-RELAY ALL RST): [FNC65] [P3E] .................. 1-219
B
Break signal ............................................................ 3-308
C
CLEAR [P3E] ......................................................... 1-232
Comments (Relay comment, Line comment) ...... 2-46
Compile ................................................................... 2-75
Converting N.O./N.C. .............................................. 2-65
Copy, move and delete .......................................... 2-69
COUNTER CLEAR (CTR CLEAR): [FNC62] [P3E] 1-218
Customizing KV-LADDER ,
Defining Environment Strings .......................... 2-19
Copy, move and delete operation ......................... 2-52
D
Data Communications between KV
and Personal Computer ....................................... 3-306
Display mode ......................................................... 2-19
Double coil check ................................................... 2-76
E
Edit screen .............................................................. 2-27
Entering symbols ................................................... 2-37
Environment requirements ..................................... 2-3
Error message list ................................................ 2-156
H
HANDHELD PROGRAMMER CLEAR (P3E CLEAR):
[FNC61] ............................................................. 1-217
Handheld Programmer KV-P3E ............................. 1-196
HIGH-SPEED COUNTER CLEAR
(HIGH SPEED CTR CLR): [FNC63] [P3E] ......... 1-218
I
Installing Ladder Builder ......................................... 2-9
J
Jump ........................................................................ 2-58
L
Ladder Monitor ..................................................... 2-134
Ladder Simulator .................................................... 2-84
Line comment ........................................................ 2-46
M
Macros ..................................................................... 2-72
Memory Card [P3E] ................................................ 1-230
Monitor Mode ........................................................ 2-134
Monitor screen ..................................................... 2-143
MOVE CURSOR [P3E] .......................................... 1-202
Index Software/P3E (handheld programmer)
MULTI-MONITOR [P3E] ........................................ 1-212
O
OFFLINE EDITOR START (OFFLINE EDITOR):
[FNC67] [P3E] ................................................... 1-221
OFFLINE EDITOR STOP (QUIT OFF-L EDIT):
[FNC68] [P3E] ................................................... 1-221
ON/OFF MONITOR [P3E] ...................................... 1-215
P
Printer Setting, Defining Environment Strings ... 2-77
Printing examples .................................................. 2-81
PROGRAM CAPACITY CHECK (PROGRAM SIZE):
[FNC75] [P3E] ................................................... 1-229
PROGRAM SENT OR RECEIVED
(COMMUNICATION): [FNC66] [P3E] ............ 1-220
Q
Quitting software .................................................... 2-16
R
READ TRIMMER SETTING (TRIMMER MONITOR):
[FNC73] [P3E] ................................................... 1-228
Registration of cursor position and
jump to registered position .............................. 2-59
RELAY ON/OFF (FORCED SET/RESET):
[FNC71] [P3E] ................................................... 1-226
Replacing relays ..................................................... 2-64
RS-232C cable connection ...................................... 2-7
RS-232C Protocol ..................................................... 2-3
S
SCAN TIME MONITOR [P3E] ................................ 1-212
SCROLL [P3E] ....................................................... 1-202
Search ..................................................................... 2-58
Searching Program [P3E] ...................................... 1-207
Selecting display mode ......................................... 2-19
Setting print range ................................................. 2-77
Simulator Mode ...................................................... 2-84
Simulator screen .................................................... 2-86
Starting and quitting software .............................. 2-16
Starting edit mode ................................................. 2-29
Starting the Monitor Function ............................. 2-139
Starting the Simulator ............................................ 2-86
SYNTAX CHECK (PROGRAM CHECK):
[FNC74] [P3E] ................................................... 1-228
T
Temporary Memory ................................................... 3-21
Time Chart Monitor .............................................. 2-157
Time Chart Viewer ..................................... 2-148, 2-167
TIMER/COUNTER SETTING CHANGE
(CHG: T/C SET-V): [FNC70] [P3E] ................... 1-224
TIMER/COUNTER CURRENT VALUE CHANGE
(CHG: T/C CURT-V): [FNC69] [P3E] ................ 1-222
W
WRITE INTO DATA MEMORY (DM WRITE):
[FNC72] [P3E] ................................................... 1-227
Index Software/P3E (handheld programmer)
I
n
d
e
x
Index
2-213
1
1
I
n
d
e
x
Index
2-214
I
n
d
e
x
Index
2-215
1
1
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 Buyers responsibility to ascertain the fitness of the Products for Buyers 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,
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.
(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 PARTYS CLAIM FOR DAMAGES OR
ANY OTHER CLAIM AGAINST BUYER. In some jurisdictions, some of the foregoing warranty disclaimers
or damage limitations may not apply.
BUYERS TRANSFER OBLIGATIONS: If the Products/Samples purchased by Buyer are to be resold or
delivered to a third party, Buyer must provide such third party with a copy of this document, all specifica-
tions, manuals, catalogs, leaflets and written information provided to Buyer pertaining to the Products/
Samples.
KEYENCE CORPORATION, 1999 NKVS-UM-4-1100 Printed in Japan
96M0365
How this manual is organized:
The Visual KV Series Users Manual is composed of 3 separate
manuals; 1-Installation, 2-Support Software, 3-Programming.
Please read each manual relevant to your purpose.
Support
Software
1. Introduction
2. Editor
3. Simulator
4. Monitor
5. Appendices
Programming
1. Programming
2. Instructions
3. Interrupts
4. High-speed Counters
5. Positioning Control
6. Interrupts, High-speed
Counters, Positioning
Control
7. Serial Communication
8. Programming
Examples
INDEX
Installation
1. Configuration and
Specifications
2. System Installation
3. Access Window
4. KV-D20 Operator
Interface Panel
5. KV-10/80 Hardware
6. Handheld Program-
mer
7. KV-L2 Serial Interface
Module
8. KV-AN6 Analog I/O
Module
9. KV-AD4/DA4 Analog
I/O Unit
10. Troubleshooting
11. Appendices
V
i
s
u
a
l

K
V

S
e
r
i
e
s



2



S
u
p
p
o
r
t

S
o
f
t
w
a
r
e
User's Manual
Visual KV Series
2
Support software
1 2 3
Specifications are subject to change without notice.
KEYENCE CORPORATION
1-3-14, Higashi-Nakajima,
Higashi-Yodogawa-ku,
Osaka, 533-8555, Japan
PHONE: 81-6-6379-2211
FAX: 81-6-6379-2131
AFFILIATED COMPANIES
KEYENCE CORPORATION OF AMERICA
PHONE: 201-930-0100 FAX: 201-930-0099
KEYENCE DEUTSCHLAND GmbH
PHONE: 06102-36 89-0 FAX: 06102-36 89-100
KEYENCE (UK) LIMITED
PHONE: 01908-696900 FAX: 01908-696777
KEYENCE FRANCE S.A.
PHONE: 01 47 92 76 76 FAX: 01 47 92 76 77
KEYENCE SINGAPORE PTE LTD
PHONE: 392-1011 FAX: 392-5055
KEYENCE (MALAYSIA) SDN BHD
PHONE: 03-252-2211 FAX: 03-252-2131
KEYENCE (THAILAND) CO., LTD
PHONE: 02-369-2777 FAX: 02-369-2775
KEYENCE THAIWAN CO., LTD
PHONE: 02-2627-3100 FAX: 02-2798-8925
KEYENCE KOREA CORPORATION
PHONE: 02-563-1270 FAX: 02-563-1271

Вам также может понравиться