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

The text of a manual · part 1 of 9

User's Manual Visual KV Series 3 Programming, pages 1 to 10

Pages 1 to 10 of 79

The original document is the PDF (355 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Keyence KV-16R

Page 1

96M0366

INDEX

1

2

3

Installation

Support Software

Programming

2. System Installation 3. Access Window 4. KV-D20 Operator Interface Panel

1. Introduction

1. Programming

2. Editor

2. Instructions

3. Simulator

3. Interrupts

4. Monitor

4. High-speed Counters

5. Appendices

5. Positioning Control 6. Interrupts, High-speed Counters, Positioning Control

5. KV-10/80 Hardware 6. Handheld Programmer

7. Serial Communication

7. KV-L2 Serial Interface Module

8. Programming Examples

8. KV-AN6 Analog I/O Module 9. KV-AD4/DA4 Analog I/O Unit 10. Troubleshooting 11. Appendices

Specifications are subject to change without notice. AFFILIATED COMPANIES

KEYENCE CORPORATION 1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan PHONE: 81-6-6379-2211 FAX: 81-6-6379-2131

KEYENCE CORPORATION OF AMERICA PHONE: 201-930-0100 FAX: 201-930-0099

KEYENCE (MALAYSIA) SDN BHD PHONE: 03-252-2211 FAX: 03-252-2131

KEYENCE (UK) LIMITED PHONE: 01908-696900 FAX: 01908-696777

KEYENCE (THAILAND) CO., LTD. PHONE: 02-369-2777 FAX: 02-369-2775

KEYENCE DEUTSCHLAND GmbH PHONE: 0711-79 73 71-0 FAX: 0711-797 77 99

KEYENCE THAIWAN CO., LTD. PHONE: 02-2627-3100 FAX: 02-2798-8925

KEYENCE FRANCE S.A. PHONE: 01 47 92 76 76 FAX: 01 47 92 76 77

KEYENCE KOREA CORPORATION PHONE: 02-563-1270 FAX: 02-563-1271

KEYENCE SINGAPORE PTE LTD. PHONE: 392-1011 FAX: 392-5055 © KEYENCE CORPORATION, 1999 NKVP-UM-4-1000 Printed in Japan

User's Manual Visual KV Series 3 Programming

1. Configuration and Specifications

Visual KV Series

3

Programming

How this manual is organized: The Visual KV Series User’s Manual is composed of 3 separate manuals; 1-Installation, 2-Support Software, 3-Programming. Please read each manual relevant to your purpose.

Page 2

Safety Precautions This instruction manual describes the operation and function of the KV Series PLC. Read this manual carefully to ensure safe use and maximum performance from your KV Series PLC.

Symbols The following symbols alert you to important messages. Be sure to read these messages carefully. Failure to follow instructions may lead to injury. (electric

WARNING shock, burn, etc.)

CAUTION Note:

Failure to follow instructions may lead to product damage.

Provides additional information on proper operation.

Conventions This manual describes the operation/function of all Keyence KV Series PLC. Note following conventions when you use. Visual KV (Series) KV-10xx, 16xx, 24xx, 40xx

KV-10AR/AT/DR/DT KV-24AR/AT/DR/DT

KV-16AR/AT/DR/DT KV-40AR/AT/DR/DT

Conventional KV (Series) KV-300 (Series) KV-10/80 (Series)

KV-10R(W)/T(W) KV-24R(W)/T(W) KV-80R(W)/T(W) KV-300

KV-16R(W)/T(W) KV-40R(W)/T(W)

General Precautions •

At startup and during operation, be sure to monitor the functions and performance of the KV Sereis PLC.

•

We recommend that you take substantial safety measures to avoid any damage in the event a problem occurs.

•

Do not open or modify the KV Series PLC or use it in any way other than described in the specifications.

•

When the KV Series PLC is used in combination with other instruments, functions and performance may be degraded, depending on operating conditions and the surrounding environment.

•

Do not use the KV Series PLC for the purpose of protecting the human body.

Note: The built-in display may show the error message "Error 40" blinking the very first time you turn on the power supply to the Visual KV Series. Press any key around the display to cancel this message. The Visual KV Series shows this message when no program is loaded.

(1)

Page 3

Note to User When using the Visual KV Series in the following conditions or environments, be sure to use the Visual KV Series with sufficient margin regarding the rating and functions, take appropriate safety precautions such as fail-safe, and contact our sales personnel if any questions arise. •

Use in conditions or environments not described in this manual

•

Use for nuclear power control, railway facilities, air service facilities, vehicles, combustion devices, medical equipment, amusement machines, safety equipment, etc.

•

Use for applications where large effects are predicted to be given on human lives and properties and safety is especially requested.

Restriction on Acquiring the CE Marking ■ Restriction to be compatible with EMC directives • When using a relay output type unit (whose model name ends with "R"), connect spark killers having the appropriate withstand voltage against the load to the output terminals in parallel to contacts (because the unit discharges when a relay contact becomes open and noise is generated). In our experiments, we use the following models of spark killers. XEB0101 0.1 µF-10 Ω manufactured by OKAYA DENKI SANGYO The following 1-turn ferrite core is added to the AC power input circuit of the KV40AR/T, the KV-24AR/T and to the DC power input circuit of the KV-40DR/T. ZCAT3035-1330 manufactured by TDK Note: The contents above do not by themselves ensure that the entire machine manufactured in accordance with the above contents is compatible with EMC directives. You must judge by yourself whether or not the entire machine is compatible with EMC directives because compatibility may change depending on the component configuration, wiring and location inside of the machine. ■ Restriction on compatibility with low-voltage directives (IEC-1010-1) • Use insulated type crimp-style terminals. •

For wiring materials, use lead wires whose sheath is 0.4 mm or more.

•

The Visual KV Series is allowed to be installed in a vertical position only. (Spacers for expansion units are not available.)

•

Be sure to use the Visual KV Series inside the control panel.

(2)

Page 4

Features of the Visual KV Series ● Extremely small The Visual KV Series is the smallest in the world among AC type PLCs equipped with screw terminal blocks, and saves installation space. ● Extremely fast The minimum scan time is 140 µs and minimum instruction execution time is 0.7 µs, which is the fastest control in its class. ● AC power built-in type newly added AC power built-in type units are newly added. This type can be used in small spaces where a switching power supply unit cannot be installed. ● Excellent Access Window An Access Window with two-color backlight is adopted in all models to facilitate changing and monitoring of device data. Changing between RUN mode and PROGRAM mode, checking the error code when an error has occurred, etc. can be performed in a Visual KV Series unit without the need for any handheld programmer. The analog trimmer, which has been popular in the conventional KV Series, is digitized to enable more detail settings. [Digital trimmers] ● User message setting function In the Access Window, 256 different user messages can be displayed. This function can be used to give instructions on works on the production line, indicate abnormalities in the units, etc. ● Program write in RUN mode Ladder programs can be changed even while the system is running. ● Equipped with two serial ports Visual KV Series basic units are equipped with two serial ports to connect peripheral units, improving the debug environment. (The KV-10xx is equipped with only one serial port.) ● Easy Ramp-up/down control function The one-axis motor control function is offered separately from high-speed counters so that feedback control is enabled. ● Equipped with two 24-bit high-speed 30 kHz, two-phase counters The Visual KV Series is equipped with two high-speed counters each with a twopoint comparator output function that enables high-speed encoder input. ● Specified frequency pulse output function High-speed counters can function as pulse oscillators of 50 kHz maximum with easy setting, without creating a complicated ladder program. ● Frequency counter function High-speed counters can function as frequency counters with easy setting, without creating complicated ladder programs. ● Cam switch function High-speed counters can function as cam switches with easy setting, without creating complicated ladder programs.

(3)

Page 5

● Interrupt function The Visual KV Series is equipped with four high-speed interrupt inputs of 10 µs maximum. ● Input time constant change function The time constant can be set in 7 steps from 10 µs to 10 ms. ● Double memory backup functions In addition to a conventional SRAM battery backup function, the Visual KV Series is also equipped with an EEPROM backup function.

Compatibility with Conventional KV Series Peripheral Units The Visual KV Series functions as a high-end compatible model of the conventional KV Series. Peripheral units of the conventional KV Series such as the ladder support software "KV IncrediWare (DOS)" and "LADDER BUILDER for KV" and the handheld programmer KV-P3E(01) can be used since they are part of the Visual KV Series. However, it should be noted that the contents have changed as follows. •

The internal clock cycle of high-speed counters consists of three types: 1 µs, 10 µs, and 100 µs.

•

The time constant for an input relay specified by the HSP instruction is 10 µs.

•

The analog trimmer function is set with the Access Window built into the basic unit.

•

The available device setting range of the TMIN instruction is from 0 to 65535. [Handheld programmer KV-P3E(01) can display 0 to 9999 .]

•

The RUN/PROGRAM LED is displayed in the Access Window provided on the front face of the basic unit.

•

Transistor output is not independent, but is common.

•

With the transistor type, the output terminal layout is different.

•

The specifications for output current of transistor outputs Nos. 500 to 502 is 100 mA.

•

Conventional KV Series expansion units are not available as expansion units for the Visual KV Series.

•

The channel setting switch is not provided for expansion units. Channels are determined in connection order.

•

Scans in expansion I/O units are not synchronous with the scan time in Visual KV Series basic units.

•

Assignment of special utility relays has partially changed.

•

Data memory device Nos. DM1000 to DM1999 are assigned as special data memories.

(4)

Page 6

Cautions when using the previous version of ladder support software Pay strict attention to the following items when using the ladder support software. • •

CAUTION

When using the ladder support software "KV IncrediWare (DOS)" or "LADDER BUILDER for KV Ver. 1.0x", set the model to "KV-300". DM0 to DM1999 are only available.

When the ladder support software "LADDER BUILDER for KV Ver. 1.0x" is used, do not use the monitor’s Change All function. If the Change All function is used, the basic unit may be damaged. Never use the Change All function.

Peripheral units and other units incompatible with the Visual KV Series Peripheral units in the conventional KV Series and other units shown below are not compatible with the Visual KV Series. • •

Expansion I/O units for the conventional KV Series: KV-8ER/8ET/8EX/16EX/ 8EYR/8EYT/16EYR/16EYT Analog I/O units for the conventional KV Series: KV-AD4/DA4

Cautions when Using the Serial Port The KV-16xx/24xx/40xx units are equipped with two RJ-11 modular connectors for serial communication. When using them, pay strict attention to the following contents:

(5)

•

Programs can be transferred and monitored using either communication port A or B. However, never connect the ladder software and a handheld programmer to the two ports at the same time.

•

The KV-D20 operator interface panel can be connected to either communication port A or B. However, only one KV-D20 unit can be connected to a single basic unit.

•

Never leave both the KV-D20 operator interface panel and KV-P3E(01) handheld programmer on simultaneously for a long period of time.

Page 7

(6)

Page 8

How this manual is organized The Visual KV Series User’s Manual is composed of 3 separate manuals; 1-Installation, 2-Support Software, 3-Programming. Please read each manual relevant to your purpose.

1 Installation Chapter 1

Configuration and Specifications [Visual KV Series Only] Describes the system configuration of the Visual KV Series, the names and functions of each part, and the specifications.

Chapter 2

System Installation [Visual KV Series Only] Describes the installation and connection of each Visual KV Series unit as well as system maintenance.

Chapter 3

Access Window [Visual KV Series Only] Describes the Access Window used for changing and monitoring data.

Chapter 4

KV-D20 Operator Interface Panel [Visual KV Series Only] Describes the KV-D20 Operator Interface Panel used for changing, monitoring, and displaying the status of inside relays, timers, counters and data memories.

Chapter 5

KV-300, KV-10/80 Hardware [KV-300, KV-10/80 Series Only] Describes the hardware specifications and wirings for KV-300 and KV-10/80 Series.

Chapter 6

Handheld Programmer Describes how to use the handheld programmer and memory card.

Chapter 7

KV-L2 Serial Interface Module [KV-300 Series Only] Describes the serial interface modules for KV-300 Series.

Chapter 8

KV-AN6 Analog I/O Module [KV-300 Series Only] Describes the optional Analog I/O module for KV-300 Series

Chapter 9

KV-AD4/DA4 Analog I/O Unit [KV-10/80 Series Only] Describes the optional Analog I/O unit for KV-10/80 Series.

Chapter 10

Troubleshooting This chapter describes the error code list, countermeasures against problems, and error indications for each unit.

Appendices The appendix includes a list of ladder program applications and the index.

2 Support Software Chapter 1

Introduction Describes the items included in the package, the product outline, the method to connect a personal computer, the installation method, etc.

(7)

Page 9

Chapter 2

Editor Describes the operating procedures in Editor mode.

Chapter 3

Simulator Describes the operating procedures in Simulator mode.

Chapter 4

Monitor Describes the operating procedures in Monitor mode.

Appendices Includes instructions list, devices list, sample program list and quick reference for key operation and shortcuts.

3 Programming Chapter 1

Programming Describes basic knowledge including program creation procedures, device configuration, relay assignments, special functions to set and confirm Visual KV Series operations, as well as the extended ladder diagrams. Understand the contents described here completely at first before creating programs.

Chapter 2

Instructions Describes the concrete usage of instructions in the KV Series. Refer to "Chapter 3 Interrupts" on page 3-183 for details of interrupt instructions. Refer to "Chapter 4 High-speed counters" on page 3-195 for details of the high-speed counters used in the application instruction.

Chapter 3

Interrupts [Visual KV Series Only] The interrupt processing function executes an interrupt program when an external input or request from the high-speed counter comparator (interrupt factor) is encountered during KV operation. This chapter describes the types of interrupt factors as well as inputs and outputs encountered during interrupt processing.

Chapter 4

High-speed Counters [Visual KV Series Only] Describes high-speed counters and high-speed counter comparators, which allow highspeed pulse measurement and pulse output, independent of the scan time.

Chapter 5

Positioning Control [Visual KV Series Only] Describes ramp-up/down control of stepping motors and servo motors.

Chapter 6

Interrupts, High-speed Counters, Positioning Control [KV-300, KV-10/80 Series Only] Describes ramp-up/down control of stepping motors and servo motors.

Chapter 7

Serial Communication The KV Series can be connected to an external device with an RS-232C interface to establish communication. This chapter describes communications specifications, how to connect the KV Series to external devices, and how to perform communication.

Chapter 8

Programming Examples Describes the typical programming examples for KV-10/80 Series. These programs can be used for Visual KV Series. However, pay attention to the I/O addressing compatibility before use.

(8)

Page 10

Contents 3

Programming

Chapter 1

Programming 1.1 Before Creating Programs .............................................................................. 3-2 1.1.1 Flow from Introduction to Operation ................................................................... 3-2 1.1.2 Scan Time ........................................................................................................... 3-3 Scan time ..................................................................................................... 3-3 Input response time delay ............................................................................ 3-3 1.2 User Memory .................................................................................................... 3-4 1.2.1 Program Capacity ............................................................................................... 3-4 Maximum number of lines in a program ....................................................... 3-4 Calculating the byte count used ................................................................... 3-4 1.3 Device Configuration ....................................................................................... 3-5 1.3.1 Device List .......................................................................................................... 3-5 Relay list ...................................................................................................... 3-5 List of I/O relays in basic units ..................................................................... 3-5 List of relays in expansion units ................................................................... 3-6 1.3.2 Relay No. ............................................................................................................ 3-7 Address No. ................................................................................................. 3-7 Contact No. .................................................................................................. 3-8 Channel No. ................................................................................................. 3-8 1.3.3 Assigning Relay Nos. .......................................................................................... 3-8 1.3.4 Input Relays ........................................................................................................ 3-9 Basic unit ..................................................................................................... 3-9 Expansion unit ........................................................................................... 3-10 1.3.5 Output Relays ................................................................................................... 3-10 Output operation time ................................................................................ 3-10 1.3.6 Internal Utility Relays ........................................................................................ 3-11 Retentive function of internal utility relays .................................................. 3-11 1.3.7 Special Utility Relays ........................................................................................ 3-12 Description ................................................................................................. 3-12 1.3.8 Special Utility Relay List ................................................................................... 3-14 Special relays and arithmetic operation flags ............................................ 3-14 Special utility relays for high-speed counter(0) .......................................... 3-14 Special utility relays for high-speed counter(1) .......................................... 3-15 Other special utility relays .......................................................................... 3-15 1.3.9 Timers and Counters ........................................................................................ 3-18 Timer/Counter list ....................................................................................... 3-18 Description ................................................................................................. 3-18 1.3.10 Data Memories ................................................................................................. 3-19 1.3.11 Temporary Data Memory .................................................................................. 3-21 1.3.12 Relay Nos. and Functions ................................................................................. 3-22 1.4 Special Functions .......................................................................................... 3-23 1.4.1 Input Time Constant Change Function ............................................................. 3-23 Setting the input time constant for basic units using special utility relays .. 3-23 1.4.2 Modifying the Input Relay Time Constant ......................................................... 3-24 Modification within the CPU ....................................................................... 3-24 1.4.3 Constant Scan Time Mode ............................................................................... 3-25 1.4.4 Output Disabled Function ................................................................................. 3-26 1.4.5 Input Refresh Disabled Function ...................................................................... 3-26 1.4.6 Contact Comment Save Function ..................................................................... 3-27 1.4.7 Special Functions ............................................................................................. 3-28 Constant Scan Time Mode ........................................................................ 3-28 Output Disabled Function .......................................................................... 3-28 Input Refresh Disabled Function ................................................................ 3-28 1.5 1.5.1 1.5.2 1.5.3

(9)

Extended Ladder Diagrams .......................................................................... 3-29 Features of Extended Ladder Diagrams ........................................................... 3-29 Advantages of Extended Ladder Diagrams ...................................................... 3-30 Example of an Extended Ladder Diagram ........................................................ 3-31