The text of a manual ยท part 3 of 9
User's Manual Visual KV Series 3 Programming, pages 16 to 20
Pages 16 to 20 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 16
4.2.2 Connection with the KV Series ....................................................................... 1-108 Connection ...............................................................................................1-108 Precautions .............................................................................................. 1-108 4.2.3 Overview of the KV-D20 ................................................................................. 1-109 Switching the display mode ..................................................................... 1-109 Overview of each display mode ............................................................... 1-110 Assignment of relays/DM ......................................................................... 1-111 Other functions .........................................................................................1-112 Precautions about screen change function .............................................. 1-115 4.2.4 Operator Mode ................................................................................................1-117 Screen selection in operator mode .......................................................... 1-117 Operator screen ....................................................................................... 1-118 Direct access screen ................................................................................ 1-126 KV-I/O monitor screen ............................................................................. 1-127 Switch comment screen ........................................................................... 1-128 Lamp comment screen ............................................................................ 1-128 Screen change permission in operator mode .......................................... 1-129 4.2.5 Device Mode ................................................................................................... 1-130 Device mode ............................................................................................ 1-130 Operation example for device mode ........................................................ 1-132 4.2.6 System Mode .................................................................................................. 1-134 System mode ........................................................................................... 1-134 4.3 Examples of Ladder Programs ................................................................... 1-135 4.3.1 Basic Ladder Programs .................................................................................. 1-135 Before creating ladder programs ............................................................. 1-135 Basic ladder programs ............................................................................. 1-136 4.3.2 Examples of Ladder Programs ....................................................................... 1-143 Example of displaying user messages ..................................................... 1-143 Example of displaying messages with titles ............................................. 1-145 Example of position control ...................................................................... 1-146 Example of frequency counter ................................................................. 1-149 Example of 24-bit high-speed counter ..................................................... 1-152 Example of cam switch function ............................................................... 1-154 4.4 4.4.1 4.4.2 4.4.3
Chapter 5
Appendix ....................................................................................................... 1-158 Troubleshooting .............................................................................................. 1-158 Available Character List .................................................................................. 1-162 Comment Draft Sheet ..................................................................................... 1-163
KV-300, KV-10/80 Hardware
KV-300, KV-10/80
5.1 System Configuration .................................................................................. 1-166 5.1.1 KV-300 ............................................................................................................1-166 5.1.2 KV-10/80 ......................................................................................................... 1-167 5.2 Module/Unit Specifications ......................................................................... 1-168 5.2.1 Wiring: KV-U4 Power Supply Module ............................................................. 1-168 Parts and functions .................................................................................. 1-168 5.2.2 Wiring: KV-U5 DC Power Distribution Module ................................................ 1-169 Parts and functions .................................................................................. 1-169 5.2.3 Wiring: KV-300 CPU ....................................................................................... 1-170 Parts and functions .................................................................................. 1-170 5.2.4 Wiring: KV-C16X/C32X Connector Input Module ........................................... 1-171 Parts and functions .................................................................................. 1-171 5.2.5 Wiring: KV-C32T/B16R/B16S Connector Output Module ............................... 1-172 Parts and functions .................................................................................. 1-172 5.2.6 Wiring: KV-R1A I/O Distribution Module ......................................................... 1-173 Parts and functions .................................................................................. 1-173 5.2.7 Wiring: KV-R8X/R16X/R8R/R16R/R8T/R16T I/O Terminal Modules ............. 1-174 Parts and functions .................................................................................. 1-174 5.2.8 Module Names and Functions ........................................................................ 1-175 5.2.9 Peripheral Equipment Names and Functions ................................................. 1-176 5.3 5.3.1 5.3.2 5.3.3
Module/Unit Connections ............................................................................ 1-178 Environmental Requirements ......................................................................... 1-178 Installation Guidelines ..................................................................................... 1-178 Assembling the System .................................................................................. 1-179 Connecting modules ................................................................................ 1-179 5.3.4 Mounting to the DIN Rail ................................................................................. 1-180 5.3.5 Removing the Terminal Block ......................................................................... 1-181
(15)
Page 17
5.3.6 Connecting the AC Power Supply Module and DC Power Distribution Module .... 1-182 KV-U4 AC Power Supply Module ............................................................ 1-182 KV-U5 DC Power Distribution Module ..................................................... 1-182 5.3.7 I/O Connectors ................................................................................................ 1-183 KV-300 CPU ............................................................................................ 1-183 KV-C16X/C32X ........................................................................................ 1-184 KV-C32T/B16R/B16S .............................................................................. 1-185 KV-R8X/R16X/R8R/R16R/R8T/R16T ...................................................... 1-186 5.3.8 I/O Terminal Modules: Communication Cables and Power Distribution ......... 1-187 Transmission distance by cable type ....................................................... 1-187 Connection patterns ................................................................................. 1-187 Incorrect wiring patterns ........................................................................... 1-188 Power distribution .................................................................................... 1-188 5.3.9 Connector Assembly Instructions ................................................................... 1-189 5.3.10 KV-300 CPU I/O Indicators ............................................................................. 1-191 5.3.11 KV-10/80 Expansion Units .............................................................................. 1-192 5.3.12 Mounting Environment .................................................................................... 1-194
Chapter 6
Handheld Programmer 6.1 Using the Handheld Programmer ............................................................... 1-196 6.1.1 Outline of the Handheld Programmer ............................................................. 1-196 6.1.2 Precautions ..................................................................................................... 1-198 6.2 Basic Operations ......................................................................................... 1-200 6.2.1 Basic Programming Operation ........................................................................ 1-200 6.3
Functions ...................................................................................................... 1-216 Function Nos. list ..................................................................................... 1-216 ALL CLEAR .............................................................................................. 1-217 HANDHELD PROGRAMMER CLEAR ..................................................... 1-217 COUNTER CLEAR .................................................................................. 1-218 HIGH-SPEED COUNTER CLEAR ........................................................... 1-218 ALL DATA MEMORY CLEAR .................................................................. 1-219 ALL LATCHING RELAYS RESET ........................................................... 1-219 PROGRAM SENT OR RECEIVED .......................................................... 1-220 OFFLINE EDITOR START ...................................................................... 1-221 OFFLINE EDITOR STOP ........................................................................ 1-221 TIMER/COUNTER CURRENT VALUE CHANGE ................................... 1-222 TIMER/COUNTER SETTING CHANGE .................................................. 1-224 RELAY ON/OFF ....................................................................................... 1-226 WRITE INTO DATA MEMORY ................................................................ 1-227 READ TRIMMER SETTING ..................................................................... 1-228 SYNTAX CHECK ..................................................................................... 1-228 PROGRAM CAPACITY CHECK .............................................................. 1-229
6.4 Memory Card ................................................................................................ 1-230 6.4.1 Functions [used with KV-P3E(01)] .................................................................. 1-230 6.4.2 Storage Capacity ............................................................................................ 1-230 CLEAR ..................................................................................................... 1-232 NEW ......................................................................................................... 1-233 ACCS ....................................................................................................... 1-234 ACCS: SAVE ........................................................................................... 1-235 ACCS: LOAD ........................................................................................... 1-236 ACCS: VERIFY ........................................................................................ 1-236 ACCS: DELETE ....................................................................................... 1-237
Chapter 7
KV-L2 Serial Interface Module
KV-300
7.1 Outline ......................................................................................................... 1-240 7.1.1 Features .......................................................................................................... 1-240 7.2 7.2.1 7.2.2 7.2.3
Configuration ............................................................................................... 1-241 Parts and Functions ........................................................................................ 1-241 System Configuration ..................................................................................... 1-242 Outline of Operation Modes ............................................................................ 1-244
7.3 7.3.1 7.3.2 7.3.3
Installation .................................................................................................... 1-245 Setting the Operation Mode ............................................................................ 1-245 Communications Protocols ............................................................................. 1-247 Connector Wiring ............................................................................................ 1-248
(16)
Page 18
7.3.4 Connecting to External Units .......................................................................... 1-249 Connecting to An External Display .......................................................... 1-249 Connecting to an IBM PC-AT Computer .................................................. 1-249 Connecting to the KV-10/16/24/40/80 ...................................................... 1-250 Connecting KV-L2s .................................................................................. 1-250 7.4 Software Setup ............................................................................................. 1-252 7.4.1 Using KV Software [KV IncrediWare (DOS)] .................................................. 1-252 Starting KV IncrediWare (DOS) from the KV-L2 ........................................................ 1-252 7.5 KV Mode Programming ............................................................................... 1-253 7.5.1 Operating in KV Mode .................................................................................... 1-253 Communications protocol ........................................................................ 1-253 7.5.2 Serial Communications Procedure ................................................................. 1-255 Command transmission procedure .......................................................... 1-255 Command/response format ..................................................................... 1-256 Communications commands and responses ........................................... 1-256 Communications commands .................................................................... 1-257 7.5.3 Transmission and Reception of Text Data ...................................................... 1-262 Assigning relay nos. and data memory address nos. .............................. 1-262 Transmitting Text Data ............................................................................. 1-264 Receiving text data .................................................................................. 1-265 ASCII code/binary conversion function .................................................... 1-266 Example program ..................................................................................... 1-269 7.6 Display Interface Mode Programming ....................................................... 1-270 7.6.1 Operating in Display Interface Mode .............................................................. 1-270 Communications protocols ....................................................................... 1-270 Communications control procedure ......................................................... 1-271 7.6.2 Command and Response Format ................................................................... 1-273 7.6.3 Commands and Responses ........................................................................... 1-275 List of commands and responses ............................................................ 1-275 Description of commands and responses ................................................ 1-277 End codes ................................................................................................1-291 7.7 Non-procedure Mode Programming .......................................................... 1-292 7.7.1 Operating in Non-procedure Mode ................................................................. 1-292 Communications protocol ........................................................................ 1-292 Connecting to the KV-L2 .......................................................................... 1-293 7.7.2 Assignment of Relay Nos. and Data Memory Address Nos. .......................... 1-294 Assigning relay nos. and data memory address nos. .............................. 1-294 7.7.3 Transmitting Text Data ................................................................................... 1-297 Data transmission and internal data memory addresses ......................... 1-297 7.7.4 Receiving Text Data ....................................................................................... 1-298 Format of received data and data memory addresses ............................ 1-298 7.7.5 ASCII code/Binary Conversion Function ........................................................ 1-300 7.8 Troubleshooting Guide ............................................................................... 1-304 7.8.1 Troubleshooting .............................................................................................. 1-304 7.8.2 Precautions .....................................................................................................1-305 7.9 Specifications ...............................................................................................1-306 7.9.1 Specifications .................................................................................................. 1-306 General specifications .............................................................................. 1-306 Communications protocol ........................................................................ 1-306 RS-232C connector specifications ........................................................... 1-306 RS-422A terminal block specifications ..................................................... 1-306 7.9.2 Dimensions .....................................................................................................1-307 7.10 Command List .............................................................................................. 1-308 7.10.1 List of Commands and Responses ................................................................. 1-308 7.10.2 List of Commands and Responses in Display Interface mode ....................... 1-309
Chapter 8
KV-AN6 Analog I/O Module 8.1
KV-300
Outline ......................................................................................................... 1-312 Features ................................................................................................... 1-312
8.2 Configuration ...............................................................................................1-313 8.2.1 Parts and Functions ........................................................................................ 1-313 8.2.2 System Configuration ..................................................................................... 1-314 8.3 Installation .................................................................................................... 1-315 8.3.1 Terminal Nos. ................................................................................................. 1-315
(17)
Page 19
8.3.2 8.3.3 8.3.4 8.3.5
Removing the Terminal Block ......................................................................... 1-316 Example of Voltage I/O Wiring ........................................................................ 1-317 Example of Current I/O Wiring ........................................................................ 1-318 Setting I/O Ranges ......................................................................................... 1-319
8.4 8.4.1 8.4.2 8.4.3 8.4.4 8.4.5 8.4.6 8.4.7 8.4.8 8.4.9
Programming ................................................................................................ 1-320 Input Characteristics (A/D) .............................................................................. 1-320 Calculating Input Data (A/D) ........................................................................... 1-321 Output Characteristics (D/A) ........................................................................... 1-322 Calculating Output Data (D/A) ........................................................................ 1-323 Assigning Data Memory (DM) Addresses ....................................................... 1-324 Reading Analog Input ..................................................................................... 1-325 Measuring Analog Input Average ................................................................... 1-326 Writing Analog Output ..................................................................................... 1-327 Converting Analog Input to Analog Output ..................................................... 1-328
8.5 8.5.1 8.5.2 8.5.3
KV-AN6 Appendices .................................................................................... 1-329 Troubleshooting .............................................................................................. 1-329 Precautions ..................................................................................................... 1-330 Specifications .................................................................................................. 1-331 Environmental specifications ................................................................... 1-331 System specifications .............................................................................. 1-331 8.5.4 Dimensions ..................................................................................................... 1-332
Chapter 9
KV-AD4/DA4 Analog I/O Unit 9.1
KV-10/80
Outline ......................................................................................................... 1-334 Features ................................................................................................... 1-334
9.2 Configuration ............................................................................................... 1-335 9.2.1 Part Names and Functions ............................................................................. 1-335 KV-AD4 .................................................................................................... 1-335 KV-DA4 .................................................................................................... 1-336 9.2.2 Specifications .................................................................................................. 1-337 KV-AD4 .................................................................................................... 1-337 KV-DA4 .................................................................................................... 1-339 9.2.3 System Configuration ..................................................................................... 1-341 9.3 9.3.1 9.3.2 9.3.3
Installation .................................................................................................... 1-342 Installation Procedure ..................................................................................... 1-342 Checking the Installation Environment ........................................................... 1-343 Setting the KV-AD4 Input Mode ...................................................................... 1-344 Setting the input mode ............................................................................. 1-344 9.3.4 Connecting External Instruments .................................................................... 1-345 Wiring ....................................................................................................... 1-345 Wiring diagrams ....................................................................................... 1-346 9.3.5 Connecting to the KV-10 to 80 ........................................................................ 1-348 9.3.6 Maintenance ................................................................................................... 1-349 Inspection and Cleaning .......................................................................... 1-349 9.4 Programming ................................................................................................ 1-350 9.4.1 Programming the KV-AD4 .............................................................................. 1-350 A/D Conversion Mechanism .................................................................... 1-350 About Digital Data after A/D Conversion .................................................. 1-351 Calculating Voltage and Current Values from Digital Data ...................... 1-352 9.4.2 Programming the KV-DA4 .............................................................................. 1-353 D/A Conversion Mechanism .................................................................... 1-353 Converting Digital Data to Voltage or Current Values to be Output ......... 1-354 Writing Digital Data to Data Memory for D/A Conversion ........................ 1-356 9.4.3 A/D and D/A Conversion Tables ..................................................................... 1-357 Voltage Conversion Table ........................................................................ 1-357 Current Conversion Table ........................................................................ 1-358 9.5
Programming Examples .............................................................................. 1-359 Calculating Analog Data Values from Digital Data ................................... 1-359 Writing Data to be Analog-output ............................................................. 1-361 Outputting Analog Trimmer Values .......................................................... 1-364 Outputting Analog Input Data ................................................................... 1-365 Outputting Analog Input from a Pressure Sensor to an Air Valve ............ 1-366 Setting the Minimum and Maximum Voltage Limits and Measuring the Average Voltage ...................................................................................... 1-367
9.6
Troubleshooting ........................................................................................... 1-370
(18)
Page 20
Chapter 10
Troubleshooting 10.1 Error List ....................................................................................................... 1-372 10.1.1 List of Error Codes in Basic Units ................................................................... 1-372 10.1.2 Error indication in Expansion Units ................................................................. 1-374 10.1.3 Program Errors ...............................................................................................1-375 10.1.4 Memory Card Errors and Other Errors ........................................................... 1-376 10.2
Replacing Relays .........................................................................................1-377 Replacement procedure ........................................................................... 1-377
10.3 Troubleshooting ........................................................................................... 1-378 10.3.1 Troubleshooting List ....................................................................................... 1-378 10.4
Error Messages ............................................................................................ 1-380
Appendices Appendix A. Specifications and Dimensions [Visual KV Series] .................... 1-382 A.1 System Specifications [Visual KV Series] ....................................................... 1-382 Hardware ................................................................................................. 1-382 Software and Programming ..................................................................... 1-383 AC power supply unit ............................................................................... 1-384 A.2 Common I/O Specifications of Basic Units ..................................................... 1-384 Input specifications .................................................................................. 1-384 Output specifications (relay output): KV-10AR/DR, KV-16AR/DR, KV-24AR/DR, and KV-40AR/DR .............................................................. 1-385 Output specifications (transistor output): KV-10AT(P)/DT(P), KV-16AT(P)/DT(P), KV-24AT(P)/DT(P), and KV-40AT(P)/DT(P) ............ 1-385 A.3 Expansion Unit Specifications ........................................................................ 1-385 A.4 Dimensions .....................................................................................................1-389 Appendix B. Specifications and Dimensions [KV-300 Series] ......................... 1-392 B.1 System Specifications [KV-300 Series] .......................................................... 1-392 Hardware ................................................................................................. 1-392 Software and Programming ..................................................................... 1-393 AC Power supply module/DC power distribution module ........................ 1-394 B.2 Module Specifications ..................................................................................... 1-398 KV-300 CPU ............................................................................................ 1-398 KV-C16X/C32X Input Modules ................................................................ 1-399 KV-C32T/B16R/B16S Output Modules ................................................... 1-400 KV-R8X/R16X I/O Terminal Modules ....................................................... 1-401 KV-R8T/R16T/R8R/R16R I/O Terminal Modules ..................................... 1-402 KV-R8T/R16T/R8R/R16R I/O Terminal Modules (RUN Output) .............. 1-403 KV-R1A I/O Distribution Module .............................................................. 1-403 B.3 Dimensions .....................................................................................................1-404 Appendix C.
Ladder Program List ...................................................................... 1-406
Appendix D. A/D and D/A Conversion Tables [KV-AN6] ..................................... 1-408 Voltage conversion table .......................................................................... 1-408 Current conversion table .......................................................................... 1-409
WARRANTIES AND DISCLAIMERS
2
1-419
Support software
Chapter 1
Introduction 1.1
Items Included in the Package ........................................................................ 2-2
1.2 Outline of the Ladder Builder for KV .............................................................. 2-3 1.2.1 Operating environment and system configuration .............................................. 2-3 1.2.2 Features and functions of the Ladder Builder for KV .......................................... 2-4 Features of the Ladder Builder for KV ......................................................... 2-4 Functions of the Ladder Builder for KV ........................................................ 2-6 1.3
Before Programming ....................................................................................... 2-7 Machines to be prepared ............................................................................. 2-7 1.3.1 Differences from the KV IncrediWare (DOS) ...................................................... 2-8 1.3.2 Differences from the Ladder Builder for KV Ver 1.0 ........................................... 2-8 1.4
(19)
Installing the Software ..................................................................................... 2-9