Home
Programming - PLC Products Group
Contents
1. Indicates end of entire program Note 14 0 3 0 x n to 17 0 3 0 x n n represents number of times the original data is generated 3 44 Chapter2 Instructions 2 2 Instruction List ASALECESAS AE 2 2 2 Application Instructions KV 10 16 24 40 80 Instruction Mnemonic Operand KV 10 16 24 40 80 Operand value KV 10 16 Operand value KV 24 40 80 Exec time us Function WAIT ON W ON WAIT OFF W OFF nnnn WAIT UP W UE R T or C No W D nnnn 0000 to 2915 T000 to T063 C000 to C063 CTCO to CTC3 mmmm 1000 to 1915 nnnn 0000 to 6915 T000 to T119 C000 to C119 CTCO to CTC3 mmmm 1000 to 1915 3000 to 6915 11 0to 13 0 Turns ON R 2nd operand mmmm when R T or C 1st operand nnnn turns ON 11 0 to 13 0 When R T or C 1st operand nnnn tums OFF R 2nd operand mmmm turns ON 14 0 to 18 0 R 2nd operand mmmm turns ON at rising edge of R T or C 1st operand nnnn 14 0 to 18 0 R 2nd operand mmmm turns ON at falling edge of R T or C 1st operand nnnn CONNECT CON FNC 06 MPS MRD MPP 0 4 to 0 6 Represents series connection of output instruction together with another instruction 11 0 to 14 0 Stores input status and arithmetic flag 8 0 to 10 0 Reads input status and arithmetic fla
2. ssse 1 45 KV E4R 4 1 0 expansion output unit relay output type 1 45 KV E4T 4 1 0 expansion output unit transistor output type 1 46 KV E8R 8 I O expansion output unit relay output type 1 47 KV E8T P 8 I O expansion output unit transistor output type 1 48 KV E16R 16 1 0 expansion output unit relay output type 1 49 KV E16T P 16 1 0 expansion input unit transistor output 1 50 1 9 4 JDIM NSIONS tenete oc eee i ed does 1 51 1 10 KV EAXR EAXT P Expansion I O Unit eseeem 1 52 1 10 1 Part Names and Functions esssssesseeeneeeenm enne 1 52 1210 2 Input SpecificatlOns 5 irre attt Been en edel edi 1 53 1 10 3 Output Specifications 3 2 9 ucciso tie ectetuer 1 53 KV EAXR Relay output type eeeee em 1 53 KV E4XT P Transistor output type eeem 1 53 1 10 4 Terminal Layout Drawings and Input Circuit Diagrams ss 1 54 KV EAXR Relay output type seem em 1 54 KV E4XT P Transistor output type eeemA 1 56 1 10 5 Dimensions ia cn a n de gite cite 1 58 1 11 KV D20 Operator Interface Panel ssse 1 59 1 11 1 Part Names and Functions iii te ecd dde cues 1 59 1 11 2 General Specifications
3. esse 2 46 2 5 1 Editing comments labels oooconnccnnoncconononcnoncnnnnonnnnnarn no narn cnn nnr cnn nan emen 2 46 2 5 2 OS 2 50 2 5 3 Changing ladder lines into comments sesseeeenm 2 51 2 6 Edit and Arrangement sssssseeeemeemmeen 2 52 2 6 1 Copy move and delete sssssssssssssssses esee ener 2 52 2 6 2 Inserting and deleting lines sn e 2 57 2 7 Jump Search and Replace 17 41 sene 2 58 BRA JUMP m 2 58 2 7 2 Searching for instruction words operands ssseeeeee 2 62 2 7 3 Searching for the device at the cursor position sseseessss 2 63 2 7 4 Replacing operands urticaria teres 2 64 2 7 5 Converting a b contacts uite ioci e eie I aet pl ce onte 2 65 2 8 Editing the Mnemonic List 2 67 2 8 1 Displaying and terminating a mnemonic list seeeeeeee 2 67 2 8 2 Copy move and delete sssssssssssssssseseeeeeeenen eene 2 69 2 9 Displaying the Use Status sessssseeeeeeeeee ene 2 70 2 9 1 Displaying a use status list sseeem 2 70 240 Setting the System iii cars 2 71 2 10 1 Setting tlie system i t eigene E ad 2 71 2 11 Entering and Developing Macros e 2 72 2 11 1 Creating macro File ccoo tenter LR do Reg vss 2 72 2 11 2 Entering and de
4. sssessseemme 2 26 2 1 1 Cautions for editing ladder programs sseeeeeenm 2 26 2 2 Edit Screen ioo iubet ae feit uu id 2 27 2 2 1 Name and function of each part of the screen sesseeeeene 2 27 2 2 2 Ladder program window screen seen 2 28 2 3 File Management ooocccccccccococcccnccononocononononnnccnnnnnnnnnnnnnnnnnn nn cnn nc nan nn cnn tnnt 2 29 2 3 1 Creating a new filesinin oe nnne nnne 2 29 2 3 2 Setting the automatic file read function 2 30 2 3 3 Setting automatic file save for the file seenee 2 31 2 3 4 Saving and reading files sese 2 32 2 3 5 Reading and saving a file in another format seeeeeeee 2 33 2 3 6 Saving a ladder diagram in text format ssssseeeeee 2 36 2 39 7 Verifying fles uie nde rece Dr ee ile 2 36 2 4 Entering Deleting Symbols and Connection Lines 2 37 2 4 1 Entering sSymbols iet hence ete e etas 2 37 2 42 Deleting SYMPAS r 2 i eios RO UP Le eae 2 42 2 4 8 Entering contacts coils directly sen 2 42 2 4 4 Changing the device at the current cursor position eseesss 2 43 2 4 5 Entering Deleting connection lines ee 2 44 2 4 6 Canceling edit operations ssssseeeeeeeeenenneen nens 2 45 2 5 Entering Comments Labels
5. n Hardware based comparator 16 BIT Comparator n 23 between preset amp current COUNTER ddddd No COMPARA eeE ddddd ema CTH1 This comparator is TOR preset turned ON when these value values are equal values of high speed counter 2 310 3 5 SUBROUTINE nn Subroutine Executes subroutine 5 4 to 6 5 CALL CALLE No 001099 specified by operand Represents beginning of 00 to 99 subroutine specified by operand SUBROUTINE Represents end of RETURN subroutine SUBROUTINE Subroutine ENTRY No 00000 to Executes program constant 65535 REPEAT DM No DMO000 to between FOR amp NEXT iad for number of times TMxx DM1999 HA TMO0 to TM29 SPecified by operand Represents end of REPEAT END repetition nnnn nnnn Reads 16 key data by 16 KEY INPUT Input R 0000 to 415 time sharing and outputs iS mmmm mmmm these data into special Output R 0500 to 915 utility Rs 2900 to 2915 Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each instruction All operand values are shown in normal notation The corresponding relay numbers in X Y M notation are shown below Normal notation X Y M notation 0000 to 0415 X000 to X04F 0500 to 0915 Y050 to YO9F 1000 to 6915 M1000 to M6915 7000 to 17915 X700 to X174F or Y750 to Y179F Chapter 2 Instr
6. seseeees 2 168 D 3 Special utility relays for high speed counter 1 2 169 D 4 Other special utility relays seeseseseeeeeneenneenenenenennn 2 169 D 5 Memory SWItChes s ior ett eee itr cde cene rect dape 2 172 D 6 Special memory list nennen nnne tne 2 172 Appendix E Devices for KV 10R W T W to 80R W T W KV 300 2 174 ET Specialutility relays ici a cette decente raid 2 174 E 2 Memory Switches civic beet cee et tations e dto 2 176 E 3 Special memory list uiii ce eee siete 2 176 Appendix F Sample Program List sessssee 2 178 F 1 Description of sample ladder programs se 2 178 Appendix G Quick Reference oooooiocconccnncccnocccoccconccnonccnoncnancnnnnccanccnnn cnn cnnnnnnnns 2 180 GA Edic A RR Decus 2 180 6 27 Simulatof 2 2 30 4 5 eneniotteb eee sehe ob og emet iie bias 2 188 3 Monitora ascen eene cido on ui t e LL 2 195 Appendix H Notes for Programming eee 2 201 H 1 Circuits that must be modified sessseeeeeeneenenn 2 201 H 2 Precautions for programming seem 2 202 H 3 Programs which cannot be decompiled ooooooconnnccnnoncccnnoccnnnncncnnoncncnnannananono 2 203 Appendix I List of Files Used nne aeter etae 2 204 Appendix J Countermeasures for Frequent Communication Errors 2 205 WARRANTIES AND DISCLAIMERS 2 215 22 W
7. sessssssseseeeseeeee nnne 1 60 1 11 3 Functional Specifications ssssssssseseeeeeeeeennenee nennen 1 60 1 11 4 Dimensions eee di ada hades 1 61 Chapter2 System Installation 2 1 Installation Environment ssseee mee 1 64 2 1 1 Installation Environment esseseeeene emere 1 64 2 1 27 Installation Position cct tte ene rtp cett cr Per dt obio 1 65 2 1 3 Installation Procedure eese nnns 1 66 Expansion Unit Spacer cote ga ta 1 66 2 1 4 Cautions on Wiring for Each Unit 1 67 Wiring procedures for basic units see 1 67 Cautions on wiring for I O units eeeneeens 1 68 Terminala Aa hee tete Dee toc dieses 1 68 Cautions ON groundilg e roe IU ER 1 69 2 1 57 Contact Protection ien eee de et p dentes 1 69 2 2 Connecting Visual KV Series Expansion Units ssssss 1 70 2 2 1 Visual KV Series Expansion Units esssseeenen 1 70 2 2 2 Connecting Visual KV Series Expansion Units eese 1 71 Connection methods cienia ae enne nenne i Number of connectable units 2 2 3 Confirming the Connection Settings of Expansion Units 1 74 Expansion unit relay list oooooncccnnnnicononcconnncncnanancnnorn conan no em 1 74 Connection information for expansion units eseeeeeeeeee 1 75 Input time con
8. sseseeennen 2 108 SA Monitor All mde ie me uti nee ied De GR 2 109 3 41 Qutline of monitor all 2 eret deut 2 109 3 4 2 Displaying saving and reading the monitor all window 2 109 3 4 8 Monitor all window sipain aeiae irapa a pa arana E aa emere 2 113 3 4 4 Registering devices shinni esentia i di 2 113 3 4 5 Selecting and changing devices coooccinccconccnoniconccnonnconcnnnnncnnna nano n nn cnn cnnnnnnnnr 2 116 3 5 Registration Monitor sssse eee 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 8 Registration monitor window eesseeeeeene mee 2 122 3 5 4 Registering devices viiese viviana inia enne nter nnne 2 122 3 5 5 Selecting and changing devices sesseeeeene 2 123 3 5 6 Manipulating timing charts sseeen ee 2 128 3 5 7 Printing out the registration monitor eee 2 131 Monitor 4 1 Outline of the Monitor Functions 2 0 0 0 eee seme 2 134 4 1 1 Outline of the functions sseseessseeeeeeeeenennreneeenneen nennen 2 134 4 1 2 Restrictions in the monitor vnesie okai ra andaa an a r 2 134 4 1 3 Precautions for communication oooomoccconccnnnncccnnnoncnnnnnnnnann non nrn nn naar cnn narran rn 2 135 4 2 Communicating with the PLC ssessses
9. eene 3 217 4 4 Extended Functions of High speed Counters ssusssss 3 221 4 4 1 24 bit High speed Counter eene 3 221 4 4 2 Changing the Current Value of a 24 bit High speed Counter 3 223 4 4 3 Application Example of 24 bit High speed Counter single phase input 3 224 4 4 4 Ring Counter Function nnne nnne 3 225 4 4 5 Applications of Ring Counters sss 3 226 4 5 Special Functions Using High speed Counters 3 228 4 5 1 Specified Frequency Pulse Output Function ooococonoocccnnoccncnoccnnononononnnnnnannnnnns 3 228 4 5 2 Applications of the Specified Frequency Pulse Output sssss 3 229 4 5 3 Frequency Counter Function ooccncconnnccccccconnconcnononcnnnnnnnc conc cnn cnn nc ronca nnnc cnc 3 231 4 5 4 Applications of Frequency Counters eccceeceeeeeceeeeeneeeeeeeeeeeeeeeeaeeseaeeeeeees 3 232 4 5 5 Gam Switch FUNCION ieri tirita 3 233 Cam switcli Mode ico Lee Nb te eek 3 233 Multi step comparator mode sseeeee een 3 234 Setting method A UE DO PUERUM en 3 234 4 5 6 Application of the Cam Switch Cam Switch Mode sssessss 3 236 4 6 Direct Clock Pulse Output ssssseeeeeeennmenmeeene 3 237 4 6 1 Outline of Direct Clock Pulse Output ooococnnccnnccnocccncccnaccnoncconancnnncnnnnnnnnnnn ccoo 3 237 4 6 2 Pulse
10. sse 1 84 Function and operating procedure ssseee 1 84 34 Device Mode o ache one tle i ee 1 87 3 4 1 Function and Operating Procedure ssssseeeeeenenn 1 87 Devices that can be displayed and changed sesesssss 1 87 Key operation and screen display e 1 87 Selecting the device and displaying the current value set value 1 88 Changing a numeric value ssseseseeeneeneneneneenenene nenne 1 89 Holding the setting ccoo ein idos cette eri 1 91 3 4 2 Screen Display for Each Device Type ssssseeeeen 1 91 Data memory DM ascitis Ee E p Rei gen 1 91 Temporary data memory TM ooocccnnoncconoccnonannnonnnnnncnnnn co nnnn cnn eren 1 91 Timer counter T G y sut ciii etes zuerst re phe inaa te ro buts 1 92 High speed counter comparator CTC sese 1 92 Trimmer TRM icon tit RH 1 93 Relay REV a ai eh oe 1 93 3 5 System Mode ooo ue area eger e rape dee iaa 1 94 3 5 1 Function and Operating Procedure sssssseeeeeeenen ne 1 94 Key operation and screen display se 1 94 LOAD mode and SAVE mode ccccoocccncccnoccnoccnoncnonnncnoncnanc conc ncan cnn nennen 1 96 Display in LOAD SAVE mode sesseeeeenenem ene 1 96 3 0 Message Display 5 ida ace cts 1 97 3 6 1 Error Messages and Error Status sesssssseeeeeenee
11. DM1405 Result of frequency count Hz DM1406 DM1407 Cam switch function Set value of angle at which output relay turns ON OFF DM1408 DM1409 DM1468 DM1469 Cam switch function Set value of angle at which output relay 1 turns ON OFF Cam switch function Set value of angle at which output relay 31 turns ON OFF DM1470 Reserved by system cannot be used by user DM1471 to DM1479 Not specified can be used by user DM1480 Ramp up down control function Startup frequency Hz 200 to 50 000 DM1481 Ramp up down control function Operating frequency Hz 200 to 50 000 DM1482 Ramp up down control function Acceleration time ms 0 to 4 000 DM1483 Not specified can be used by user DM1484 DM1485 Ramp up down control function Output pulse count lower digit 0 to 65 535 Ramp up down control function Output pulse count upper digit 0 to 65 535 DM1486 Ramp up down control function Error code 11 to 17 DM1487 to DM1499 Not specified can be used by user DM1565 to DM1569 Not specified can be used by user DM1578 and DM1579 Not specified can be used by user DM1580 to DM1599 KV D20 Operator interface panel Display device No DM1664 to DM1699 Not specified can be used by user DM1670 to DM1675 Reserved by system cannot be used by user DM1676 KV D20 Operator interface panel Screen shift per
12. 8 90 to 35 00 ANDs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register 6 90 to 33 00 8 90 to 35 00 ORs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register EXCLUSIVE ORA nnnn lt EORA gt EORA FNC 15 nnnn TEORA EORA FNC 15 0000 to 0009 0500 to 17915 DM0000 to DM9999TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 6 90 to 33 00 8 9 to 35 00 Chapter 2 Instructions 9 51 EXCLUSIVE ORs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register 2 2 Instruction List KV 300 Series KV 10 80 KV 300 Exec time Function us Instruction Mnemonic Operand Operand value Nun 10 80 Moves content of SHIFT internal register serially RIGHT A right by value specified SRA Bric 41 12 80 by operand SLA FNC 40 19 90 Moves content of internal register serially left by value specified by 12 80 operand SLA FNC 40 3t constant 01 to 16 M f RRA oves content o FNC 37 12 00 internal register serially ROTATE right allowing each bit RIGHT A RRA that leaves right end to 14 00 enter carry bit and then IFNC 37 leftmost bit RLA Moves content of _ FNC 35 12 00 inter
13. FNC 01 ORA FNC 31 ORA FNC 31 0000 to 2915 DM0000 to DMO0999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 0000 to 6915 DMO0000 to DM1999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 11 0 to 64 0 23 0 to 78 0 ANDs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register 11 0 to 63 0 23 0 to 77 0 ORs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register EORA FNC 15 EORA FNC 15 0000 to 2915 DMO0000 to DMO0999 TMOO to TM31 3100000 to 65535 0000 to FFFF TMOO to TM29 0000 to 6915 DMO0000 to DM1999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 10 0 to 63 0 22 0 to 77 0 EXCLUSIVE ORs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register SHIFT RIGHT A SRA FNC 41 SRA FNC 41 SLA FNC 40 SLA FNC 40 ROTATE RIGHT A RRA FNC 37 RRA FNC 37 ROTATE LEFT A RLA FNC 35 RLA FNC 35 constant 01 to 16 11 0 to 28 0 23 0 to 42 0 Moves content of internal register serially right by value specified by operand 10 0 to 28 0 22 0 to 42 0 Moves content of internal register serially left by value
14. essem 3 334 Arithmetic Instructions ooconoccccnonccononcncnananonononcnnnrn conan coran enne 3 343 WARRANTIES AND DISCLAIMERS 3 367 l Installation Configuration and Specifications 1 1 System Configuration sesssssssssseeeneeeenneee nennen enne 1 2 1 3 1 System Configuration 1 2 1 2 gt Specifications iii AA RS d 1 4 1 2 1 General Specifications essssssesssssseseeeseeeeene enne nennen 1 4 1 2 2 AC Power Specifications ssssssssseeeeeeeeeeneeneen nennen 1 5 Visual KV Series operation at power interruption eeeeesss 1 5 1 2 8 Performance Specifications essere 1 6 Data backup function against instantaneous power interruption 1 7 1 3 Common I O Specifications of Basic Units ooooooocinnncccnnnccconoccccnncnccinnncnos 1 8 1 31 Model ot a Basic Units uoce rd tnter 1 8 1 3 2 Common I O Specifications sesssssssseeeeeeeennene nennen 1 8 1 4 KV 10AR AT P DR DT P 10 1 0 Basic Unit sseeesesesss 1 10 1 4 1 Part Names and Functions sssseeeeeeeeeen eene 1 10 1 4 8 Terminal Layout Drawings and I O Circuit Diagrams sees 1 11 KV 10AR DR Relay output type sem m 1 11 KV 10AT P DT P Transistor output type ennen 1 13 1 4 8 AC Power Input KV
15. 1 2 1 Program Capacity iii 3 4 1 3 Device Configuration oocccconnncicnnncccnnoccnnonocononnnnnnno co nannnnnana nono 3 5 RIA Device ista cen ete Re eet 3 5 1320 Relay NO x bn tenet ie pin 3 7 1 3 3 Assigning Relay Nos oooonmccconncccnnncccnncnconanonnnnnnconnnn recen nine ranas 3 8 1 34 Input Relays cente eene ees 3 9 1 9 5 Output Relays shasta ese e e etel a as 3 10 1 3 6 Internal Utility Relays eeeeeeeeeeeneeeneme nennen nennen 3 11 1 3 7 Special Utility Relays 3 12 1 3 8 Special Utility Relay List eeseseseseeeeneeneneeneenneennnnn 3 14 1 39 Thimers and Counters idiota 3 18 1 3 10 Data Memories icon i 3 19 1 3 11 Temporary Data Memory coocccccoccccnnoncnononcnononcncnnonnnnnnn eene 3 21 1 3 12 Relay Nos and Functions coooccccnonccnnoncccnoncncnnonnonnnrnnn nano nn rnnr cnn nan en 3 22 1 4 Special Functions sse 3 23 1 4 4 Input Time Constant Change Function coocccncccinncconccionnconnnnncncnana nano cancnnn 3 23 1 4 2 Modifying the Input Relay Time Constant seeeee 3 24 1 4 8 Constant Scan Time Mode ssesssseeeeeeeen nennen 3 25 1 44 Output Disabled Function sese 3 26 1 4 5 Input Refresh Disabled Function oooooccconocccnnoocnnnonccnnnnanonnnrncn nano nnnnonnnnnns 3 26 1 4 6 Contact Comment Save Function sssssseeeee 3 27 1 4 7 Special Funct
16. 2 4 3 Arithmetic Instructions coooomoccccnnnnnncccccnnnnonanccnncnonnncnccnnnnnnnrncnnnnnnnnrncn 3 134 2 5 Programming Notes se 3 189 2 1 Instruction List 2 1 Instruction List The KV Series uses 80 instructions The instructions are divided into four categories according to their functions basic instructions application instructions arithmetic instructions and interrupt instruc tions The following is an overview of applications and functions For details refer to the respective description pages for each instruction 2 1 1 Basic Instructions Exec time Mnemonic Operand Operand value Function us LD Connects N O contact to bus 0 7 to 1 6 Connects N C contact to bus 0 7 to 1 6 Connects N O contact in 0000 to 17915 series with previous contact T000 to T249 C000 to C249 Connects N C contact in CTCO to CTC3 series with previous contact 0 7 to 0 9 AND BAR 0 7 to 0 9 Connects N O contact in OR parallel with previous contact 0 7 to 0 9 Connects N C contact in parallel with previous contact 9 7 to 0 9 Connects in series blocks made of one or more 0 8 contacts Connects in parallel blocks made of one or more 0 8 contacts Outputs input ON OFF status 15 0500 to 1915 to R coil i 2009 2300 to 17915 Outputs inverted input ON 15 OFF status to R coil 0500 to 1915 2009 2300 to 1791
17. Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each instruction DMO0000 to DM1999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 Compares content of internal register and value specified by operand 10 8 to 35 6 22 8 to 47 6 Adds content of internal register and value specified by operand and inputs result back to same register 9 4 to 34 2 21 4 to 46 2 Subtracts value specified by operand from content of register and inputs result back to same register 10 8 to 35 6 22 8 to 47 6 Multiplies content of internal register by value specified by operand and inputs result back to same register 14 4 to 38 1 26 4 to 50 1 3 38 Chapter 2 Instructions Instruction Mnemonic Operand Operand value 2 1 Instruction List WISE SEGIS Function Exec time us DIVIDE DIV FUN 11 DIV FUN 11 R No DM No TM xx constant TMxx DM0000 to DM1999 TMOO to TM31 3100000 to 65535 0000 to FFFF TMOO to TM29 Divides content of internal register by value specified by operand and inputs result back to same register 17 4 to 43 3 29 4 to 55 3 ANDA FUN 01 ANDA FUN 01 ORA FNC 31 ORA KG FUN 31 R No DM No TM xx constant TMxx 000
18. Program execution nput processing Input processing Input processing Input processing Input processing Minimum value Input time constant Scan time Output response delay time Note 1 When the input time constant is made small by setting the HSP instruction special utility relay 2813 and data memory DM1940 a signal may not be received if its ON time is shorter than the scan time Note 2 The INT instruction is independent of the scan time Note 3 The minimum scan time is 140 us with the basic unit Chapter 1 Programming 3 3 1 2 User Memory 1 2 User Memory This section describes the allowable size capacity of a program which can be created in the Visual KV Series 1 2 1 Program Capacity When a user program is created for the Visual KV Series the maximum number of steps a program can contain using the mnemonic diagram varies based on the byte count of the instructions used The instruction byte count is determined individually for each instruction For more about byte counts for each instruction refer to 2 1 Instruction List p 3 34 Maximum number of lines in a program In the KV 10xx 16xx a program with approximately 2 000 steps can be written In the KV 24xx 40xx a program with approximately 4 000 steps can be written Total byte count of the memory used by instructions lt 6 000 bytes 12 000 bytes Total byte count of the memory used by objects of instructions lt 12 000
19. Program Erro och Recte EC pete e ete tenes dt 1 375 10 1 4 Memory Card Errors and Other Errors sse 1 376 10 2 Replacing Relays eene enne 1 377 Replacement procedure ccccsccccesereeeseeeeeeseneneneneeseseeeseneneesneneeeeseeeees 1 377 10 3 Troubleshooting iiae eepe nee ed 1 378 10 3 1 Troubleshooting LISt oco citi t trage trt de tace tette ras 1 378 10 4 Error Messages ic occ cece een ertet ties 1 380 Appendices Appendix A Specifications and Dimensions Visual KV Series 1 382 A 1 System Specifications Visual KV Series ccccceceeseeeeeeeeeeeeeeeeneeseeeeneeees 1 382 Hardware oia a wie bre Ute ede deseo ds 1 382 Software and Programming seen 1 383 AC power sUpply UNit cece cis eect de esac acho cete ie 1 384 A 2 Common I O Specifications of Basic Units 00 0 0 eceeeee eee eeeeeeeeeeeneeeeneeeneeee 1 384 Input Specifications ici 1 384 Output specifications relay output KV 10AR DR KV 16AR DR KV 24AR DR and KV 40AR DR esee nennen 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 sessseeeneneeennn 1 385 A DIMENSIONS cuoi neis dee e et ee eee 1 389 Appendix B Specifications and Dimensions KV 300 Series 1 392 B 1 System Specifica
20. 1 97 316 2 User MeSSag6S erre RERO HERR carnes nar CIR 1 97 How to use the user messages ssseeee men 1 98 KV D20 Operator Interface Panel 4 1 Before Operation 3 eiie t ean Qo cerei tg 4 1 1 Checking Package Contents seen 4 1 2 Part Names and FUNCOMS ariin n a nna i 4 1 3 Details about the KV D20 coooccnccccnoncccnnonnnonnonnononcnnnnonnnnnnn ocn rnn ener General specifications eseessseeeeeeeeeeennee nenne Functional specifications oooocooonnccnoniccnnoncnnnancnnnannnnnornnnnnrnnn raro nannannnnnns DIMENSIONS i5 r toilet dt tada e terrd ds 4 1 4 Installation and Environment sseeeneem emen USC ONU Md ii cd e he ta e eerte eec Panel mounting poer dee b ERE 4 1 5 Inspection and Maintenance sseneeeeme Inspection oa ERR e eu ioter bie Bee ptg Maintenance ici iia 4 2 Overview and Operation ooooociccnnnninncnincinnccconccconnconcnnannnnnnncancnnnnn can nnn cnn 4 2 1 Use Examples for the KV D20 c oooonocccononcconocncononcnnononcnnnnnnnononoconnnn cnn nana nnrnnnnnnns 4 2 2 Connection with the KV Series oooooooinnicinccninconncncocccnonncannnonnncnnnnnnnn nan nnnncnnncnnns 1 108 COMEN iia eae aie ace ds Ge Aas 1 108 Precautions 5 2 B eue sl eh en ee edi 1 108 4 2 3 Overview of the KV D20 cococccccncccocccnonccacccnnnncnncnnnncnonnnnnnc conca nan nnnn cn nan na aman rnncanns 1 109
21. 10 1 3 6 Internal Utility Relays oec deeem 3 11 Retentive function of internal utility relays eeeeee 3 11 1 3 7 Special Utility Relays senenn ena aeaa ae neret 3 12 Descriptiori ita at ld 3 12 1 3 8 Special Utility Relay List a a a a a e aaa R Ra nennen 3 14 Special relays and arithmetic operation flags ssssessss 3 14 Special utility relays for high speed counter 0 eessssssssse 3 14 Special utility relays for high speed counter 1 essesssss 3 15 Other special utility relays seseeenenennnnnn 3 15 1 3 9 Timers and GOUnters 2 pt eget oe EE bebe e qid c erede 3 18 Timer GCo nter list 2 3 e ttt tete Ue eee 3 18 Description 3 18 1 3 10 Data Memorles eee iii 3 19 1 3 11 Temporary Data Memory sees eee a entren tenen 3 21 1 3 12 Relay Nos and Functions essseneeennenn mene 3 22 1 4 Special Functions gue ge db RE ea LR s 3 23 1 4 1 Input Time Constant Change Function oooconccnnnccnonccionanancconcnonananrncn aca nnncrnnccnn 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 sseeeeeeeee 3 24 Modification within the CPU ssssssseeeeeneenenenen nnns 3 24 1 4 8 Constant Scan Time Mode essssseeeeseeeenereneen nennen 3
22. 10AR AT P essen nens 1 14 1 4 4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1 15 1 4 5 Dimensions enge REMO 1 16 1 5 KV 16AR AT P DR DT P 16 1 0 Basic Unit ssseseesesss 1 17 1 5 1 Part Names and Functions sseseeneeeenenm en 1 17 1 5 2 Terminal Layout Drawings and I O Circuit Diagrams eese 1 18 KV 16AR DR Relay output type eeemm 1 18 KV 16AT P DT P Transistor output type eenne 1 20 1 5 8 AC Power Input KV 16AR AT P ssssseeeeeeeeeenneee nennen 1 21 1 5 4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1 22 1 5 5 DIMENSIONS id gie tete etate putei es 1 23 1 6 KV 24AR AT P DR DT P 24 1 0 Basic Unit sseseeeesss 1 24 1 6 1 Part Names and Functions eese nnne nme 1 24 1 6 2 Terminal Layout Drawings and I O Circuit Diagrams uses 1 25 KV 24AR DR Relay output type c cccooocccononccononcnononcccnnonccnnnn cnn nan nnn nan nnnnnnnos 1 25 KV 24AT P DT P Transistor output type nen 1 27 1 6 3 AC Power Input KV 24AR AT P essen enne 1 28 1 6 4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1 29 1 6 5 DIMENSIONS o cre t ee oe idee ve operi e edet 1 30 1 7 KV 40AR AT P DR DT P 40 I O Basic
23. 218 ALL DATA MEMORY CLEAR ssseeeeeeeeeemeenneee nennen enne 1 219 ALL LATCHING RELAYS RESET 4 eene 1 219 PROGRAM SENT OR RECEIVED eene 1 220 OFFLINE EDITOR START intet eee bet eret es 1 221 OFRLINE EDITOR STO Posa ios ioter a eene 1 221 TIMER COUNTER CURRENT VALUE CHANGE eee 1 222 TIMER COUNTER SETTING CHANGE seen 1 224 RELAY ON OEE d uterus 1 226 WRITE INTO DATA MEMORY ssseeeeeeeeemeeneneneee nennen 1 227 READ TRIMMER SETTING sese 1 228 SYNTAX CHECK rote itat x rece GE EE vene eget 1 228 PROGRAM CAPACITY CHECK essen 1 229 6 4 Memory Card nece RERUM IURE 6 4 1 Functions used with KV P3E 01 0 422 Storage Gapacily cuidad OLEA Ip NE Wisin us eu elena t ix o e EM ACCS xd niet aet tu etc ette dum a erede gs AGCSSSAVE anal etiem Deco p rm ACCS VERIFY dai ert pte er ceteris ACGS DELETE nire eene rr tee Y tede KV L2 Serial Interface Module 7 1 ien dg c iaa dicto SM SA A ES 7 2 Configuration ioca ee ot ig d 7 221 Parts and Functions osii st t tet eet eg die 7 2 2 System Configuration sese 7 2 3 Outline of Operation Modes ssssseeeeeeneeneeen nennen 73 nstallatlon cuca eene EIU ERU 7 3 1 Setting the Operation Mode ssssseeeneeeeeeenen eene 7 3 2 Communications Protocols sss
24. 25 1 4 4 Output Disabled Function ssssseeneeeeeneennene nennen 3 26 1 4 5 Input Refresh Disabled Function seenme 3 26 1 4 6 Contact Comment Save Function essen 3 27 1 47 Special F nctions eigen ee en ERR rH REED meret nne 3 28 Constant Scan Time Mode sssssseeeeenenen eene 3 28 Output Disabled Function sanen a eae ae EEAS 3 28 Input Refresh Disabled Function 3 28 1 5 Extended Ladder Diagrams s 3 29 1 5 1 Features of Extended Ladder Diagrams eee 3 29 1 5 2 Advantages of Extended Ladder Diagrams see 3 30 1 5 8 Example of an Extended Ladder Diagram see 3 31 9 Chapter 2 Chapter 3 Chapter 4 Instructions 2 1 Instruction List Visual KV Series ooooooonncccinnncccinncccnnoccccnoonononannnnnnncno 3 34 21 4 Basic Instructons ice een Ee RP a a a a a eatea dni 3 34 2 1 2 Application Instr ctlOris aviat e cendi cete cree dae 3 36 2 1 8 Arithmetic Instructions 20 2 0 eee eeecceeeecceeseeeteneeeeeseneeseseeenedeeeesseneeesneneeseeneeneses 3 38 2 1 4 Interrupt Instructions Decent Eee ee een ees 3 41 2 1 5 Function No List Alphabetical order seen 3 41 2 2 Instruction List KV 300 Series KV 10 80 sseseeesss 3 42 2 2 1 Basi Instructors ione E e P
25. Application Examples of the Positioning Control Function 3 259 Chapter 6 Interrupts High speed Counters Positioning Control KV 300 KV 10 80 6 1 Interrupt Instructions inin een 3 268 6 1 1 Description of Interrupts ccceeeceeeeeneeeseceeeeeeeeeeeeeeeeeeceneeesenseceenseseeneeseeneses 3 268 Input processing for routine program and interrupt routine 3 268 Types of Interrupt 2 rere ie a aAA I aae AE h AEAEE aaaea TENSES 3 268 Interruptprlotity iaa o das 3 269 Interrupt rOUtlle coi id 3 269 Direct Outpt 3 ta is 3 270 A A eoi epe e Pi aud EU EE PEE 3 270 6 1 2 Interrupt InStrUCHONS oracion cia hess e tere reper 3 271 6 2 Direct Clock Pulse tue eee tet e i eta 3 276 6 2 1 Output of Direct Clock Pulse 3 276 Outline of High Speed Counters eeeenenne 3 276 Outline of Pulse Output sssseseeeeeeenenenene nennen 3 279 Examples of Pulse Output esssessseeeeeeeenneennen nennen 3 284 6 3 Positioning Control eemper rece eter 3 296 6 3 1 Positioning Control Ramp up down Control eeeeeeeene 3 296 Outline of positioning control 3 296 Setting and application of parameters ssseseee 3 297 Examples of stepping motor control een 3 300 Chapter 7 Serial Communication 7 1 Communications Specifications sssssse 3 306
26. DOS or LADDER BUILDER for KV programming support software or the KV P3E 01 handheld programmer 3 26 Chapter 1 Programming 1 5 Extended Ladder Diagrams 1 4 6 Contact Comment Save Function This function transfers contact comments to the Visual KV Series using the KV IncrediWare DOS or LADDER BUILDER for KV programming support software The Visual KV Series can store not only programs but also comments registered to each contact using the KV IncrediWare DOS or LADDER BUILDER for KV programming support software A program may not be easy to understand if only device Nos are used By registering comments to the contacts the program can be easily debugged and more efficiently maintained The number of contact comments that can be transferred is up to 1 000 for both normal transfer and compression transfer The KV D20 operator interface panel includes the contact comment display function For more about operating procedures refer to 2 5 Entering Comments Labels p 1 46 and 4 2 2 Setting the comment transfer p 2 138 Note 1 Line comments cannot be stored Note 2 The KV P3E 01 handheld programmer cannot read or write contact com ments Note 3 The KV D20 operator interface panel cannot display contact comments which have been compressed and transferred Chapter 1 Programming 3 27 1 4 Special Functions 1 4 7 Special Functions Constant Scan Time Mode In this mo
27. Functions 1 4 2 Modifying the Input Relay Time Constant B Modifying with External Switches KV C32X C16X KV R16X R8X 25m l x Input time constant III Tm ll selection switch TN 0 Dl NS a 24V 5VOms 10ms 1ms I As shown in above figures an external switch can be used to select the input time constant only on the KV C32X C16X Connector Input Units and KV R16X R8X I O Terminal Units In the following table white represents the switch position Input time constant KV C32X C16X KV R16X R8X Oms 1ms 10ms NM 25 us 20 TA Oms 1ms 10ms Oms 1ms 10ms 1 ms 20 Oms 1ms 10ms Oms 1ms 10ms 10 ms 20 Oms 1ms 10ms Note Connect a solid state contact output device when the input time constant is set to 1 ms for 25 us Connection of a contact output device may result in contact bounce Modification within the CPU The input time constant for KV 300 CPU input relay nos 0000 to 0009 can be modified in the program Input time constant Setting 10 us 20 Turn ON special utility relay 2813 0000 to 0009 25 us 20 Use the HSP instruction 10 ms 20 Default Note 1 When using the 30 kHz high speed counte
28. 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 us 10 us and 100 us The time constant for an input relay specified by the HSP instruction is 10 us 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 O to 9999 The RUN PROGRAM LED is displayed in the Access Window provided on the front face of the basic unit Transistor output is not independent but is common With the transistor type the output terminal layout is different The specifications for output current of transistor outputs Nos 500 to 502 is 100 mA Conventional KV Series expansion units are not available as expansion units for the Visual KV Series The channel setting switch is not provided for expansion units Channels are determined in connection order Scans in expansion I O units are not synchronous with the scan time in Visual KV Series basic units Assignment of special utility relays has partially changed Data memory device Nos DM1000 to DM1999 are assigned as special data memories 4 Cautions when using the previous version of ladder support software Pay strict attention to the followi
29. Switching the display mode sse 1 109 Overview of each display mode sse 1 110 Assignment of relays DM ssssesseeeeeeeem memes 1 111 Other functions tuin nee BH 1 112 Precautions about screen change function oooocccnoncccnnonnccnananonannnnnancnnnns 1 115 4 2 4 Operator Mode eae teinte pl t er bestie Ghana 1 117 Screen selection in operator mode sssseeen 1 117 Operator Screen ese aeui bp en p ema ei 1 118 Direct ACCESS SCIGen sse nde Raha eat in Sheet 1 126 KV I O monitor screen coooocncccnccccnccconancnnnnonncnnnnnrnn cana cnn nn ana nnnn naar nn rnncnnnnnns 1 127 Switch comment screen c occonccccccccncccnnnnonncnoncncnnc cnn ccnnn cnn cnn cnn rana 1 128 Lamp comment screen ccooccccccnnnnnnonnnonnncnnnnn ren nnnnn nine nene 1 128 Screen change permission in operator mode ooooccconoccconoccncoooncnonnnnnnonnnos 1 129 4 2 5 Device Mode nece ains 1 130 Device mode civic pere eee ERU eee Pp oc ves 1 130 Operation example for device mode sssseeee 1 132 4 2 6 System Mode dan nie P teli aen iate re iem o 1 134 System mode epe EA tee UU ete Uus 1 134 4 3 Examples of Ladder Programs 7m 1 135 4 3 1 Basic Ladder Programs eeseeeee eene 1 135 Before creating ladder programs s 1 135 Basic ladder programs eeem e 1 136 4 3 2 Examples of Ladder P
30. Unit eesesessessss 1 31 1 7 1 Part Names and Functions ooooonnccccnnoconnnocnnnnnnnnnccrnnnn cerrar 1 31 1 7 2 Terminal Layout Drawings and I O Circuit Diagrams esses 1 32 KV 40AR DR Relay output type seenm 1 32 KV 40AT P DT P Transistor output type eeneene 1 34 1 7 3 AC Power Input KV 40AR AT P sess 1 35 1 7 4 Relationship between Continuous Simultaneous ON Ratio and Ambient Temperature 1 36 1 7 5 DIM NSIONS nde ee rere en 1 37 1 8 KV EAX E8X E16X Expansion Input Unit seeeeeeess 1 38 1 8 1 Part Names and Functions 1 8 2 Input Specifications 3 oe rc RR RACER eR ERAS 1 8 3 Terminal Layout Drawings and Input Circuit Diagrams sss 1 39 KV E4X 4 1 0 expansion input unit seeeeeeeeen KV E8X 8 1 0 expansion input unit sese KV E16X 16 1 0 expansion input unit 1 8 4 DIMENSIONS ssiri oie ie di 1 9 KV E4R E4T E8R E8T P E16R E16T P Expansion Output Unit 1 43 1 9 1 Part Names and Functions eeeseseesseeeeeeeenee nnne taedia nnne enne 1 43 1 9 2 Output Specifications isidro ttes 1 43 KV E4R E8R E16R Relay output type 1 44 KV E4T E8T P E16T P Transistor output type NPN PNP 1 44 1 9 3 Terminal Layout Drawings and Input Circuit Diagrams
31. bytes 24 000 bytes n the description above a value on the left side indicates the byte count for the KV 10xx 16xx while a value on the right side indicates the byte count for the KV 24xx 40xx The memory occupied by objects indicates the memory required to execute a program when operation is started For example the allowable number of steps to be written can be calculated from the memory occupied by the instructions as follows 12 000 bytes 3 bytes average byte count of an instruction 4 000 steps Note If either the memory occupied by the instructions or the memory occupied by objects of a program exceeds the specified memory capacity the program cannot be written or executed Calculating the byte count used The byte count used in this program can be calculated as shown in the table below 0000 00020 Line No Instruction Operand Byte count Number of objects 00000 LD 0000 00001 OR 0500 00002 000 00020 00003 TOOO 00004 0500 14 bytes 32 bytes 3 4 Chapter 1 Programming 1 3 Device Configuration 1 3 Device Configuration 1 3 1 Relay list Relay No Device is a general name for relays registers etc processed by instructions This section describes the available devices in the Visual KV Series and their general use Device List High speed Normal use use 1 High speed use 2 Remarks 000
32. data and data memory addresses 1 298 7 7 5 ASCII code Binary Conversion Function sseeeenene 1 300 7 8 Troubleshooting Guide seen eee 1 304 8 4 SA 1 304 70 2 JPTecautlOlis zc tet fe cin apte lia e a Ut ie 1 305 7T 9 Specifications oon eei eee qued 1 306 19 1 SpecifiCallOns i ur eee ee fette teca eto eds 1 306 General specifications eesesssesssesseseseeeeeneeenen nens 1 306 Communications protocol sssssseeeeneeeeeneneneee nennen 1 306 RS 232C connector specifications eene 1 306 RS 422A terminal block specifications seeeeees 1 306 79 2 Dimensions Liter e ip 1 307 7 10 Command List si 1 308 7 10 1 List of Commands and Responses ssssseeeeeeeenens 1 308 7 10 2 List of Commands and Responses in Display Interface mode 1 309 KV AN6 Analog I O Module 8 1 Outline 200 ci EIBEIUGE VERRE 1 312 FOAtUIneS emet Mot eG ac E MID EL 1 312 8 2 Configuration ouest eu eg aaaea aie eevee 1 313 8 21 Parts and FUNCUONS s s ciet irt ette erc t re dre re er e n 1 313 8 2 2 System Config ratigh i ros cett orem e tec Ep CERE ide 1 314 6 3 Installation o a A REUS 1 315 8 3 1 Terminal Nos unie ee el a 1 315 17 8 3 2 Removing the Terminal Block se e 1 316 8 3 8 Exampl
33. 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 high speed 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 K
34. ge LU B d Nut 4 PB2 contact oe i m PL ON PL or __ Next a program is created that will use the same operation as this circuit to control a PLC 4 Program examination Circuit 1 shows relay symbols for the latch circuit Examine which contact in the Visual KV Series is used for each pushbutton switch and pilot lamp Table 1 When many I O devices are required for control expansion units should also be considered Circuit 1 Table 1 ER 1 0 device Contact No O O T 94 RL 7 ia Relay coil Pushbutton switch PB1 N O contact Input relay 0000 e Peay contact Pushbutton switch PB2 N C contact Input relay 0001 Relay contas Relay RL Internal relay 1000 P P P F Pilot lamp PL Output coil 0500 Program creation Edit a program using the LADDER BUILDER for KV programming support software creation tool Ladder diagram Coding list Stoo 1000 LD 0000 T OH OR 1000 1000 AND 0001 x 0500 OUT 1000 LD 1000 Enter N O AND X001 to 0001 to OUT 0500 use N C contact END J Transferring and confirming the program Transfer the created program to the Visual KV Series perform a test run and then confirm operations with the actual devices Operation 3 2 Chapter Programming 1 1 Before Creating Programs 1 1 2 Scan Time Scan time The Visual KV Series repeatedly executes a ladder b
35. input is ENDS Turns current stage OFF FNC 14 when input is ON 0000 to 0009 0500 to 6915 Fp Executes program between FNC 45 1000 to T249 REO C000 to C249 operand is ON CTCO to CTC3 STE Is used with STEP to make STEP END FNC 43 program step DMnnnn DMO0000 to DM9985 _ Measures pulse to pulse ITVL INTERVAL 6 Oa T a poros interval amp pulse width in TIMER PAUSE mmm 3000 to 6912 specified mode 7000 to 9912 0004 16 bit 0 to 65535 up counter 16 BIT Clock 2100 j for clock pulses with input COUNTER source Rs 2101 response frequency of 30 2102 kHz 3 46 Chapter2 Instructions Instruction Mnemonic Operand 2 2 Instruction List ASALECESAS AE KV 300 Operand value Exec time us Function 16 BIT COUNTER COMPARA TOR stddddd eren F n Comparator No ddddd preset value n 0 1 ddddd 00000 to 65535 Hardware based comparator between preset amp current values of high speed counter This comparator is turned ON when these values are equal 16 BIT COUNTER CTH1 nnnn Clock Source Rs 16 bit 0 to 65535 up counter for clock pulses with input response frequency of 30 kHz 16 BIT COUNTER COMPARA TOR n Comparator No ddddd preset value n 2 3 ddddd 00000 to 65535 Hardware based comparator between preset amp current
36. processing contents By combining the STG instruction double coils can also be used 1002 T001 T002 00030 T002 1003 1001 1003 1002 1003 3 30 Chapter1 Programming 1 5 Extended Ladder Diagrams Note When an extended ladder diagram is used the number of lines in ladder diagram may be reduced However this may not necessarily reduce the number of mnemonics in the program Conventional ladder diagram Extended ladder diagram 0000 0500 0000 0500 0501 O Q LD 0000 LD 0000 OUT 0500 OUT 0500 OUT 0501 CON OUT 0501 The CON instruction for connection is added The scan time is not affected 1 5 3 Example of an Extended Ladder Diagram B Using W UE Only when inputs are given in the order 0000 0001 0002 output 0500 turns ON Conventional ladder diagram Extended ladder diagram ER At the rising edge of input Qe Qv ve R vo Xo 0001 1002 turns ON 1000 1001 iN JN PAN I y Y 0001 1002 3 DbIFU 000 190 _ At the rising edge of input ps ES Y HDI 1003 1002 ON Input 0000 Input 0001 Input 0002 Output 0500 i WIS ene turns ON turns ON turns ON turns ON 1002 0000 1000 If input 0000 is ON 1000 TM turns ON 1003 1000 1001 If 1000 is ON 1001 turns ON 1001 100 When 1001 turns ON output 0500 turns ON Because the program can be written in only one line when an extended adder diagram is used it is easier to look at and understand compared
37. sist o oe BRE RR RAM HE 1 334 Feat lres ida eei etes 1 334 9 2 Configuration iss Red Ere rer Pede ted etna 1 335 9 2 1 Part Names and Functions cccooccccnncccnnoncnonannnonanononnnrnnn nan cn nn r cnc meme 1 335 KV AD4 coi LA a eee A de 1 335 KVSDAA dt it Benoit ett 1 336 92 2 Specifications tcc sisi ee pote et fe eaa code eoe P E TE REP cet erste 1 337 WD EM 1 337 WED CM EE 1 339 9 2 3 System Configuration roca eb m eai ete 1 341 9 3 Installatlon osse RU ERI epa ERO eme 1 342 9 3 1 Installation Procedure eese 1 342 9 3 2 Checking the Installation Environment seen 1 343 9 3 3 Setting the KV AD4 Input Mode seseeeeneneeneennen nennen 1 344 Setting the input mode ooooconcccncconcccnncnconcnoncnnnncnnoncnanc crac nc nn cnn narran 1 344 9 3 4 Connecting External Instruments ooooononccnnccincoconccnncnnancconncancnnnn crac n nn cnn 1 345 WINO es setae eunte eere etie ote ae edes 1 345 Wiring diagrams eterne A ee eee 1 346 9 3 5 Connecting to the KV 10 to 80 1 348 9 3 6 Mainteriance eie RUD peo i maii RE 1 349 Inspection and Cleaning coconcconnccincccnnccnoncnonccnnnnnnnannnn conc cnn nc nnc crac nnne 1 349 9 4 Programming one Pepe imt d ber ed 1 350 9 4 1 Programming the KV AD4 ccnncccinncccnnoncncnonnnononnnnnnnn cnn nan eme enne 1 350 A D Conversion Mechanism ssesseeseeeeeeeneen enne 1 350 About Digital Data after A D Conversi
38. specified by operand 12 0 to 30 0 24 0 to 44 0 Moves content of internal register serially right allowing each bit that leaves right end to enter carry bit and then leftmost bit 12 0 to 29 0 24 0 to 43 0 Moves content of internal register serially left allowing each bit that leaves left end to enter carry bit and then rightmost bit COMPLE MENT COM FNC 05 COM FNC 05 5 0 to 6 0 17 0 to 20 0 Inverts content of each bit in internal register INCRE MENT MEMORY INC FNC 19 INC FNC 19 DECRE MENT MEMORY DEC FNC 07 DEC FNC 07 DM TM No DM0000 to DM0999 TMOO to TM29 DMO0000 to DM1999TMO0O to TM29 12 0 to 15 0 24 0 to 29 0 Adds 1 to content of data memory specified by operand 14 0 to 17 0 26 0 to 31 0 Subtracts 1 from content of data memory specified by operand MULTI PLEXER MPX FNC 27 MPX FNC 27 constant 0 to 3 24 0 to 25 0 36 0 to 39 0 Chapter 2 Instructions 3 49 Converts 4 bit data specified by operand of internal register into 16bit data KV 300 Series KV 10 80 2 2 Instruction List KV 10 16 24 40 80 Mnemonic Operand Operand value Operand value Exec time KV 10 16 Instruction Function KV 24 40 80 us DEMULTI DMX FNC 12 28 0 to 30 0 PLEXER T DMX DMX JFNC 1
39. with a program written using a conventional ladder diagram Chapter 1 Programming 3 31 1 5 Extended Ladder Diagrams 3 32 Chapter 1 Programming Chapter 2 Instructions Describes the concrete usage of instructions in the KV Series Refer to Chapter 3 Interrupts on page 3 191 for details of interrupt instructions Refer to Chapter 4 High speed counters on page 3 203 for details of the high speed counters used in the application instruction 2 1 Instruction List Visual KV Series 3 34 2 141 Basic Instructions s ao e e n foe qe Utims 3 34 2 1 2 Application Instructions sse ee 3 36 2 1 3 X Arithmetic Instructions neni teire eataa iotr a cnn nnne 3 38 2 1 4 Interrupt Instructions 2 2 see cece eeeeeeeeeseeeeeseneeeeeeeeetseneneneneeseeneeetseeenes 3 41 2 1 5 Function No List Alphabetical order eeeeee 3 41 2 2 Instruction List KV 300 Series KV 10 80 3 42 224 Basicinstructions A du TN 3 42 2 2 2 Application Instructions s me 3 45 2 2 3 Arithmetic NSFC ONS a e aae rarr ane arr aran iea ae erana ariy 3 48 2 2 4 Interrupt Instructions sseeenm eme 3 54 2 3 Convention Details sss 3 55 2 4 Instruction Details sesee 3 56 2 4 1 Basic Instr ctionis n ete ee ure ret 3 56 2 4 2 Application Instructions ee e 3 95
40. without activating the machine when checking a program B Setting Turn ON special utility relay No 2301 to skip input refresh reading from input relays Input relays can then be turned ON OFF with the KV P3E 01 or with KV IncrediWare DOS on the monitor display Example Set input relay No 0000 to ON to disable input refresh set to OFF to enable input refresh 0000 2301 A Note If input refresh is disabled it is not enabled until input relay No 0000 is turned on from the handheld programmer 3 28 Chapter 1 Programming 1 5 Extended Ladder Diagrams 1 5 Extended Ladder Diagrams This section describes KEYENCE s unique extended ladder diagram 1 5 1 Features of Extended Ladder Diagrams The extended ladder diagram is a programming method developed to reduce problems related to design testing operation and maintenance of programs In a conventional ladder diagram output instructions can be written only on the right side of a ladder diagram On the other hand in an extended ladder diagram output instructions can be written anywhere except on the left As the result the programs shown below can be written Mixture of input and output circuits Conventional ladder diagram Extended ladder diagram y IN Jd X JON J Y Y Ye Only input circuits Only output Only input Both input Only output can be written circuits can circuits can circuits and circuits can be written be output circuits be assem
41. 0 Input relays Direct input allowed area Interrupt inputs INTO to INT3 Polarity inversion allowed Input captures They function as B phase of high speed counters through specification of utility relays in KV 10 0009 High speed counter 0 input High speed counter 0 High speed counter 1 input High speed input counter 1 A phase Input relays High speed counter 0 High speed input counter 1 B phase High speed counter 0 Preset High speed _ input counter 1 0010 to 0415 Input relays 0500 0503 High speed counter 0 output 70 points High speed counter 1 output Output relays Direct output Specified frequency pulse output allowed area Ramp up down control output 0504 to 0915 Output relays 76 points 1000 to 1915 Internal utility relays 160 points 2000 to 2815 Special utility relays 144 points 2900 to 2915 Special utility relays HKEY information storage area 3000 to 17915 Internal utility relays 2 144 points Note 1 The ON OFF status of the set functions is always cleared when the opera tion mode is changed from PROGRAM to RUN However special utility relays 2700 to 2715 are held even when the operation mode is changed from PROGRAM to RUN or when the power is turned off Note 2 Internal utility relays can be held by setting the MEMSW in
42. 0 to 17915 DMO0000 to DM1999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 ANDs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register 8 2 to 33 1 20 2 to 45 1 ORs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register 8 2 to 33 1 20 2 to 45 1 EXCLUSIVE ORA EORA G FUN 15 R No DM No TM xx constant TMxx 0000 to 17915 DMO0000 to DM1999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 EXCLUSIVE ORs each of 16 bits of internal register and that of value specified by operand and inputs result back to same register 8 2 to 33 1 20 2 to 45 1 SHIFT RIGHT A SRA FNC 41 SRA FUN 41 SHIFT LEFT A SLA FNC 40 SLA FUN 40 ROTATE RIGHT A RRA FUN 37 RRA FUN 37 ROTATE LEFT A RLA FUN 35 RLA FUN 35 constant 01 to 16 Moves content of internal register serially right by value specified by operand 9 3 to 27 6 21 3 to 39 6 Moves content of internal register serially left by value specified by operand 9 2 to 27 6 21 2 to 39 6 Rotates contents of internal register and carry bit 2009 clockwise by operand value 10 3 to 28 6 22 3 to 40 6 Rotates contents of inte
43. 00 Series Chapter 9 KV AD4 DA4 Analog I O Unit KV 10 80 Series Only Describes the optional Analog l O unit for KV 10 80 Series eel Troubleshooting This chapter describes the error code list countermeasures against problems and error indications for each unit 3 i ty y cr 3 Appendices The appendix includes a list of ladder program applications and the index 2 Support Software Chapter 1 Introduction Describes the items included in the package the product outline the method to connect a personal computer the installation method etc 7 Chapter 2 Editor Describes the operating procedures in Editor mode Chapter 3 Simulator Describes the operating procedures in Simulator mode Chapter 4 Monitor Describes the operating procedures in Monitor mode Appendices Includes instructions list devices list sample program list and quick reference for key operation and shortcuts Programming Chapter 1 Programming Describes basic knowledge including program creation procedures device configuration relay assignments special functions to set and confirm Visual KV Series operations as well as the extended ladder diagrams Understand the contents described here com pletely at first before creating programs Chapter 2 Instructions Describes the concrete usage of instructions in the KV Series Refer to Chapter 3 Interrupts on page 3 183
44. 0000 to FFFF TMOO to TM29 DMO0000 to DM1999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 14 0 to 68 0 3 5 26 0 to 82 0 3 12 Compares content of internal register and value specified by operand 13 0 to 65 0 3 5 25 0 to 79 0 Adds content of internal register and value specified by operand and inputs result back to same register SUBTRACT SUB FNC 46 SUB FNC 46 MULTIPLY MUL FNC 28 MUL FNC 28 DIVIDE DIV FNC 11 DIV FNC 11 DMO0000 to DM0999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 DMO0000 to DM1999 TMOO to TM31 3100000 to 65535 0000 to FFFF 3s TMOO to TM29 15 0 to 68 0 27 0 to 82 0 Subtracts value specified by operand from content of register and inputs result back to same register 17 0 to 71 0 29 0 to 85 0 Multiplies content of internal register by value specified by operand and inputs result back to same register 22 0 to 79 0 34 0 to 93 0 Divides content of internal register by value specified by operand and inputs result back to same register 3 48 Chapter 2 Instructions Instruction Mnemonic Operand 2 2 Instruction List ASALECESASN AE KV 10 16 24 40 80 Operand value KV 10 16 Operand value KV 24 40 80 Exec time us Function ANDA FNC 01 ANDA
45. 11 Turns ON when result of arithmetic operation is positive 2012 Turns ON when an arithmetic operation generates an error Read only relay Special utility relays for high speed counter 0 Chapter 4 High Speed Counters p 3 203 Relay No Function 2100 Internal clock used only for CTHO 1 us 2101 Internal clock used only for CTHO 10 us 2102 Internal clock used only for CTHO 100 us 2103 Automatic clear of CTHO when comparator CTCO ON Cleared turns ON OFF Not cleared 2104 Prohibits permits direct output to 0500 when ON Prohibited comparator CTCO turns ON OFF Permitted 2105 Direct output to 0500 is set to OFF when comparator ON Set to OFF CTCO turns ON OFF Not set to OFF 2106 Direct output to 0500 is set to ON when comparator ON Set to ON CTCO turns ON OFF Not set to ON 2107 ON OFF status of output to 0500 is reversed each ON Reversed time comparator CTCO turns ON OFF Not reversed 2108 Prohibits permits direct output to 0500 when ON Prohibited comparator CTC1 turns ON OFF Permitted 2109 Direct output to 0500 is set to OFF when comparator ON Set to OFF CTC1 turns ON OFF Not set to OFF 2110 Direct output to 0500 is set to ON when comparator ON Set to ON CTC1 turns ON FF Not set to ON 2111 ON OFF status of output to 0500 is reversed each ON Reversed time comparator CTC1 turns ON OFF Not reversed 2112 Automatic clear of CTHO when comparator CTC1 ON Cleared turns ON OFF Not cleared 2113 Sel
46. 16T 16 output terminal unit The KV R1A I O Distribution Unit accommodates 5 input units and 5 output units Addresses are set with address switches 3 22 Chapter 1 Programming 1 4 Special Functions 1 4 Special Functions This section describes special functions to set and confirm operations on the Visual KV Series and useful functions for program debugging and adjustment of external equipment 1 4 1 Input Time Constant Change Function The input time constant can be changed when a signal is read from an input contact When connecting external equipment which has no contact in which chattering such as transistor outputs does not occur and inputting pulses of short width the input time constant change function can be used to decrease the input time constant Setting the input time constant for basic units using special utility relays The input time constant for a basic unit can be changed using data memory DM1940 and special utility relay 2813 Though the input time constant is usually 10 ms it can be changed to a value that corresponds to the number stored in DM1940 by setting special utility relay 2813 to ON If the HSP instruction and special utility relay 2813 are used at the same time priority is given to the HSP instruction and the number stored in DM1940 is ignored EN B Special utility relay 2813 OFF Sets the input time constant to 10 ms ON Refers to the number stored in DM1940 the
47. 2 40 0 to 44 0 Converts position of highest order bit with 1 in internal register into 4 bit data lt TBCD gt TRANSFER TBCD FNC 47 19 0 to 21 0 BCD T TBCD TBCD JFNC 47 31 0 to 35 0 Converts content of internal register 16 bit binary into 4 digit BCD data TRANSFER TBIN FNC 48 BIN T TBIN gt TBIN FNC 48 lt ASC gt ASCII ASC FNC 02 CONVERT T ASC ASC FNC 02 18 0 to 20 0 30 0 to 34 0 Converts content of internal register 4 digit BCD into 16 bit binary data 8 0 20 0 to 22 0 Converts content of lower order byte of internal register into 2 digit ASCII code REVERSE lt RASC gt ASCII RASC FNC 32 CONVERT T RASC RASC FNC 32 SQUARE ROOT FNC 36 ROOT KV 300 Instruction Symbol ROOT FNC 36 Mnemonic Operand KV 300 12 0 to 14 0 24 0 to 28 0 Converts 2 digit ASCII code into one byte data 102 0 to 103 0 114 0 to 117 0 Operand value Exec time us Takes square root of 32 bit data TMOO higher order byte internal register lower order byte and inputs result back to same register Function DATA nnnn MEMORY DW gt WRITE DMmmmm constant DM No nnnn 0000 to 65535 0000 to FFFF DMmmmm DM0000 to DM9999 0 60 to 1 40 Writes constan
48. 3 3rd input module 300 to 303 400 to 403 4th input module 400 to 403 1st output module 603 to 606 603 to 606 2nd output module 703 to 703 703 to 703 3rd output module 803 to 803 803 to 803 4th output module 903 to 903 903 to 903 Relay Nos of expansion units are automatically assigned in the order of connection The connection order is counted only for input and output units When l O units are connected they are counted as input units and output units separately Chapter 1 Programming 1 3 Device Configuration 1 3 2 Relay No The relay No configuration is shown below Channel No Contact No 00 to 15 Address No Input O to 4 output 5 to 9 Address No Address Nos are assigned to basic units input expansion units output expansion units and I O expansion units Zero to 4 are assigned to input units while 5 to 9 are assigned to output units Address Nos assigned in a unit vary based on the number of I O terminals and the connection position of the unit Address Nos KV 10xx 0 5 KV 16xx 0 5 KV 24xx 0 5 KV 40xx 0 1 5 kV E4X 1 to 4 Basic units Input expansion units KV E8X 1 to 4 KV E16X 1 to 4 KV E4R E4T P 6 to 9 Output expansion units KV E8R E8T P 6 to 9 KV E16R E16T P 6to 9 1 O expansion units KV E4XR E4XT P 1 to 4 6 to9 2 to 4 in KV 40xx E Address No a
49. 3 Converts 4 bit data specified by operand of internal register into 16 bit data DEMULTI DMX DMX FUN 12 PLEXER f DMX DMX FUN 12 Converts position of highest order bit with 1 in internal register into 4 bit data TRANSFER TBCD TBCD FUN 47 BCD 4 TBCD TBCD FUN 47 Converts content of internal register 16 bit binary into 4 digit BCD data TRANSFER TBIN TBIN FUN 48 BIN f TBIN TBIN G FUN 48 ASCII 4 ASC ASC FUN 02 CONVERT sp ASC ASC G FUN 02 REVERSE ASCII CONVERT RASC RASC FUN 32 4 RASC RASC G FUN 32 SQUARE ROOT ROOT ROOT FUN 36 JROOT ROOT FUN 36 Converts content of internal register 4 digit BCD into 16 bit binary data Converts content of lower order 8 bytes of internal register into 2 digit ASCII code Converts 2 digit ASCII code of internal register into 2 digit numerical value Takes square root of 32 bit data TMOO higher order byte internal register lower order byte and inputs result back to same register Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each instruction Al
50. 5 Forces relay ON and holds 1 9to 12 8 T000 to T249 this status when input is ON C000 to C249 0500 to 1915 2009 2100 to 17915 T000 to T249 C000 to C249 CTHO to CTH1 CTCO to CTC3 Forces R T C OFF when input 1 9 to 20 5 is ON ddddd 16 bit on delay T that counts ox Fo T No 000 to 249 down in 0 1 s decrements preset 00000 to Hddddd value 65535 16 bit on delay T that counts A hood down in 0 01 s decrements 12 0 to 17 8 12 0 to 17 8 3 34 Chapter2 Instructions Instruction Symbol Mnemonic Operand 2 1 Instruction List MISTENA SEGIS Exec time Operand value Function ES us 1 ms TIMER ddddd P ooxE TMS T No FUN51 preset value 16 bit on delay T that counts down in 1 ms 12 0 to 17 8 decrements 000 to 249 0000 to 65535 COUNTER ddddd Cxxx Fe nnnn preset value C No counter input R 00000 to 65535 000 to 249 0000 to 17915 Sets 16 bit up counter 12 0 to 17 8 UP DOWN COUNTER UDC xxx UP Dw ddddd RES C No preset value 000 to 249 00000 to 65535 Sets a 16 bit up down 13 0 to 24 0 counter l DIFFEREN TIATE UP nnnn DIFJI nnnn DIFDI Turns ON R for 1 scan time at rising edge of 11 210 13 2 1000 to 1915 input 3000 to 9915 Turns ON R for 1 scan time at falling edge of 10 0 to 12 8 input i R No Turns ON R and holds this 0
51. 500 to 1915 status when SET input is ON 2009 Turns OFF R when RESET 8 2 to 19 8 2100 to 17915 input is ON nnnn 1st R No mmmm Last R No 1000 to 1915 3000 to 9915 Sets shift register 5 KV 10 0000 to 0005 KV 16 0000 to 0009 KV 24 0000 to 0015 KV 40 0000 to 0107 Reduces input relay time constant to 10 us for 3 8 to 9 4 higher input response MASTER CONTROL Selects ON OFF status of R coils Ts or Cs MASTER CONTROL RESET r Represents end of MC MEMORY SWITCH constant 0000 to FFFF Sets memory switches NOP JE Performs no operation END I Indicates end of each routine of program I instruction Indicates end of entire program Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each 1 34 0 25 nx 0 25 n No of shift steps All operand values are shown in normal notation The corresponding relay num bers in X Y M notation are shown below Normal notation 0000 to 0415 0500 to 0915 1000 to 6915 7000 to 17915 X Y M notation X000 to X04F Y050 to YO9F M1000 to M6915 X700 to X174F or Y750 to Y179F Chapter2 Instructions 3 35 2 1 Instruction List Visual KV Series 2 1 2 Application Instructions Instruction Mnemonic Operand Operand value Function Exec ti
52. 7 1 1 Communications Specification esses 3 306 7 1 2 Connection with the KV Unit sesssseseeeeeenenneenenneennnen een 3 306 7 1 3 Connecting the KV 300 CPU to a Personal Computer usssss 3 307 7 2 Serial Communication sesssssseeeeeeeeneren eene 3 308 7 2 1 Command Transmission Procedure ssesseeeeeeene 3 308 11 7 2 2 Format of Commands Responses cccccccnccconccnonnconncnoncconcnnnncnnnnnnan cnn enne 3 309 7 2 8 Communication Command Response List sesseeees 3 310 7 2 4 Setting Communication Commands and Responses to Commands 3 311 7 2 5 Other Response Codes essere rennen 3 315 1 2 6 Error Gode Listige tora die ee e DG eei eit die He rte eas 3 316 7 2 7 Example Program tte eee erede tet its 3 317 7 3 Loading Text Data eene ca eie dades 3 318 7 3 1 Receiving Text Data mraint a a gadovi nnne nennen nre 3 318 7 3 2 Transmitting Text Data imanaren en a eine en 3 319 LI AMERO nc terea ERROREM RR RRRERM ERE 3 320 A ASClI Code List 4 0 6 aidan kei At tet ecd 3 321 Chapter 8 Programming Examples 8 1 List E 3 324 9 2 Details iii ee A O a t eget 3 326 8 2 1 Reference Program Examples ooooiooccconocccononcnononcnnnnoncnnnnnn coran cnn nnnn cnn nana nn nana 3 326 Basic INStructions si 22 2cceioecc en ip tr 3 326 Application Instructions
53. A SET 2008 00020 TM29 sr a Note 1 Be sure to set the constant scan time value so it is larger than the actual scan time Note 2 If the actual scan time exceeds the set scan time special utility relay 2304 turns ON during the next 1 scan while the actual scan time is written to TM28 unit 1 ms Note 3 The scan time can be set up to 200 ms in temporary data memory TM29 If a value larger than 200 ms is input it will be treated as 200 ms Chapter 1 Programming 3 25 1 4 Special Functions 1 4 4 Output Disabled Function This function disables outputs from each unit in RUN mode without regard to the program used By disabling external outputs the program can be debugged while external equipment is connected even when output of signals to the external equipment is not desired B Setting procedure When special utility relay 2300 turns ON all outputs from all output relays 0500 to 0915 to the outside are cleared after 1 scan is finished However the display in the Access Window and the output indicator lamps are not cleared B Setting example By setting resetting special utility relay 2300 using the Access Window the KV IncrediWare DOS or LADDER BUILDER for KV programming support software or the KV P3E 01 handheld programmer the external output prohibition function can be used External outputs are prohibited while input 0000 is ON External outputs are permit ted though while input 0000 is
54. ARRANTIES AND DISCLAIMERS Caution See 3 367 No part of this manual may be reprinted or reproduced in any form or by any means without the prior written permission of KEYENCE CORPORATION The content of this manual is subject to change without notice KEYENCE has thoroughly checked and reviewed this manual Please contact the sales office listed at the end of this manual if you have any questions or comments regarding this manual or if you find an error KEYENCE assumes no liability for damages resulting from the use of the infor mation in this manual item 3 above notwithstanding KEYENCE will replace any incomplete or incorrectly collated manual All company names and product names in this manual are registered trademarks or trademarks of their respective owners 23 Chapter 1 Programming This chapter 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 o Fora detailed description of instructions refer to 2 4 Instruction Details p 3 56 1 1 Before Creating Programs sse 3 2 1 1 14 Flow from Introduction to Operation ssseeeenene 3 2 T4 2 Scam Tite E 3 3 1 2 User Memory soosis earan r A NEER EA nnne nennen 3 4
55. KV C32T B16R B16S Connector Output Module 1 172 Parts and f rictlons acacia diiniita 5 2 6 Wiring KV R1A I O Distribution Module Parts and f ricllons eig ate de 5 2 7 Wiring KV R8X R16X R8R R16R R8T R16T I O Terminal Modules 1 174 Parts and functions idiota 1 174 5 2 8 Module Names and Functions oooocccnonccnnoncnononnncnananonnnnncnnnn cnn nano non nnrnnnnnn cnn 1 175 5 2 9 Peripheral Equipment Names and Functions ocooocccnoncccnnonnnonancnonancnnnnancnnnnos 1 176 5 3 Module Unit Connections oooncccinnnnnncninccnnnccnnccnoncnnccnonncnnnn conc cnnnnnanc crac 1 178 5 3 1 Environmental Requirements ooooonccccnocccononcnononnncnnnnncnnnnnnnnon cnn nana eee 1 178 5 3 2 Installation Guidelines 1 178 5 3 3 Assembling the System 3 t e PEERS DOR FORE EI RI 1 179 Connecting modules i sraide ini einas eide tenate a eE 1 179 5 3 4 Mounting to the DIN Rail o ooonnccnnoniccnnnnccnanccnnnnancnnnanco nano emen 1 180 5 3 5 Removing the Terminal Block s raro non nro nnnnnn nro 1 181 15 5 3 6 Connecting the AC Power Supply Module and DC Power Distribution Module 1 182 KV U4 AC Power Supply Module seen 1 182 KV U5 DC Power Distribution Module esee 1 182 5 3 7 l O GOhnectors 3 ode epe P nr ERHERM DAR PRIMERS 1 183 IVES00 GPUs odit deo ida en Ee 1 183 KV G16X C32X i ut
56. MEYENCE User s Manual 96M0366 Visual KV Series El 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 Safety Precautions Symbols Conventions 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 The following symbols alert you to important messages Be sure to read these messages carefully Failure to follow instructions may lead to injury electric A WARNING shock burn etc A CAUTION Failure to follow instructions may lead to product damage Note Provides additional information on proper operation 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 Conventional KV Series KV 10AR AT DR DT KV 24AR AT DR DT KV 10R W T W KV 24R W T W KV 80R W T W KV 300 KV 16AR AT DR DT KV 40AR AT DR DT KV 16R W T W KV 40R W T W KV 300 Series KV 10 80 Series General Precautions Atstartup and during operation be sure to monitor the functions and perfor mance of the KV Sereis PLC We recommend that you take substantial safety measures to avoid any damage in
57. OFF 0000 2300 For more about operating procedures refer to the Chapter 6 Handheld Programmer p 1 195 Input Refresh Disabled Function This function disables the update of inputs from each unit triggered by input signals from external equipment By disabling external input refresh inputs from each unit can be set to ON OFF in monitor status without mechanical operations to enable a program check B Setting procedure When special utility relay 2301 turns ON input refresh read of input relays for all input relays 0000 to 0415 used by the QL Series is skipped In this status inputs can be set to ON OFF from the Access Window the KV IncrediWare DOS or LADDER BUILDER for KV programming support software or the KV P3E 01 handheld programmer B Setting example By setting resetting special utility relay 2301 using the Access Window the KV IncrediWare DOS or LADDER BUILDER for KV programming support software or the KV P3E 01 handheld programmer the external input refresh prohibition function can be used External input refresh is prohibited while input 0000 is ON External input refresh is permitted though while input 0000 is OFF 0000 2301 For more about operating procedures refer to the Chapter 6 Handheld Programmer p 1 195 Note Once external input refresh is prohibited it can be permitted only by setting special utility relay 2301 to OFF from the Access Window the KV IncrediWare
58. OR BAR 0000 to 2915 T000 to T063 C000 to C063 CTCO to CTC3 0000 to 6915 T000 to T119 C000 to C119 CTCO to CTC3 1 5 to 2 5 Connects N O contact to bus 2 1 to 3 5 Connects N C contact to bus 1 5 to 2 5 Connects N O contact in series with previous contact 2 7 to 4 5 Connects N C contact in series with previous contact 1 5 to 2 5 Connects N O contact in parallel with previous contact 2 7 to 4 5 Connects N C contact in parallel with previous contact AND LOAD OR LOAD 1 0 to 1 4 Connects in series blocks made of one or more contacts 1 0 to 1 4 Connects in parallel blocks made of one or more contacts OUT OUT BAR 0500 to 1915 2009 2300 to 2915 0500 to 1915 2009 2300 to 6915 5 2 to 8 4 Outputs input ON OFF status to R coil Outputs inverted input 6 4 to 10 4 ON OFF status to R Coil 0500 to 1915 2009 2100 to 2915 T000 to T063 C000 to C063 0500 to 1915 2009 2100 to 6915 T000 to T119 C000 to C119 3 1 to 23 0 Forces R ON and holds this status when input is ON 0500 to 1915 2009 2100 to 2915 T000 to T063 C000 to C063 CTHO to CTH1 CTCO to CTC3 0500 to 1915 2009 2100 to 6915 T000 to T119 C000 to C119 CTHO to CTH1 CTCO to CTC3 3 1 to 24 0 Forces R T C OFF when input is ON ddddd T Xxx ddddd TIMER 4H xxx T No preset value ddddd 7 S xxx 1
59. Output Setting with the High speed Counter Comparator 3 238 Changing the pulse period and width seeeeeee 3 238 Calculating the pulse period and comparator preset value 3 239 Operation with special utility relays eeeeenene 3 239 4 7 Examples of Direct Clock Pulse Output eeeeeeeee 3 242 4 7 1 Example of Outputting a Pulse with 1 1 ON OFF Ratio ssssss 3 242 4 7 2 Example of Outputting a Pulse with Variable ON OFF Ratio 3 245 4 7 3 Example of Stopping the Pulse Output at a Specified Pulse Count 3 249 4 7 4 Application of Direct Clock Pulse Output Ramp up down control 3 251 Chapter 5 Positioning Control Visual KV 5 1 Outline of Positioning Control 2 2 0 0 cece ceee eee eeeeeeeneeeeeeeeeeettaeeeeeeennees 3 254 5 1 1 Ramp up down Control essen nennen nennen nenne 3 254 5 2 Parameter Setting and Operating Procedures ssssssss 3 255 5 2 1 Parameter Setting Procedure sesssssseseeeeeeeeennenennens 3 255 5 2 2 Operating Procedure essssssssseseeeeeeneeneen nennen nnne nennen 3 257 5 3 Examples of Using the Positioning Control Function 3 258 5 31 Connection Example iet den ERO 3 258 59 2 N sidere ce bead e tos cade pete c alie c erede 3 258 5 3 3
60. TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 9 20 to 36 00 11 20 to 38 00 Compares content of internal register and value specified by operand 7 70 to 35 00 9 70 to 37 00 Adds content of internal register and value specified by operand and inputs result back to same register SUBTRACT nnnn lt SUB gt SUB FNC 46 nnnn T SUB gt SUB FNC 46 MULTIPLY nnnn lt MUL gt MUL FNC 28 nnnn T MUL MUL FNC 28 DIVIDE nnnn DIV DIV FNC 11 nnnn DIV gt DIV FNC 11 DM0000 to DM9999 TMOO to TM31 00000 to 65535 0000 to FFFF 3 TMOO to TM29 8 40 to 35 00 10 40 to 37 00 Subtracts value specified by operand from content of register and inputs result back to same register 9 80 to 37 00 11 80 to 39 00 Multiplies content of internal register by value specified by operand and inputs result back to same register 13 70 to 41 00 15 70 to 42 00 Divides content of internal register by value specified by operand and inputs result back to same register nnnn ANDA ANDA FNC 01 nnnn TANDA ANDA FNC 01 nnnn ORA gt ORA FNC 31 nnnn T ORA ORA FNC 31 0000 to 0009 0500 to 17915 DM0000 to DM9999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 6 90 to 33 00
61. V Series However pay attention to the I O addressing compatibility before use 8 Contents 3 Programming Chapter 1 Programming 1 1 Before Creating Programs sese eene 3 2 1 1 1 Flow from Introduction to Operation seeeneen 3 2 1 1 2 Scan Tite cette e ied t AE 3 3 SCalVtilTe utto p e RH EH HOUR ESI 3 3 Input response time delay ooococcnincnonnnccnnnncnnnsccnnnnccennrcnn ren 3 3 1 2 User Memory cen ia 3 4 1 271 Program Capacity 1 n detti mtt ego Uem 3 4 Maximum number of lines in a program seeem 3 4 Calculating the byte count used sesssssseeneeeeeenenn 3 4 1 3 Device Configuration ssssssssseeeeneeeeneeeneee nennen nenne 3 5 1 9 Device List ii Ree rte e etre a 3 5 Relay llSt x e tate tte eee e etes 3 5 List of I O relays in basic units seeeennn 3 5 List of relays in expansion units ssee 3 6 1 3 2 Belay NO eiie pU meets 3 7 Address os 3 7 Coritact INO x aceso 3 8 Channel No o wits att ei uad eb ERU nu cii das 3 8 1 3 3 Assigning Relay Nos nnne nennen nnns 3 8 1 34 Input Relays etc Eee Eee Ee tcd 3 9 BasIC Ul nei oe d e HE CREME anta 3 9 Expansion Units avoids ecce eter te dp ese cae e ege cb ec e pgs 3 10 1 3 5 Output Rel Sinai eo Reti aa 3 10 Output operation time ooooconccnnncccncccnncnnnnncnnnncnnnnnnncnnnn eiis 3
62. an error occurs in cam switch operation Read only relay Chapter 1 Programming 3 1 5 1 3 Device Configuration Relay No Function 2400 Timing of CTHO external signal OFF External preset OFF ERE y O alling edge OFF not used ON mgedge OFF At rising edge ON ON Interrupt polarity of INT SEF At risi d hdd At falli d x OFF rising edge ON aling edge fp At rising edge ON A h ON t both edges Interrupt polarity of INT1 OFF Avis OFF Attali d ON OFF t rising edge t falling edge OFF At rising edge ON A h ON t both edges ON ON Set OFF Not set CTHO set as ring counter Ignore phase B input when CTHO is set to no multiplication mode ON Ignore phase B input and always count up OFF Use phase B input as usual Timing of CTH1 external preset OFF External preset OFF ON ON At falling edge At rising edge OFF not used ON ST OE oy Interrupt polarity of INT2 OFF OFF ON ON OFF At rising edge ON At falling edge OFF At rising edge ON Interrupt polarity of INT3 SES ia OFF Aitai d ON rd d ON OFF t rising edge t falling edge OFF t rising edge ON ON CTH1 set as ring counter ON Set OFF Not set Ignore phase B input when CTH1 is set to no multiplication mode ON Ignore phase B input and always count up OFF Use phase B as usual At both edges At both edges Customized switch F1 on KV D20 operator interface panel is as
63. ansistor type output unit Chapter 5 Positioning Control p 3 253 Note 3 When the specified frequency pulse output function is used output relay 0501 outputs pulses in a transistor type output unit 4 5 1 Specified Frequency Pulse Output Function p 3 228 3 10 Chapter 1 Programming 1 3 Device Configuration 1 3 6 Internal Utility Relays In a relay circuit when one relay contact is used twice or more inside the circuit a multi pole relay with the same number of poles as the number used may be needed Internal utility relays function only in programs and eliminate the complexity of relay circuits to facilitate circuit design Note 1 Internal utility relays function as contacts and relay coils in programs Note 2 There is no restriction of the contact type N O or N C used the order the relay Nos are used or the number of relays used Retentive function of internal utility relays Except for internal utility relays all relays turn OFF when the operation mode is changed or when operation is stopped via a power shutdown When operation is restarted all relays remain OFF except relays whose input condition is ON How ever internal utility relays can be set using the MEMSW memory switch whether or not they are to be retained Internal utility relays 2700 to 2715 however are always retained When an internal utility relay is set to be retained its ON OFF status is stored even if the pow
64. ased on the sequence circuit as follows F L Writes the ON OFF status of all input terminals to the input Input processing memory before executing the program J Reads the ON OFF status of each device internal utility relay timer counter etc based on the instructions and performs Program execution arithmetic operations J Writes the arithmetic operation result to the output memory Output processing Outputs the contents of the output memory to output terminals The duration of time required to perform one cycle is called the scan time or cycle time The scan time varies based on program size and the instructions used in the program Input response time delay In addition to the I O processing time there is also an input time delay in the Visual KV Series caused by the scan time The input time delay is generated because the input status can only be read during the input processing time If the input status is changed after input processing the changed contents can only be read during the next scan time In the figure below 1 and 2 can be read but 3 cannot be read Input signal lt gt lt gt lt gt S cho uw d OFF Read Read Program execution k Scan time pk Scan time gt Reference The maximum and minimum values of the input response time are as follows Maximum value Input time constant Scan time x 2 Output response delay time Program execution Program execution
65. bled canbe assembled assembled Connection of two or more instructions on one line Conventional ladder diagram Extended ladder diagram HOF H E 04 V A Instructions can be written only from the O left end to the right end on one line Many instructions can be connected Branch from output coil Conventional ladder diagram Extended ladder diagram Branches can be made only from input Branches can also be made from output contacts coils There is only a single line so the ladder diagram is easier to understand Three lines are required Chapter 1 Programming 3 29 1 5 Extended Ladder Diagrams 1 5 2 Advantages of Extended Ladder Diagrams The number of lines in a ladder diagram can be reduced Because both output instructions and input instructions can be written side by side the number of program lines can be reduced As the result the contents of the program can be seen ata glance Example When DMO0000 stores 1000 0500 turns ON 2000 0501 turns ON 3000 0502 turns ON Conventional ladder diagram Extended ladder diagram 2002 DM0000 2002 DMO0000 01000 2010 0500 LDA H LDA MA CMP 3 02000 2010 0501 CMP 4 03000 2010 0502 CMP 4 02000 CMP In a conventional ladder diagram operations performed by the program cannot be easily understood In an extended ladder diagram operations performed by the program can be understood at a glance 03000 Processin
66. can while receiving text data Communication port B text data acceptance error Remains ON during only 1 scan ON when text data is being received while relay 2806 or relay 2808 is ON Communication port B text data receive error Remains ON during only 1 scan when a text data receive error occurs Communication port B text data send start remains ON during sending Turns ON when an abnormality occurs with backup battery Sets input time constant to all inputs in basic module except inputs used by HSP instruction OFF Sets input time constant to 10 ms ON Refers to value stored in DM1940 then determines input time constant 2814 HKEY instruction Multiple keys are prohibited 2815 HKEY instruction Scan is finished 2900 to 2915 HKEY information storage area Note Never use special utility relays that are not shown above Chapter 1 Programming 3 17 1 3 Device Configuration 1 3 9 Timers and Counters Timers and counters can be set in a program and their outputs can be used as contacts elsewhere in the program There is no restriction on the contact type N O or N C and the order of use A same number can be assigned to only one timer or counter For example TOO5 and C005 cannot be used in the same program Timer Counter list Description Coil instruction Timer 0 1 s timer TMR000 to 249 High speed timer 0 01 s timer T000 to T249 High speed 1 ms time
67. de operation can take place according to a preset scan time in ms B Setting Write the desired scan time into TM29 temporary data memory then turn on special utility relay No 2303 The scan time can also be written into TM31 Specify a scan time in increments of 10 ms a value of less than 10 ms is invalid Here write a value into TM equivalent to 10 times the scan time Example Set the constant scan time to 20 ms 02008 00200 TM29 2303 lt LDA gt lt STA gt SET Note 1 The set value for the constant scan time must be greater than the actual scan time Otherwise special utility relay 2304 turns on during every scan to disable constant scan time mode Note 2 If the scan time exceeds the set value special utility relay no 2304 turns on during the next scan Output Disabled Function During checking of a program this function clears output from output relays regard less of the program currently running B Setting Turn on special utility relay No 2300 After one scan is completed all output relays 00500 to 00503 07500 to 17915 are cleared Example Use the output disabled function by executing FORCED RESET RESET to special utility relay No 2300 from the monitor display To execute FORCED RESET or RESET refer to Chapter 6 Handheld Programmer p 1 195 Input Refresh Disabled Function Set this function if it is desired to turn ON OFF input relays from the monitor display
68. e function Nos used to enter instructions with the KV P3E 01 handheld programmer Refer to Chapter 6 Handheld Programmer on page 1 195 for details Function No Instruction Function No Instruction Function No Instruction Function No Instruction 00 ADD 13 EI 26 MEMSW 39 SFT 01 ANDA 14 ENDS 27 MPX 40 SLA 02 ASC 15 EORA 28 MUL 41 SRA 03 CALL 42 STA 04 CMP 43 STE 05 COM 44 STG 06 CON 45 STP 07 DEC 46 SUB 08 DI 47 TBCD 09 DIFD 48 TBIN DIFU 49 TMH DIV 50 TMIN DMX 51 TMS 52 UDC Reference To find function No assigned to desired function 1 Press the FUN key 2 When the cursor appears at the position where the function No is to be entered press the or key and scroll the functions and assigned Nos to find the desired function Chapter 2 Instructions 9 41 Instruction List Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each 2 2 Instruction List 2 2 2 2 1 KV 10 16 24 40 80 Instruction Symbol instruction Abbreviations R Relay T Timer C Counter Decimal Hex Mnemonic Operand Basic Instructions KV 10 16 24 40 80 Operand value KV 10 16 Operand value KV 24 40 80 Exec time us Function LOAD LOAD BAR AND AND BAR OR
69. e of Voltage I O Wiring seen 1 317 8 3 4 Example of Current I O Wiring sese 1 318 8 3 5 Setting l O Ranges S iiaiai perseen aiena a naaa a EAA cn ener enne nnne 1 319 8 4 Programming 5 eco tet tentus tere tee 1 320 8 4 1 Input Characteristics A D nennen 1 320 8 4 2 Calculating Input Data A D ssseeeeeeeeenneneneneeneneneenn 1 321 8 4 3 Output Characteristics D A sssssseeeenenenenee nennen 1 322 8 4 4 Calculating Output Data D A sssseseeeneeneeeeene nennen 1 323 8 4 5 Assigning Data Memory DM Addresses ee 1 324 8 4 6 Reading Analog Input esee 1 325 8 4 7 Measuring Analog Input Average sesmm ee 1 326 8 4 8 Writing Analog Output ooocccnncnnnccnnccnoocnnoccconccnnncconcnnnn cn nnnn ran cnn enn nennen 1 327 8 4 9 Converting Analog Input to Analog Output coocccnccnnnccincococccnonnnancconnncnncnnnnnnnns 1 328 8 5 KV AN6 Appendices eene 1 329 8 54 Troubleshooting niet ua gegen 1 329 8 5 2 Pr cautloris ineo boite uso eee giu id 1 330 8 5 3 Specification te cubre tte oit 1 331 Environmental specifications cc eeeceeeseeeeeeeeeteseeeeseneeeeeeaeeseeaeeeeeneeeen 1 331 System specifications esses nennen 1 331 8 5 4 Dimensions e ede eae REIHE HERR UTR ERRORI ERI 1 332 KV AD4 DA4 Analog I O Unit 9 1 Outlines
70. ects multiplication mode for comparator CTHO OFF ON OFF ON OFF 1 pulse OFF x2 ON x4 ON 2 pulses Read only relay Multiplication mode 2 pulses 2113 ON 2114 ON Note Never use special utility relays that are not shown above 3 14 Chapter 1 Programming 1 3 Device Configuration EE A Special utility relays for high speed counter 1 Chapter 4 High Speed Counters p 3 203 Relay No Function 2200 Internal clock used only for CTH1 1 us 2201 Internal clock used only for CTH1 10 us 2202 Internal clock used only for CTH1 100 us 2203 Automatic clear of CTH1 when comparator CTC2 ON Cleared turns ON OFF Not cleared 2204 Prohibits permits direct output to 0501 when ON Prohibited comparator CTC2 turns ON OFF Permitted 2205 Direct output to 0501 is set to OFF when comparator ON Set to OFF CTC2 turns ON OFF Not set to OFF 2206 Direct output to 0501 is set to ON when comparator ON Set to ON CTC2 turns ON OFF Not set to ON 2207 ON OFF status of output to 0501 is reversed each ON Reversed time comparator CTC2 turns ON OFF Not reversed 2208 Prohibits permits direct output to 0501 when ON Prohibited comparator CTC3 turns ON OFF Permitted 2209 Direct output to 0501 is set to OFF when comparator ON Set to OFF CTC3 turns ON OFF Not set to OFF 2210 Di
71. eeesess 2 3 1 2 2 Features and functions of the Ladder Builder for KV ascessi 2 4 Features of the Ladder Builder for KV o oo eeeseeeseeeeseneeeeeneeeteneeeeeeaeeeeeaees 2 4 Functions of the Ladder Builder for KV ss 2 6 1 3 Before Programming eene 2 7 Machines to be prepared eese nennen 2 7 1 3 1 Differences from the KV IncrediWare DOS sssee 2 8 Differences from the Ladder Builder for KV Ver 1 0 sssesessss 2 8 1 4 Installing the Software sessssseeneeeneeenn 2 9 19 1 4 1 Preparation for installation oooonnccnnnncconnnncononcccononnnnnnrnnnnnrnnnnnrn emen 2 9 1 4 2 Installation Procedure sssini aieiaiei eda aa ataa eiat nnn 2 10 Installation in Windows 95 oooocccnnncccnnncccnnoncnonannnnnnrn conan cnn non cnn r een 2 10 Installation in Windows 3 1 ssm eme 2 12 1 5 Cautions for Use eco ed dicant phe eee reds un 2 13 1 6 Basic Operations eoe e bep asana aa T oa A EAE elei 2 14 1 6 1 Program creation flow and available modes eeeee 2 14 1 6 2 Starting up and exiting from the software ssssseeeee 2 16 1 6 3 A heo Ide HL t HE IUD s 2 18 1 6 4 Mouse operation and keyboard operation e 2 21 1 6 5 Online Help occa egit m IP ees bete e eeed 2 23 CEA Editor 2 1 Outline of the Editor Functions
72. elay Nos 0200 to 0215 Input time constant of input expansion unit with relay Nos 0300 to 0315 Input time constant of input expansion unit with relay Nos 0400 to 0415 Not available with the KV 40xx 1 3 5 Output Relays Output relays output the program execution results to the outside There are two types of outputs relay and transistor OFF 10 ms ON 10 us 2610 OFF 10 ms ON 10 us 2611 OFF 10 ms ON 10 us 2612 OFF 10 ms ON 10 us EI Note 1 Output relays function as contacts and relay coils in programs Note 2 There is no restriction of the contact type N O or N C used the order the relay Nos are used or the number of relays used Output operation time Transistor output OFF gt ON 50 us or less 10 us or less in 500 to 502 ON gt OFF 250 us or less 10 us or less in 500 to 502 100 us or less for other outputs in the basic unit e Relay output OFF gt ON 10 ms or less ON gt OFF 10 ms or less Transistor output type Relay output type KV 10AT P DT P KV 16AT P DT P KV 10AR DR KV 16AR DR KV 24AT P DT P KV 40AT P DT P KV 24AR DR KV 40AR DR KV E4T KV E8T P KV E4R KV E8R KV E16T P KV E4XT P KV E16R KV E4XR Note 1 When programming direct clock pulses output relays 0500 and 0501 are used to output pulses in a transistor type output unit Note 2 When the ramp up down control function is used output relay 0502 outputs positioning pulses in a tr
73. eme 2 136 4 2 1 Setting the PLC communication parameters sseeeees 2 136 4 2 2 Setting the comment transfer 2 138 4 3 Starting up and Exiting from the Monitor eseeeeees 2 139 4 3 1 Operating procedures for startup and exit sssseeees 2 139 4 3 2 Name and function of each part of the screen esseeee 2 143 4 44 Ladder Monitor eei ec Peer ERR LO MERE 4 4 1 Outline of the ladder monitor sseeeeeeenenennenen 4 4 2 Displaying the ladder monitor window 4 4 3 PLUC Errr check aee eem ee mate en denen 4 4 4 Starting the monitor ceci e Lei ite eee eid 4 4 5 Stopping the monitor s 4 4 6 Screen displayed while the monitor is running eene 2 146 4 4 7 Setting the PLC operation mode ssssssseeeenemeenenen 2 147 4 5 Monitor All and Registration Monitor seenne 2 148 4 5 1 Functions of the monitor all window eem 2 148 4 5 2 Functions of the registration monitor 20 0 eeseeeeeseeeeeeneeeeeneeeeesaeeeeeneeereneees 2 148 46 Monitor Function annn egeret eee ee er 2 149 4 6 1 Disabling the input refresh Disabling the output eeeeeeneeees 2 149 4 6 2 Changing the current values all at once sssesme 2 150 4 6 3 Device alicia npe ia 2 154 21 IN Append
74. er is turned off By using the retained relay all clear function FUN65 all relays which are set to be retained can be set to OFF For more about setting the memory switch refer to MEMSW instruction p 3 92 Application example of a retentive function Lift vertical movement control Internal utility relays 1000 and 1001 are set to be retained When the upper lower limit switch turns ON the direction of lift movement is inverted Even if the power is turned off while the lift is moving up or down the lift continues to move up or down when the power is turned on again Upper limit switch 0000 L_ FO Lower limit switch 00 L_ FO Move up 0501 00010 Tooo 0001 0000 1001 1001 00010 T001 HH T000 0501 0500 T001 0500 0501 S A rEND r ENDH Note The retentive function is effective only when internal utility relays retained by the self retentive circuit or the SET SFT KEEP instruction are also retained by the memory switch Internal utility relays are not retained in the program shown below 0000 1001 Chapter 1 Programming 3 11 1 3 Device Configuration 1 3 7 Special Utility Relays Description Each special utility relay has a unique function By using special utility relays effec tively programs can be simplified and program control improved Note 1 A special utility relay can be used as many times as desired in one program N
75. er of times 000 eso LD 0000 0000 xE D 0000 Ps i Hres 0500 Woo LD 0001 0001 oso LD 0001 001 KEEP 0500 ER SY SET 0500 NEW KV KV 300 KV 10 16 KV 24 40 80 0500 to 1915 0500 to 1915 0500 to 1915 0500 to 1915 2009 2009 2009 2009 2100 to 17915 2100 to 17915 2100 to 2915 2100 to 6915 T000 to T249 T000 to T249 T000 to T063 TO000 to T119 C000 to C249 C000 to C249 C000 to C063 C000 to C119 CTHO to CTH1 RES only CTCO to CTC3 RES only ENT src SET 6 3 66 Chapter2 Instructions The above page is created for explanation purposes only This page may be different from the actual page Chapter 2 Instructions 3 55
76. ers CTHO and CTH1 and four high speed counter comparators CTCO CTC1 CTC2 and CTC3 with a 30 kHz input response speed frequency two phases and size of 16 or 24 bits Note When a high speed counter or high speed counter comparator will be used as a 24 bit device a set value is required to be stored in a data memory using the MEMSW instruction For details about high speed counters and high speed counter comparators refer to Chapter 4 High speed Counters p 3 203 3 18 Chapter 1 Programming 1 3 10 Data Memories 1 3 Device Configuration Data memories store various types of data Data memories are not usually used in a program that consists of contacts coils timers and counters When arithmetic instructions are used however data memo ries can be used to store data for arithmetic operations as well as the results of arithmetic operations DM No Description DMO to DM999 Not specified can be used by user DM1000 to DM1099 Text receive port A DM1100 to DM1199 Text send port A DM1200 to DM1299 Text receive port B DM1300 to DM1399 Text send port B DM1400 Cam switch function The first output relay No DM1401 Cam switch function Comparison value in multi step comparator mode DM1402 Cam switch function Pulse count of one cycle of equipment input to CTHO DM1403 Not specified can be used by user DM1404 Measurement cycle ms
77. et value C No clock source R 00000 to 65535 000 to 249 0000 to 0009 0500 to 17915 7 60 to 9 45 Sets 16 bit up counter UP DOWN HP Gaa COUNTER t UDC FNC52 C No preset value 000 to 249 00000 to 65535 8 00 to 11 60 Sets a 16 bit up down counter DIFFEREN nnnn TIATE UP DIFU DIFU FNC10 DIFFEREN nnnn TIATE DOWN DIFD DIFD FNCO9 1000 to 1915 3000 to 6915 7000 to 9915 6 70 Turns ON R for 1 scan time at rising edge of input 6 70 Turns ON R for 1 scan time at falling edge of input KEEP KEEP JEE nmm KEEP FNC22 0500 to 1915 2009 2100 to 17915 6 10 to 7 90 Turns ON R and holds this status when SET input is ON SFT SHIFT Jeug mom RES mmmm SFT FNC39 1000 to 1915 3000 to 6915 7000 to 9915 6 40 to 8 20 Turns OFF R when RESET input is ON HIGH HSP SPEED HSP FNC18 0000 to 0009 4 66 to 4 92 Sets shift register MASTER CONTROL MC FNC24 MASTER CONTROL RESET MCR FNC25 Reduces input relay time constant to 25 ms for higher input response Selects ON OFF status of R coils Ts or Cs MEMORY SWITCH MEMSW FNC26 constant 0000 to FFFF Represents end of MC Sets memory switches NOP NOP FNC30 Performs no operation END END Indicates end of each routine of program
78. et teet ute tient LA tutte 1 184 KV C32T B16R B165 rnt dee Leer ied 1 185 KV R8X R16X R8R R16R R8T R16T seen 1 186 5 3 8 I O Terminal Modules Communication Cables and Power Distribution 1 187 Transmission distance by cable type sseeene 1 187 Connection patterns sse eene nnne nennen nennen 1 187 Incorrect wiring patterns eeeeeseseeeeeeeneeneneneennenn nennen 1 188 Power distribution i32 cece eA hah ai item AA T orc t 1 188 5 3 9 Connector Assembly Instructions essssseeneeneneenens 1 189 5 3 10 KV 300 CPU I O Indicators eeeseeeenenneeenennnnn nennen 1 191 5 3 11 KV 10 80 Expansion Units ae aar a raa raaa aa daa oaea raa iante daa nTa 1 192 5 312 Mounting Enviroriment 3 uocum secat edet 1 194 Handheld Programmer 6 1 Using the Handheld Programmer sseee 1 196 6 1 1 Outline of the Handheld Programmer sse 1 196 61 2 Precautlonis ta a 1 198 6 2 Basic Operations iirinn ernro nete cti ace ete 1 200 6 2 1 Basic Programming Operation ssssssseeenennennnen 1 200 6 3 Functlons rorem ie De poo E Ee petu et ient ete ibat d 1 216 FutictioniNos lIsti eai te a e RR ERR ERR EROR 1 216 ALIAGLEAR e M me 1 217 HANDHELD PROGRAMMER CLEAR essen 1 217 COUNTER CLEAR caca e Rope ote eee see 1 218 HIGH SPEED COUNTER CLEAR sese 1
79. g sequence is clear Ladder symbols can be laid out in processing sequence so the program flow is easier to understand In addition maintainability is considerably improved Example When the start switch is set to ON a lamp is lit for three seconds a buzzer is sounded for two seconds and then the motor starts to rotate 0000 1100 1100 1000 When the start switch 0000 is set to ON a lamp 0500 is lit and HA DIFU SET timer 0 is activated 1000 0500 00030 T000 1001 When timer 0 turns ON three seconds later the lamp goes out a STG QO 4T000 Hk RH uP i buzzer 0501 is sounded and timer 1 is activated 1518 vee toot Toq LAMP When timer 1 turns ON two seconds later the buzzer is stopped and the motor 0502 starts to rotate 1002 0502 0000 STG O HsH When the start switch 0000 is set to OFF the motor is stopped and all operations are reset Conventional ladder diagram Extended ladder diagram 0000 1000 0000 1000 1000 1001 Hnr m H ser 1000 TOO00 400010 1001 0500 00010 T000 1002 T000 STG O To Hk J KJ UMP 1001 1002 0501 00020 T001 1003 STG O T001 4 HA JMP T002 1003 0500 0501 00030 T002 1001 STG O OAT 4 E 93 JMP T000 T001 00020 By using an extended ladder diagram as shown above the program can be executed in the sequence of the processing to be performed So even a person who uses a relay sequence for the first time can understand the
80. g stored with PUSH 10 0 to 12 0 Reads amp clears input status and arithmetic flag stored with PUSH STG FNC 44 JMP FNC 21 1000 to 1915 1000 to 1915 3000 to 6915 11 0 to 14 0 Executes instructions between STG amp JMP when R operand is ON 10 0 to 13 0 Turns current stage OFF and next stage ON when input is ON ENDS FNC 14 7 0 to 9 0 Turns current stage OFF when input is ON STP FNC 45 0000 to 2915 T000 to T063 C000 to C063 CTCO to CTC3 0000 to 6915 T000 to T119 C000 to C119 CTCO to CTC3 3 7 to 5 3 Executes program between STP amp STE when R operand is ON STEP END STE FNC 43 Is used with STEP to make program step INTERVAL TIMER ITVL 4PLs DM nmm PAUSE mmmm RES DM amp R No DM0000 to DMO0985 1000 to 1912 DM0000 to DM1985 1000 to 1912 3000 to 6912 Measures pulse to pulse interval amp pulse width in specified mode 8 BIT COUNTER CTHO nnnn Clock source Rs 0004 2100 to 2102 8 bit 0 t0255 up counter for clock pulses with input response frequency of 10 kHz 8 BIT COUNTER COMPARA TOR siddddd cren n Comparator No ddddd preset value n 0 1 ddddd 00000 to 00255 3 0 to 4 0 Hardware based comparator between preset amp current values of high speed counter This comparator is turned ON when these
81. h STEP to make Turns ON program step STEP END Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each instruction All operand values are shown in normal notation The corresponding relay numbers in X Y M notation are shown below Normal notation X Y M notation 0000 to 0415 X000 to X04F 0500 to 0915 Y050 to YO9F 1000 to 6915 M1000 to M6915 7000 to 17915 X700 to X174F or Y750 to Y179F 3 36 Chapter2 Instructions 2 1 Instruction List TEE STIS Exec time Instruction Mnemonic Operand Operand value Function us DMnnnn E DMnnnn DMO0000 to INTERVAL DM No DM1985 TIMER i mmmm R mmmm E No 1000 to 1912 3000 to 9912 0004 16 bit 0 to 65535 up 16 BIT CTHO Count input 2100 down counter for clock COUNTER o H R 2101 pulses with input response 2102 frequency of 30 kHz n Hardware based comparator 16 BIT Comparator noo between preset amp current COUNTER ddddd No values of high speed counter COMPARA CAME ddddd Paa CTHO This comparator is 2 3 to 3 5 TOR preset turned ON when these value values are equal 0005 16 bit 0 to 65535 up 0500 down counter for clock 16 BIT CTH1 Count input eere nnnn H 2200 pulses with input COUNTER n 2201 response frequency of 30 2202 kHz Measures pulse to pulse interval amp pulse width in 20 0 to 80 0 specified mode
82. he handheld programmer Set the mode switch to PROGRAM Turns ON specified relay when input is ON and enables this relay to remain ON Turns OFF specified relay timer or counter when input is ON 0000 0500 L SET 0001 0500 i RES Coding Line No Instruction Operand 0000 LD 0000 0001 SET 0500 Coding 0002 LD 0001 0003 OUB 0500 Shows the coding for Output relay 0500 remains ON after input relay 0000 turns OFF Output relay A 0500 turns OFF when input relay 0001 turns ON the given SET instruction sets a latch whereas RES instruction resets it example RES instruction not only turns OFF relay coils but serves as a reset signal when a timer or counter is used as an operand 0091 00100 ow o 0100 jcooo 4 cooo 0000 0000 0002 w A Fes Note The SET and RES instructions can be entered in any order Note however that priority is given to the instruction that is entered last In the above example when both 0000 and 0001 are ON RES has priority over SET causing 0500 to remain OFF Differences between SET RES and KEEP Basically SET RES and KEEP p 3 57 and p 3 71 serve the same purpose SET and RES can be used separately Therefore RES can be placed before SET Another instruction may be placed between SET and RES KEEP needs only three lines of program therefore saving memory space when used a numb
83. ices Appendix A Error Message List ooo oooonnnccnnonicinnonccinnnccnnonccnnnrnnonanonanannnnnnns 2 156 Asi System errors aoso D o ie ar UE deti ote Da e Decet 2 156 A 2 Memory errore ze nante n Rd a CHR HER 2 156 A S PIG ertorsu ene det osea acd Boat 2 157 A 4 Installation errors ciim de PRI nint oni EP nee Dh 2 157 A 5 Errors that occur in the editor ssssssm em 2 158 A 6 Errors that occur in the monitor simulator se 2 159 A 7 Communication errors displayed in the monitor esses 2 159 A 8 E URL 2 160 A 9 Errors that occur during compilation eeseenm 2 161 Appendix B Instruction List sesss narco nnrr cnn nn ncnnnr nc 2 163 Bai iBasiciristructlons eee RE eet ta sedet e cree ty En 2 163 B 2 Application instructions eeeseeeenenm eren 2 164 B 3 ArithMetiCINStUCHONS cociente dean 2 165 B 4 Jnterr ptinstructions s ue io ei o ead eite 2 166 Appendix C Relay No List sessseeeeeeeeneneeeneen eene 2 167 C 1 Relays timers counters and memory numbers for each model 2 167 Appendix D Special Utility Relay List ssesemmme 2 168 D 1 Special relays and arithmetic operation flags seees 2 168 D 2 Special utility relays for high speed counter 0
84. input lower digit upper digit DM1928 DM1929 Input capture when INTO is generated lower digit upper digit DM1930 DM1931 Input capture when INT1 is generated lower digit upper digit DM1932 DM1933 Input capture when INT2 is generated lower digit upper digit DM1934 DM1935 Input capture when INT3 is generated lower digit upper digit DM1936 Specified frequency pulse output function Set frequency Hz DM1937 I O expansion unit connection information DM1938 Digital trimmer No 0 Upper limit value DM1939 Digital trimmer No 1 Upper limit value Input time constant setting 0 10us 1 20us 2 500 us 3 1ms 4 25ms 5 5ms 6 10 ms Any other value cannot be set DM1941 to DM1943 Reserved by system cannot be used by user Number of instructions converted into 1 scan when division DM1944 PROA conversion is performed DM1945 to DM1949 Not specified can be used by user DM1950 Access window error display 0 to 255 DM1951 to DM1999 Not specified can be used by user Read only relay DM1940 Note 1 16 bit binary data is stored in each of the data memories as for internal registers Note 2 The data stored in data memories is held even when the power is turned off or when the All Clear function is executed The backup time is 20 days or more in the KV 10xx and 2 months or more in other models Note 3 DM1000 to DM1999 are assigned as
85. iolis ecrire rte ee pte pede edes 3 28 1 5 Extended Ladder Diagrams sss 3 29 1 5 1 Features of Extended Ladder Diagrams ooococooccononcccononcconannncnnrnnnnnnn conan 3 29 1 5 2 Advantages of Extended Ladder Diagrams sess 3 30 1 5 8 Example of an Extended Ladder Diagram sesseeesssss 3 31 1 1 Before Creating Programs 1 1 Before Creating Programs This section describes what you should know before creating programs and opera tions for the Visual KV Series 1 1 1 Flow from Introduction to Operation This section describes an overview of program creation procedures functions used and setting items In the example described below a latch circuit is created as a program for the Visual KV Series Introduction Examining contents of operations Figure 1 shows a latch circuit which operates as follows Fig 1 Pushin ich PET ON PB1 N O contact switch ushnoutton Switc i PB2 N C contact switch Pushbutton switch PB2 OFF ot lamp PL turns on PBI PB2 Y Pilot lamp PL remains e e Pushbutton switch PB1 OFF Pushbutton switch PB2 Orr lit even if PB1 turns t t ee v OFF H a H Pushbutton switch PB1 OFF Pilot lamp PL goes out i i Pushbutton switch PB2 ON when PB2 is set to ON y day Time chart IN ON PB1 contact
86. l operand values are shown in normal notation The corresponding relay numbers in X Y M notation are shown below Normal notation X Y M notation 0000 to 0415 X000 to X04F 0500 to 0915 Y050 to YO9F 1000 to 6915 M1000 to M6915 7000 to 17915 X700 to X174F or Y750 to Y179F OUTPUT 3 40 Chapter 2 Instructions 2 1 Instruction List WISE SEGIS 2 1 4 Interrupt Instructions Exec time Instruction Mnemonic Operand Operand value Function us INTERRUPT DI Disables execution of DISABLED FUN 08 interrupt 2 2 INTERRUPT El Enables execution of ENABLED FUN 13 interrupt m Executes interrupt instructions between INT 000 to 003 and RETI at rising falling edge of input relays 0000 through 0003 Used with comparators Comparator CTCO to CTCO to CTC3 and No CTC3 executes instructions between INT and RETI RETURN Represents end of INTERRUPT interrupt Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each instruction All operand values are shown in normal notation The corresponding relay numbers in X Y M notation are shown below EN Normal notation X Y M notation 0000 to 0415 X000 to X04F 0500 to 0915 YO50 to YO9F 1000 to 6915 M1000 to M6915 7000 to 17915 X700 to X174F or Y750 to Y179F 2 1 5 Function No List Alphabetical order The following list shows th
87. me us WAIT ON W ON WAIT OFF W OFF 17915 T000 to T249 C000 to C249 CTCO to CTC3 R output operand mmmm when R T or C input operand nnnn is ON 10 4 to 12 6 Turns ON R output operand mmmm when R T or C input 13 6 to 18 5 operand nnnn is OFF Turns ON R output operand mmmm at rising edge of R T or C input operand nnnn Turns ON R output operand mmmm at falling edge of R T or C input operand nnnn Represents series connection of output instruction together with another instruction mmmm 1000 to 1915 3000 to 9915 1000 to 1915 WAIT UP EDGE WAIT DOWN EDGE W UE 13 6 to 18 5 W DE 6 8 to 5 3 CON CONNECT FUN 06 Stores input status and arithmetic flag MPS Reads input status and arithmetic flag stored with PUSH Reads amp clears input status and arithmetic flag stored with PUSH Executes instructions in STG block when R operand is ON 6 8 10 5 to 13 0 nnnn A STG H 4 5 to 12 5 3000 to 9915 0000 to 0009 When input is ON turns R of current stage OFF and moves to stage specified by operand Turns current stage OFF and next stage ON when input is ON nnnn JMP H 4 3 to 7 5 ENDS 2 5 0500 to 9915 TOOO to T249 C000 to C249 CTCO to CTC3 11 2to 13 4 Executes program between STP 8 STE when R oper and is ON dom f Is used wit
88. mission setting in operator mode Chapter 1 Programming 3 19 1 3 Device Configuration DM No Description Area for direct access mode for the KV D20 operator interface panel DM1680 to DM1699 KV D20 Operator interface panel Display device attributes DM1764 to DM1799 Not specified can be used by user DM1806 to DM1809 Not specified can be used by user DM1826 to DM1899 Not specified can be used by user DM1900 DM1901 24 bit value read from CTHO lower digit upper digit DM1902 DM1903 24 bit value read from CTH1 lower digit upper digit DM1904 DM1905 24 bit value read from CTCO lower digit upper digit DM1906 DM1907 24 bit value read from CTC1 lower digit upper digit DM1677 to DM1679 DM1908 DM1909 24 bit value read from CTC2 lower digit upper digit DM1910 DM1911 24 bit value read from CTC3 lower digit upper digit DM1912 DM1913 24 bit current value written to CTHO lower digit upper digit DM1914 DM1915 24 bit current value written to CTH1 lower digit upper digit DM1916 DM1917 24 bit current value written to CTCO lower digit upper digit DM1918 DM1919 24 bit current value written to CTC1 lower digit upper digit DM1920 DM1921 24 bit current value written to CTC2 lower digit upper digit DM1922 DM1923 24 bit current value written to CTC3 lower digit upper digit DM1924 DM1925 CTHO preset input lower digit upper digit DM1926 DM1927 CTH1 preset
89. ms TIMER 000 to 063 00000 to 65535 000 to 119 00000 to 65535 17 0 to 22 0 16 bit on delay T that counts down in 0 1 s decrements 17 0 to 22 0 16 bit on delay T that counts down in 0 01 s decrements 17 0 to 22 0 16 bit on delay T that counts down in 1 ms decrements ddddd COUNTER e XXX nnnn preset value C No clock source R 00000 to 65535 000 to 063 0000 to 6915 00000 to 65535 000 to 119 0000 to 6915 19 0 to 21 0 Sets 16 bit up counter UP DOWN COUNTER UDC xxx UP ddddd DW RES CNo preset value 000 to 063 00000 to 65535 000 to 119 00000 to 65535 21 0 to 26 0 Sets a 16 bit up down counter 3 42 Chapter 2 Instructions Instruction Symbol Mnemonic Operand 2 2 Instruction List ASALECESASN a VET KV 10 16 24 4 0 80 Operand value KV 10 16 Operand value KV 24 40 80 Exec time us Function DIFFEREN TIATE UP nnnn DIFU DIFU FNC10 DIFFEREN TIATE DOWN nnnn DIFD DIFD FNCO9 1000 to 1915 1000 to 1915 3000 to 6915 11 0 to 13 0 Turns ON R for 1 scan time at rising edge of input 11 0 to 13 0 Turns ON R for 1 scan time at falling edge of input KEEP KEEP SET nnmn 4 RES KEEP FNC22 0500 to 1915 2009 2100 to 2915 0500 to 1915 2009 2100 to 6915 9 0 to 26 0 Turns ON R and holds this statu
90. n determines the input time constant Number stored in DM1940 Input time constant 0 10 us 20 us 500 us 1 ms 2 5 ms 5 ms 10 ms 7 or more Not allowed Note 1 Be sure to set the input time constant to 10 us when using the 30 kHz high speed counter input Note 2 Never enter a number that is 7 or larger to data memory DM1940 Note 3 The input time constant specified by data memory DM1940 becomes effective at the rising edge of special utility relay 2813 To change the input time constant first change data memory DM1940 then set special utility relay to OFF and ON again Or change the operation mode of the KV basic unit from PROGRAM to RUN Note 4 The input time constant for input relays set by the HSP instruction is 10 us For more about the HSP instruction refer to HSP instruction p 3 86 For more about setting the input time constant for expansion units refer to Input time constant for expansion units p 1 76 Note 5 Set the special utility relay using the SET RES instructions Note 6 When the input time constant is set to 1 ms or less connect the output equipment without contacts If connecting output equipment with contacts contact bounds may enter Note 7 Except for interrupts and high speed counters signals whose ON time is shorter than the scan time may not be received even if the input time constant is set to a small value Chapter 1 Programming 3 23 1 4 Special
91. nal register serially ROTATE left allowing each bit LEFT A RLA that leaves left end to 14 00 enter carry bit and then IFNC 35 rightmost bit COM FNC 05 6 10 COMPLE Inverts content of each MENT COM bit in internal register FNC 05 8 10 INC FNC 19 Adds 1 to content of data memory specified by operand INCREMENT MEMORY INC FNC 19 DMO0000 to DM9999 DEC i TMOO to TM29 FNC 07 Subtracts 1 from content of data memory specified by operand DECREMENT MEMORY DEC FNC 07 MPX FNC 27 Converts 4 bit data MULTI constant 0 to 3 specified by operand PLEXER MPX of internal register into FNC 27 16 bit data DMX a g FNC 12 onverts position of ICE ER highest order bit with 1 DMX in internal register into 3 52 Chapter 2 Instructions 2 2 Instruction List BUSTESTIUESTS GA AE KV 300 Exec time Function us Instruction Symbol Mnemonic Operand Operand value TBCD lt TBCD gt FNC 47 13 20 Converts content of internal register 16 bit binary into 4 digit BCD data TBCD T TBCD gt FNC 47 15 20 TBIN FNC 48 14 00 Converts content of internal register 4 digit BCD into 16 bit binary TBIN T TBIN FNC 48 16 00 data ASC 8 50 lt ASC gt FNC 02 Converts content of lower order byte of ASC internal
92. nc nan ncnnnncnnnans 3 199 3 4 3 Measuring the ON Time of High speed Pulses sees 3 200 3 4 4 Measuring the Period in which a Target Passes between Two Points 3 201 High speed Counters Visual KV 4 1 High speed Counter Instructions ssss 3 204 4 2 Outline of High speed Counters esses 3 206 4 2 1 High speed Counters and High speed Counter Comparators 3 206 Structure of high speed counters and high speed counter comparators 3 206 Specifications of high speed counters coooocccocccconococononcncononcnnnnononnnnnnnonnnnos 3 208 High speed counter comparators eeem 3 209 4 2 2 Internal Clock for High speed Counters seee 3 210 4 3 Setting and Operation of High speed Counters ssssse 3 211 4 3 1 Reading the Current Value of the High speed Counter 3 211 4 3 2 Preset Value of the High speed Counter Comparator sssse 3 211 43 3 Comparator DT 3 211 4 3 4 Count Input Method oococcncconcccnoccconcninncconcnonncnnnn nono nono n cnn cn enne nnne 3 212 4 3 5 Resetting the High speed Counter cooocccncccinccnoccconcccooncnoncnancnnnnncnnccnnnnnanannnnnnnns 3 214 4 3 6 Differences with the CTH Instruction between the Conventional and Visual KV Series sssse 3 216 4 3 7 Applications of High speed Counters
93. ng AC type PLCs equipped with screw terminal blocks and saves installation space Extremely fast The minimum scan time is 140 us and minimum instruction execution time is 0 7 us 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 periph eral units improving the debug environment The KV 10xx is equipped with only one serial port Easy Ramp up down control function The one axis mo
94. ng items when using the ladder support software When using the ladder support software KV IncrediWare DOS or LADDER BUILDER for KV Ver 1 0x set the model to KV 300 DMO to DM1999 are only available CAUTION 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 l O units for the conventional KV Series KV 8ER 8ET 8EX 16EX 8EYR 8EYTA6EYR AGEYT 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 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 simultane
95. nnnn 0000 to 0009 10000 to 10415 Reads 16 key data by HKEY time sharing and FNC 17 17000 to 17415 71 to 370 outputs these data into mmmm 10500 to 10915 special as 2900 to 2915 17500 to 17915 KV 300 KV 300 Exec time Function us Instruction Mnemonic Operand Operand value Turns ON R 2nd operand WAIT ON W ON nonn 5 00 to 6 10 mmmm when R T or C 1st 0000 to 0009 operand nnnn turns ON 0500 eae When R T or C 1st operand T000 to T249 C000 to C249 5 00 to 6 10 nnnn turns OFF R 2nd operand mmmm turns ON CTCO to CTC3 WAIT UP R 2nd operand mmmm EDGE T W UE mmm 6 10 to 7 50 turns ON at rising edge of R 1000 to 1915 T or C 1st operand nnnn 3000 to 6915 R 2nd operand mmmm AGES W DE 7000 to 9915 6 10 to 7 50 turns ON at falling edge of R T or C 1st operand nnnn CON Represents series connection CONNECT FNC 06 of output instruction together with another instruction WAIT OFF W OFF MPS Stores input status and arithmetic flag Reads input status and MRD 2 70 arithmetic flag stored with PUSH Reads amp clears input status MPP 1 40 and arithmetic flag stored with PUSH STG Executes instructions 5 60 to 6 50 between STG amp JMP when R FNC 44 1000 to 1915 operands ON 9 or 3000 to 6915 JMP 7000 to 9915 Turns current stage OFF and FNC 21 3 80 to 6 00 met stage ON when
96. nto data memory TRIMMER SETTING n TMIN gt TMIN FNC 50 n T TMIN gt TMIN FNC 50 Trimmer No 13 0 to 15 0 25 0 to 29 0 Converts trimmer rotation angle into O to 249 and inputs it into internal register LDA FNC 23 R No C T No DM TM No constant TMxx 0000 to 2915 T000 to T063 C000 to C063 CTHO to CTH1 DM0000 to DM0999 TMOO to TM31 3100000 to 65535 0000 to FFFF 3s TMOO to TM29 0000 to 6915 T000 to T119 C000 to C119 CTHO to CTH1 DMO0000 to DM1999 TMOO to TM31 3100000 to 65535 0000 to FFFF TMOO to TM29 10 0 to 46 0 22 0 to 60 0 Inputs value specified by operand into internal register or inputs current value when T C is specified as operand STORE A STA FNC 42 STA FNC 42 R No C T No DM TM No constant TMxx 0500 to 1915 2100 to 2915 T000 to TO63 C000 to C063 DM0000 to DM0999 TMOO to TM29 TMOO to TM29 0500 to 1915 2100 to 6915 TOOO to T119 C000 to C119 DM0000 to DM1999 TMOO to TM29 TMOO to TM29 9 0 to 99 0 21 0 to 113 03 12 Transfers content of internal register to location specified by operand or changes preset value when T C is specified as operand COMPARE CMP FNC 04 CMP FNC 04 ADD FNC 00 ADD FNC 00 DM TM No constant TMxx DM0000 to DM0999 TMOO to TM31 00000 to 65535
97. nts of a relay no are shown below 0751 Channel No L___ Relay No 00 to 15 A MN pcc ogule Tig MAD Address No Input 0 to 4 Output 5 to 9 B Unit Nos Unit nos are assigned to units within the KV 300 system with the unit connected to the right of the KV 300 CPU see the figure below assigned as no 7 The CPU is assigned as unit no 0 i 7 7 7 em Ge N TT La Power supply unit CPU B Address Nos Address nos are assigned to the input units output units and I O terminal units The following table shows the assignment of address nos to units Unit Address No KV 300 CPU CPU 0 5 KV C16X 16 input unit 0 KV C32X 32 input unit 0 1 KV B16R 16 output unit 5 KV B16S 16 output unit 5 KV C32T 32 output unit KV R8X 8 input terminal unit KV R16X 16 input terminal unit KV R8R 8 output terminal unit KV R16R 16 output terminal unit KV R8T 8 output terminal unit KV R
98. o 0 50 Connects N O contact in parallel with previous contact 0 15 to 0 80 Connects N C contact in parallel with previous contact AND LOAD OR LOAD 0 55 Connects in series blocks made of one or more contacts Chapter 2 Instructions 3 43 Connects in parallel blocks made of one or more contacts 2 2 Instruction List Instruction Symbol KV 300 Series KV 10 80 Mnemonic Operand KV 300 Operand value Exec time us Function OUT OUT OUT BAR OUB 0500 to 1915 2009 2300 to 17915 0 20 to 0 56 Outputs input ON OFF status to R coil 0 50 to 1 20 Outputs inverted input ON OFF status to R coil 0500 to 1915 2009 2100 to 17915 T000 to T249 C000 to C249 0 20 to 5 70 Forces R ON and holds this status when input is ON 0500 to 1915 2009 2100 to 17915 T000 to T249 C000 to C249 CTHO to CTH1 CTCO to CTC3 0 50 to 4 40 Forces R T C OFF when input is ON ddddd T Xxx 0 1 s TIMER 0 01 s TIMER 70009 H xxx ddddd 1 ms TIMER S xxx T No preset value 000 to 249 00000 to 65535 5 60 to 10 40 16 bit on delay T that counts down in 0 1 s decrements 5 60 to 10 40 16 bit on delay T that counts down in 0 01 s decrements 5 60 to 10 40 16 bit on delay T that counts down in 1 ms decrements ddddd deen F COUNTER pres
99. ode binary conversion function oococccincccocccnnannonccnnncancnnnnccnncanns 1 266 Example programs 2 ite in na th abu edt eerte 1 269 7 6 Display Interface Mode Programming sem 1 270 7 6 1 Operating in Display Interface Mode ssseeeeees 1 270 Communications protocols esee 1 270 Communications control procedure seseeeen 1 271 7 6 2 Command and Response Format esses 1 273 7 6 3 Commands and Responses sssssseeeeeeeneen nennen 1 275 List of commands and responses see 1 275 Description of commands and responses eeee 1 277 A TESTE AATA 1 291 7 7 Non procedure Mode Programming see 1 292 7 7 1 Operating in Non procedure Mode sseeeenenens 1 292 Communications protocol sssesseeeneeeeenneneee nennen 1 292 Connecting to the KV L2 ooo eee eeceesceeseeeeseeeseeeeseeeseeteaeesaeeeaeeteaeeeeeteaees 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 77 9 Transmitting T extiData oe curte trem creer ec te de Rep etie 1 297 Data transmission and internal data memory addresses 1 297 7 7 4 Receiving Text Data 4 ie eec ete de edocet rnc 1 298 Format of received
100. on eee 1 351 Calculating Voltage and Current Values from Digital Data 1 352 9 4 2 Programming the KV DA4 sssssseeenm eene 1 353 D A Conversion Mechanism sse 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 eseeeeeeeneneenen 1 357 Voltage Conversion Table 1 357 Current Conversion Table c ccecccesceeseeeeeeeeeeseaeeeeeeseaeeseeeseaeesieeeeeeeaees 1 358 9 5 Programming Examples 0 oconocccnoncccononcccnooccononn cnn narco nnnn cnn nano cnn nor cnn en 1 359 Calculating Analog Data Values from Digital Data ssse 1 359 Writing Data to be Analog output seeeen 1 361 Outputting Analog Trimmer Values eene 1 364 Outputting Analog Input Data sssseseeeeenenne 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 aeui eee da 1 367 9 6 Troubleshooting oo A C E ES 1 370 Troubleshooting 10 1 Error List coa 1 372 10 1 1 List of Error Codes in Basic Units sssssseeee 1 372 10 1 2 Error indication in Expansion Units s 1 374 10 1 9
101. ote 2 Special utility relays dedicated for reading can be used as contacts but cannot be used as outputs 2 For more about relays dedicated for reading refer to 1 3 8 Special Utility Relay List p 3 14 Relay 2002 Always ON By setting an output relay to ON using relay 2002 the output relay can be used as a running indicator output 2002 HSP 4 0100 2002 00000 LDA DM0000 STA Set the input time constant of relay 0100 to 10 us Transfer the ON OFF status data of channel 0000 to DM0O000 Relay 2003 Always OFF Opposite that of relay 2002 use relay 2003 where it is not required to be turned on For example when using only the up function of an up down counter use relay 2003 in the DW down input Relays 2004 2005 and 2006 Clock pulse For each relay the time ratio is ON OFF 1 1 Accordingly the ON time of relay 2005 is 0 05 sec pulse However because these relays depend on the scan time error as much as the scan time is generated Bycombining an output relay an intermittent output can be made Byusing relay 2006 as input for a counter the counter can be used as a long term timer 1000 turns ON at every hour Relay 2007 Remains OFF during only one scan when operation is started This relay can be used when a signal needs to be sent after a specific period equivalent to one scan after operation is started This relay can also be used for an initial reset at the start of opera
102. ously for a long period of time 5 6 How this manual is organized The Visual KV Series User s Manual is composed of 3 separate manuals 1 Installation 2 Support Software 3 Programming Please read each manual relevant to your purpose 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 3
103. put time constant of input expansion unit with relay OFF 10 ms Nos 0300 to 0315 ON 10 us Input time constant of input expansion unit with relay OFF 10 ms Nos 0400 to 0415 ON 10 us OFF Cleared ON Not cleared This area is stored even when the Disconnect error OFF Normal operation mode is ON Disconnection in connected unit changed from PROGRAM to RUN or when the power is turned off without being affected by the MEMSW instruction This area is not cleared even if the utility relay All Clear function is activated However this area is cleared when an All ON while cam switch is in operation Clear is executed without registering a program Clearing of input at expansion disconnect Use of high speed input correction circuit ON Used OFF Not used Break signal send to communication port A remains ON while sending Receives text data from communication port A and remains ON during only 1 scan while receiving text data Communication port A text data acceptance error Remains ON during only 1 scan ON when text data is received while either relay 2801 or relay 2803 is ON Communication port A text data receive error Remains ON during only 1 scan when a text data receive error occurs Communication port A text data send start remains ON during sending Break signal send to communication port B remains ON while sending Receives communication port B text data and remains ON during only 1 s
104. r 0 001 s timer Counter C000 to 249 C000 to C249 Up down counter UDC000 to 249 Contact Number TMHOOO to 249 TMS000 to 249 29 in total B Timers When 0 1 s timers TMR and high speed 0 001 s timers TMS are used as contacts the Tnnn No is used for both types However the form for setting is different TMRnnn dddda is used for 0 1 s timers TMHnnn dddda is used for high speed 0 01 s timers and TMSnnn dddda is used for high speed 1 ms timers nnn timer No ddddd timer set value In a single program different timer Nos must be assigned to each of TMRnnn TMHnnn and TMSnnn When the PLC is stopped all timers are reset and their current values become equivalent to set values B Counters When counters C and up down counters UDC are used as contacts the Cnnn No is used for both types However the form for setting is different Cnnn ddddd is used for counters while UDCnnn dddda is used for up down counters n one program different numbers must be assigned to each of the counters and up down counters Even when operation is stopped each counter stores whatever value it has at that time TMR instruction p 3 67 TMH instruction p 3 68 TMS instruction p 3 69 C instruction p 3 72 UDC instruction p 3 76 B High speed counters and high speed counter comparators The Visual KV Se ries is equipped with two high speed count
105. r E DERE e eta ronda 3 42 2 2 2 Application Instructions dei ots n re et i cede ee ood 3 45 2 2 8 Arithmetic Instructions idisse eaii isanne itrel diarak 3 48 2 2 4 Interrupt Instructions id tas 3 54 2 3 Convention Details ooo aiii 3 55 2 4 Instruction Detalls eadein eee eed 3 56 2 41 Basic InStUCIONS dina cis He ana es ei ee A eee 3 56 2 4 2 Application Instructions ooooncccononocinonccononcnonanononnnrnnn nono meme 3 95 2 4 3 Arithmetic Instructions sisien n arn e iita 3 134 2 5 Programming Notes oooooocccnonccccnonccononcccnoncnnnnonnnonanoncnnnro enm nemen 3 189 Interrupts Visual KV 3 1 Interrupt Instructions oo eee eee eee teen ee teneeeeteneeeeeeaeerenaeeeteneeeeeeaeeeeeas 3 192 3 2 Interrupt Processing ooocoinonccnnncccnnonccononcnononoconnnr cnn nar nnn mee 3 194 3234 Interr pt Processihig sea td cte teda 3 194 3 2 2 Types ot Interr pts 5 3 n1 apie ol ee eee eee nee 3 195 3 2 3 Interr pt Priority See ee eit 3 196 3 2 4 Interrupt Program iei oet IR RUBER RH Re PUR 3 196 3 3 Direct Input Output issiria aiani asiria isdie aia 3 197 SOA Direct Input 5 ro ie ia 3 197 3 322 Direct OUtpUt 5 o cd aite tren dte retten a ean eae el 3 197 3 4 Applications of Interrupt Programs mM 3 198 3 4 1 Interrupt with a Signal Converter essen 3 198 3 4 2 Interrupt with a High speed Counter ocococccoccccocccoccconcnonnncnnccnnnnnnn
106. r input turn ON special utility relay 2813 Note 2 When special utility relay 2813 is ON the input time constant of input relays 0000 to 0009 is set to 10 us 20 Note 3 The input time constant remains 10 ms 20 if the HSP instruction is used when special utility relay 2813 is ON Note 4 When the input time constant is set to 10 us or 25 us a solid state output device must be connected Connection of a contact output device may result in contact bounce 3 24 Chapter 1 Programming 1 4 Special Functions 1 4 3 Constant Scan Time Mode This function executes a program while keeping the scan time at a constant value which usually changes based on the processing contents This section describes how to set this function Though the scan time changes usually depending on the processing contents it can be kept at a constant value by using this function This function can be used to acquire data from external equipment at a constant time interval The set value should be longer than the maximum scan time because the scan time is kept at a constant value until the end of processing B Setting procedure Set the desired scan time to temporary data memory TM29 Set special utility relay 2303 to ON The scan time is written to TM31 The scan time can be set in 1 ms increments Enter the desired scan time ms to the temporary data memory B Setting example In this example the scan time is kept at 20 ms H LDA ST
107. rect output to 0501 is set to ON when comparator ON Set to ON CTC3 turns ON OFF Not set to ON 2211 ON OFF status of output to 0501 is reversed each ON Reversed time comparator CTC3 turns ON OFF Not reversed 2212 Automatic clear of CTH1 when comparator CTC3 ON Cleared turns ON OFF Not cleared 2213 Selects multiplication mode for comparator CTH1 OFF ON OFF ON OFF 1 pulse OFF xa ON x4 ON 2 pulses Read only relay Multiplication mode 2213 ON 2214 ON 2 pulses Note Never use special utility relays that are not shown above Other special utility relays Relay No Function 2300 External outputs disabled ON Disabled outputs 0500 to 0915 OFF Not disabled External refresh inputs disabled ON Disabled inputs 0000 to 0415 OFF Not disabled Constant scan time mode ON Enabled write preset value in TM29 OFF Disabled Remains ON for one scan when scan time exceeds preset constant scan time 2305 Start flag for frequency counter operation 2301 2303 2304 ON Enabled OFF Disabled Specified frequency pulse output Error flag for specified frequency pulse output Stops motor driver when turned ON Turns ON when motor driver is in operation Stops motor driver in emergencies when turned OFF by interrupt instruction Starts motor driver when turned ON detection at rising edge Start flag for cam switch operation Turns ON when
108. register into 2 T ASC gt FNC 02 10 50 digit ASCII code RASC REVERSE lt RASC gt FNC 32 ASCII CONVERT RASC T RASC FNC 32 6 80 Converts 2 digit ASCII code into one byte data 8 80 Takes square root of 32 EN 77 70 bit data TMOO higher SQUARE order byte internal ROOT ROOT ins register lower order byte and inputs result FNC 36 back to same register Chapter 2 Instructions 3 53 2 2 Instruction List KV 300 Series KV 10 80 2 2 4 Interrupt Instructions KV 10 16 24 40 80 KV 10 16 24 40 80 Instruction Mnemonic Operand Operand value Operand value Exec time KV 10 16 KV 24 40 80 us Function INTERRUPT DI 3 0 to 4 6 DISABLED FNC 08 Disables execution of interrupt INTERRUPT El ENABLED FNC 13 3 010 46 Enables execution of interrupt B5 0 to 48 0 000 to 003 INTERRUPT MGE CTCO to CTC3 O Executes instruc tions between INT and RETI at rising edge of any of input 000 to 003 or at falling edge of 003 Used with compara tors CTCO to CTC3 and executes instructions between INT and RETI RETURN RETI INTERRUPT FNC 34 E KV 300 Instruction Mnemonic Operand Exec time Operand value ES us Represents end of interrupt Function INTERRUPT DI DISABLED FNC 08 Sd Disables execution of interr
109. 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 uF 10 Q manufactured by OKAYA DENKI SANGYO The following 1 turn ferrite core is added to the AC power input circuit of the KV 40AR 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 Features of the Visual KV Series O Extremely small The Visual KV Series is the smallest in the world amo
110. rnal register and carry bit 2009 counterclock wise by operand value 10 3 to 28 6 22 3 to 40 6 Number of bytes represents the memory capacity required for each instruction Number in represents the memory capacity required for object code of each instruction All operand values are shown in normal notation The corresponding relay num bers in X Y M notation are shown below Normal notation X Y M notation 0000 to 0415 X000 to X04F 0500 to 0915 Y050 to YO9F 1000 to 6915 M1000 to M6915 7000 to 17915 X700 to X174F or Y750 to Y179F Chapter 2 Instructions 3 39 2 1 Instruction List Instruction Symbol Mnemonic Visual KV Series Operand Operand value Function Exec time us COMPLE MENT 4 COM COM FUN 05 COM COM G FUN 05 Inverts content of each bit in internal register 5 6 17 6 INCREMENT MEMORY nnnn INC INC FNC 19 nnnn sf INC INC FUN 19 DM TM No DMO0000 to DM1999 TMOO to TM29 Adds 1 to content of data memory specified by operand 9 8 DECRE MENT MEMORY nnnn DEC DEC FNC 07 nnnn DEC DEC G FUN 07 DM TM No DMO0000 to DM1999 TMOO to TM29 Subtracts 1 from content of data memory specified by operand tn MPX MPX FUN 27 n D MPX MPX G FUN 27 constant 0 to
111. rograms see 1 143 Example of displaying user messages sen 1 143 Example of displaying messages with titles ssssessssse 1 145 Example of position control 1 146 Example of frequency counter sessseeeem e 1 149 Example of 24 bit high speed counter sene 1 152 Example of cam switch function em 1 154 44 Appendix uite aa 1 158 4 43 Troubleshooting iei nete ine carp re eee vent a ences 1 158 4 4 2 Available Character List essessseeeeeeeeneeennnee nennen 1 162 4 4 8 Comment Draft Sheet sese nnne nnne 1 163 Chapter5 KV 300 KV 10 80 Hardware KV 300 KV 5 1 System Configuration sse 1 166 A iiie CREER ene tt he ege e vd e Ev reges 1 166 Bie KV510 B0G heir e ora RR RO DR TAT 1 167 5 2 Module Unit Specifications sssseme 1 168 5 2 1 Wiring KV U4 Power Supply Module seen 1 168 Parts and functions a erede eta e ER 1 168 5 2 2 Wiring KV U5 DC Power Distribution Module eene 1 169 Parts and f rictioris eoe rte at Re de ns 1 169 5 2 3 Wiring KV 300 GP eren Cete i ndn e e cedere eec eg cs 1 170 Parts and function 1 170 5 2 4 Wiring KV C16X C32X Connector Input Module sese 1 171 Parts and funciona ta eb eem 1 171 5 2 5 Wiring
112. s a KV 16AR 0000 to 0009 input and 0500 to 0505 output b KV E4X 0100 to 0103 input c KV E8R 01600 to 0607 output 3 8 Chapter Programming 1 3 Device Configuration 1 3 4 Input Relays Input relays receive ON OFF signals sent from external input equipment Note 1 Input relays function as contacts in programs They cannot be used as relay coils outputs Note 2 There is no restriction of the contact type N O or N C used the order the relay Nos are used or the number of relays used Basic unit B Input relay time constant Though the time constant is usually 10 ms 20 it can be changed using the following settings When the HSP instruction is used 10 us 20 While special utility relay 2813 remains ON the time constant can be changed in 7 steps by setting data memory DM1940 as follows When DM1940 is set to 0 10us 20 1 20 us 20 2 500 us 20 3 1 ms 20 4 2 5 ms 20 5 5 ms 20 6 10 ms 20 Never set a numeric value of 7 or larger For more about changing the input time constant refer to 1 4 1 Input Time Constant Change Function p 3 23 B Hardware input independent of scan time High speed counter When the time constant is set to 10 us using the HSP instruction or data memory DM1940 only while special utility relay 2813 remains ON the maximum input response of input relays 0004 and 0005 of CTHO and CTH1 becomes 30 kHz INT instruc
113. s when SET input is ON SHIFT SFT 32 nnnn HCLK RES mmmm SFT FNC39 1000 to 1915 1000 to 19153000 to 6915 Turns OFF R when RESET input is ON HIGH SPEED 5m nnnn HSP FNC18 KV 10 0000 to 0005 KV 16 0000 to 0009 KV 24 0000 to 0015 KV 40 0000 to 0107 8 0 to 9 0 Sets shift register MASTER CONTROL MC MC FNC24 1 8 to 3 2 Reduces input relay time constant to 25 ms for higher input response MASTER CONTROL RESET MCR FNC25 0 6 to 1 0 Selects ON OFF status of R coils Ts or Cs MEMORY SWITCH MEMSW FNC26 constant 0000 to FFFF Represents end of MC Sets memory switches NOP NOP FNC30 Performs no opera tion END Indicates end of each routine of program KV 300 Instruction ENDH Mnemonic Operand KV 300 Indicates end of entire program Operand value Exec time us Function LOAD LD LOAD BAR AND AND BAR OR OR BAR 0 15 to 0 70 Connects N O contact to bus 0 15 to 0 90 Connects N C contact to bus 0000 to 0009 0500 to 17915 T000 to T249 C000 to C249 CTCO to CTC3 0 15 to 0 50 Connects N O contact in series with previous contact 0 15 to 0 80 Connects N C contact in series with previous contact 0 15 t
114. seeeeneenennee nennen 7 319 Connector Witness 7 3 4 Connecting to External Units ooooncccnncninnccinconnncnnnccnonncnnncnnnn conc n caro cn nana cnn 1 249 Connecting to An External Display sem 1 249 Connecting to an IBM PC AT Computer seen 1 249 Connecting to the KV 10 16 24 40 80 oooooncccnccinnccocccnocnconnccnrncnncncnnccnnnno 1 250 Connecting KV EBS uti ri ei cte boat dn Geo 1 250 TA gt Software Setup ose e n De eds 1 252 7 4 1 Using KV Software KV IncrediWare DOS eene 1 252 Starting KV IncrediWare DOS from the KV L2 seeenne 1 252 7 5 KV Mode Programming eee 1 253 POA Operating in KV Mode sionista cete rccte cef dl ceive 1 253 Communications protocol sessie asna e eain eiri a aiaa 1 253 7 5 2 Serial Communications Procedure sssssseeeeenenens 1 255 Command transmission procedure sse 1 255 Command response format cococcincccnncononcccnncnnnnononccancn nn cnn nnn rra 1 256 Communications commands and responses seeee 1 256 Communications commands ssssssseeeeeeeneen nennen 1 257 7 5 8 Transmission and Reception of Text Data 1 262 Assigning relay nos and data memory address nos 1 262 Transmitting Text Data reete rien ite ep derer 1 264 Receiving text data semien En arce 1 265 ASCII c
115. signed Customized switch F2 on KV D20 operator interface panel is assigned Customized switch F3 on KV D20 operator interface panel is assigned Customized switch F4 on KV D20 operator interface panel is assigned Customized indicator lamp 1 on KV D20 operator interface panel is assigned Customized indicator lamp 2 on KV D20 operator interface panel is assigned Customized indicator lamp 3 on KV D20 operator interface panel is assigned Customized indicator lamp 4 on KV D20 operator interface panel is assigned Permits change between operator mode and device mode of KV D20 operator interface panel Permits the KV D20 operator interface panel to be shifted between operator mode and system mode Specifies the display language for the KV D20 operator interface panel Sets the beep for the KV D20 operator interface panel Reserved for system Reserved for system Displays a user message contents of DM1950 in the Access Window OFF Not ON Permitted permitted OFF Not ON Permitted permitted ON Japanese OFF English ON Use beep OFF No beep OFF Do not display message ON Display message 3 16 Chapter 1 Programming 1 3 Device Configuration a M IIA Function Input time constant of input expansion unit with relay OFF 10 ms Nos 0100 to 0115 ON 10 us Input time constant of input expansion unit with relay OFF 10 ms Nos 0200 to 0215 ON 10 us In
116. special data memories 3 20 Chapter 1 Programming 1 3 Device Configuration 1 3 11 Temporary Data Memory These data memories are used for temporary storage When arithmetic instructions are used temporary data memories can be used to temporarily store the data for arithmetic operations as well as the results of arithmetic operations TM No Usage Attribute TMOO Used for arithmetic operations DIV MUL R W TMO1 Used for arithmetic operations DIV R W TMO2 to TM27 Not specified can be used by user R W Stores scan time module 1 ms beyond set value while constant scan time operation is performed Stores set value module 1 ms of constant scan time operation Stores CTCO value when INT3 interruption is given Stores measured scan time mean value of every 10 scans module 0 1 ms TM28 R TM29 Attribute R Read W Write Both R and W are enabled when special functions are not used Note 1 Temporary data memories are initialized when the power is turned on Note 2 TM20 TM30 and TM31 are read only so cannot be used for writing However TM28 can be used for both reading and writing if special functions are not used Note 3 TMOO and TMO1 are used by the MUL and DIV instructions Never use them for any other purpose Chapter 1 Programming 3 21 1 3 Device Configuration 1 3 12 Relay Nos and Functions Assignment of Relay Nos The compone
117. ssignment procedure The address No is represented as a number 0 to 9 Address Nos 0 to 4 are provided for inputs while address Nos 5 to 9 are pro vided for outputs Chapter 1 Programming 3 7 1 3 Device Configuration Contact No Channel No Contact Nos are input output terminal Nos of basic units input expansion units output expansion units and I O expansion units The contact No is represented as a number 0 to 15 Example In the KV E4X with 4 input terminals the contact Nos are 0 to 3 In the KV E16T P with 16 input terminals the contact Nos are O to 15 In a unit with 16 or more terminals the contact No of the 17th terminal returns to 0 and its address No is increased by 1 Example In the KV 40AR with 40 terminals 24 input and 16 output terminals address No 0 is assigned to input terminal Nos 1 to 16 and address No 1 is assigned to input terminal Nos 17 to 24 The channel No is the higher order digit in the contact No EN 1 3 3 Assigning Relay Nos When assigning relay Nos the unit No is based on the connection position of the unit and the address No is determined based on the unit type and I O contacts a KV 16AR b KV E4X Input c KV E8R Output Basic unit expansion expansion unit Input 10 points unit Output 8 points Output 6 points Input 4 points With the connections above the relay Nos for each unit are assigned as shown in the table below Assigned relay No
118. stant for expansion units oooccnocccoccnaccninnnnann crac crana rancia 1 76 13 Clearing the input value when disconnecting ooooooccccnoococonoccccononnnonancnonns 1 76 2 2 4 Transferring I O Information between Expansion Units and the Basic Unit 1 77 When nputtirig 3 odi o ett el ed ee een Dee debes 1 77 ithe case of output rename thiet inta 1 77 2 3 Inspection and Maintenance sseee 1 78 2 94 Inspection 5o esu moe pe P wee atus 1 78 23 2 Maintenant E siar idi ate eter ra ird ere e prepa det de olet 1 78 Chapter3 Access Window 3 1 Overview of the Access Window sssee eee 1 80 3 1 1 What is the Access Window oocccnonccononocononncnnnoncnnnnnnno nano nonnnn nn emere 1 80 3 1 2 Access Window Use Examples sesemmeen 1 80 3 2 Basic Operating Procedures ssessseeeneeens 1 81 3 2 1 OperatioriMOode oue ui e pi EIS RR 1 81 3 2 2 Access Window Modes temere uit edes cres coe e dade 1 81 3 2 8 Part Names and Functions of the Access Window eeeeeeeese 1 82 3 2 4 Selecting Modes and Setting Resetting Key LOCK sssssss 1 82 3 2 5 Turbo FUNCION ottenere nmibi b AO 1 83 3 3 Digital Trimmer Mode seme 1 84 3 3 1 Function and Operating Procedure sssssseeeeeeen 1 84 Key operation and screen display
119. struction List of I O relays in basic units Model KV 10xx KV 16xx KV 24xx KV 40xx Basic input relays 0000 to 0005 0000 to 0009 0000 to 0015 0000 to 0107 Basic output relays 0500 to 0503 0500 to 0505 Chapter 1 Programming 0500 to 0507 0500 to 0515 3 5 1 3 Device Configuration List of relays in expansion units B Input units Connection order KV E4X KV E8X KV E16X KV 10 16 24 KV 40 KV 10 16 24 KV 40 KV 10 16 24 KV 40 1st input module 100 to 103 200 to 203 100 to 107 200 to 207 100 to 115 200 to 215 2nd input module 200 to 203 300 to 303 300 to 303 400 to 403 200 to 207 300 to 307 300 to 307 400 to 407 200 to 215 300 to 315 300 to 315 400 to 415 400 to 403 B Output units Connection order KV E4T P R 400 to 407 KV E8T P R 400 to 415 KV E16T P R 1st output module 600 to 603 600 to 607 600 to 615 2nd output module 700 to 703 700 to 707 700 to 715 3rd output module 800 to 803 800 to 807 800 to 815 4th output module B 1 O units Connection order 900 to 903 900 to 907 KV E4XR T P 900 to 915 KV 10 16 24 Input relays KV 40 Output relays KV 10 16 24 1st input module 100 to 103 200 to 203 2nd input module 200 to 203 300 to 30
120. t into data memory n lt TMIN gt TRIMMER TMIN FNC 50 SETTING n TMIN gt TMIN IFNC 50 Trimmer No 0 1 5 10 to 5 60 2 00 to 5 70 Converts trimmer rotation angle into 0 to 249 and inputs it into internal register LDA FNC 23 LDA FNC 23 R No C T No DM TM No constant TMxx 0000 to 0009 0500 to 17915 T000 to T249 C000 to C249 CTHO to CTH1 DM0000 to DM9999 TMOO to TM31 00000 to 65535 0000 to FFFF TMOO to TM29 Inputs value specified by operand into internal register or inputs current value when T C is specified as operand STORE A STA FNC 42 STA FNC 42 R No C T No DM TM No constant TMxx 0500 to 1915 2100 to 17915 T000 to T249 C000 to C249 CTCO to CTC3 DM0000 to DM9999 TMOO to TM29 TMOO to TM29 Transfers content of internal register to location specified by operand or changes preset value when T C is specified as operand 3 50 Chapter 2 Instructions Instruction Symbol Mnemonic Operand 2 2 Instruction List BUSTESTIUESTS EOS AE KV 300 Operand value Exec time us Function COMPARE nnnn lt CMP gt CMP FNC 04 nnnn P CMP gt CMP FNC 04 nnnn lt ADD gt ADD FNC 00 nnnn T ADD gt ADD FNC 00 DM TM No constant TMxx DM0000 to DM9999
121. the event a problem occurs Do not open or modify the KV Series PLC or use it in any way other than de scribed in the specifications When the KV Series PLC is used in combination with other instruments func tions and performance may be degraded depending on operating conditions and the surrounding environment Do not use the KV Series PLC for the purpose of protecting the human body Note The built in display may show the error message Error 40 blinking the very first time you turn on the power supply to the Visual KV Series Press any key around the display to cancel this message The Visual KV Series shows this message when no program is loaded 1 Note to User When using the Visual KV Series in the following conditions or environments be sure to use the Visual KV Series with sufficient margin regarding the rating and functions take appropriate safety precautions such as fail safe and contact our sales personnel if any questions arise Use in conditions or environments not described in this manual Use for nuclear power control railway facilities air service facilities vehicles combustion devices medical equipment amusement machines safety equip ment etc Use for applications where large effects are predicted to be given on human lives and properties and safety is especially requested Restriction on Acquiring the CE Marking Restriction to be compatible with EMC directives When using a
122. tion After one scan this relay remains ON 1000 2007 00100 coos 0000 When operation is started this relay returns the current value of C005 to 0 3 12 Chapter 1 Programming 1 3 Device Configuration Relay 2008 Remains ON during only one scan when operation is started This relay can be used for an initial reset at the start of operation After one scan this relay remains OFF When operation is started this relay sets all internal utility relays used by the SFT instruction to OFF 2008 00000 LDA DM0000 STA When operation is started this relay returns the current value of DM0000 to 0 Relay 2813 Sets the input time constant of the CPU While relay 2813 remains ON the input time constant of a basic unit can be set using the value of DM1940 Chapter 1 Programming 3 13 1 3 Device Configuration 1 3 8 Special Utility Relay List Special relays and arithmetic operation flags 1 3 7 Special Utility Relays p 3 12 Relay No Function 2002 Always ON 2003 Always OFF 2004 0 01 s clock pulse duty cycle 50 2005 0 1 s clock pulse duty cycle 5096 2006 1 0 s clock pulse duty cycle 5096 2007 Remains OFF during first scan after startup 2008 Remains ON during first scan after startup Turns ON when result of arithmetic operation is negative or when an overflow is generated 2010 Turns ON when result of arithmetic operation is 0 2009 20
123. tion 0000 to 0003 This instruction can receive any signal without regard to the scan time as far as the signal ON time is longer than the input time constant e HSP instruction p 3 86 INT instruction p 3 192 4 1 High speed Counter Instructions p 3 204 Note 1 While special utility relay 2813 remains ON the input time constant can be specified for all input relays in a basic unit Note 2 Never enter a number of 7 or larger to data memory DM1940 Note 3 The input time constant specified by data memory DM1940 becomes effective at the rising edge of special utility relay 2813 To change the input time constant first change data memory DM1940 then set special utility relay 2813 to OFF and ON again Or change the operation mode of a KV basic unit from PRO GRAM to RUN Note 4 If the HSP instruction and special utility relay 2813 are used at the same time priority is given to the HSP instruction Note 5 Only when a high speed counter input or INT instruction is given available input signals do not depend on the scan time Chapter 1 Programming 3 9 1 3 Device Configuration Expansion unit B Input relay time constant By setting special utility relays 2609 to 2612 to ON the time constant in input expan sion units can be set to 10 us Special utility relay No 2609 Function Input time constant of input expansion unit with relay Nos 0100 to 0115 Input time constant of input expansion unit with r
124. tions KV 300 Series sse 1 392 Hardware ot inte da toh iex asso expediente ide See 1 392 Software and Programming seen 1 393 AC Power supply module DC power distribution module 1 394 B 2 Module Specifications screened cate atus tette dai 1 398 KV 300 CPU sip tano tia 1 398 KV C16X C32X Input Modules eese 1 399 KV C32T B16R B16S Output Modules see 1 400 KV R8X R16X I O Terminal Modules eene 1 401 KV R8T R16T R8R R16R I O Terminal Modules sse 1 402 KV R8T R16T R8R R16R I O Terminal Modules RUN Output 1 403 KV R1A I O Distribution Module eeeeeene 1 403 B 3 gt DIMENSIONS se seien tes ien bead cee es ced et em d tilda 1 404 Appendix C Ladder Program List sess 1 406 Appendix D A D and D A Conversion Tables KV ANG 1 408 Voltage conversion table 1 408 Current conversion table sssssseseeeeneennnen nennen 1 409 WARRANTIES AND DISCLAIMERS 1 419 2 Support software Chapter 1 Introduction 1 1 Items Included in the Package sese 2 2 1 2 Outline of the Ladder Builder for KV ssseeeee 2 3 1 2 1 Operating environment and system configuration ses
125. tor 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 two point 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 O Interrupt function The Visual KV Series is equipped with four high speed interrupt inputs of 10 us maximum O Input time constant change function The time constant can be set in 7 steps from 10 us to 10 ms O 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
126. uctions 3 37 2 1 Instruction List Visual KV Series 2 1 3 Arithmetic Instructions Instruction Mnemonic Operand Operand value Function Exec time us DMmmmm nnnn constant DMmmmm DM No nnnn 0000 to 65535 0000 to FFFF DMmmmm DMO0000 to DM1999 Writes constant into data memory TRIMMER TMIN FUN 50 SETTING Trimmer No TMIN G FUN 50 Inputs value set by access window s digital trimmer 0 to 65535 to internal register R No C T No DM No TM xx constant LDA TMxx FUN 23 0000 to 17915 T000 to T249 C000 to C249 CTHO to CTH1 DM0000 to DM1999 TMOO to TM31 00000 to 65535 160000 to FFFF TMOO to TM29 Inputs value specified by operand into internal register or inputs current value when T C is specified as operand 6 4 to 14 0 18 4 to 26 0 STORE A STA FUN 42 0500 to 1915 2100 to 17915 TOOO to T249 C000 to C249 CTHO to CTC3 DM0000 to DM1999 TMOO to TM29 TMOO to TM29 Transfers content of internal register to location specified by operand or changes preset value when T C is specified as operand 6 6 to 28 5 18 0 to 40 5 CMP FUN 04 COMPARE CMP FUN 04 ADD FUNOO ADD FUN 00 DM TM No TMxx constant TMxx SUB FUN 46 SUBTRACT SUB FUN 46 MULTIPLY MUL FUN 28 MUL FUN28
127. upt INTERRUPT El ENABLED FNC 13 5 80 Enables execution of interrupt 000 to 003 40 00 to 80 00 INTERRUPT Executes instructions between INT and RETI at rising edge of any of input 000 to 003 or at falling edge of 003 40 00 to 80 00 Comparator CTCO to CTC3 No Used with compara tors CTCO to CTC3 and executes instructions between INT and RETI RETURN RETI INTERRUPT FNC 34 THEME Represents end of interrupt 3 54 Chapter2 Instructions 2 3 Convention Details 2 3 Convention Details In this chapter each instruction is described as follows Instruction Describes the name and brief function of Instruction key Represents the key or Ladder symbol Represents the form of the instruction on a the instruction Mnemonic function No for entry ladder diagram SET RES 2 4 Instructipn Details Represents the instruc tion in ladder language Example Description Note Tips programming Operand the instruction Example Timing diagram Perform programming using the given example Desc piod to gain experience Describes the notes for the instruction Tips Describes hands on techniques for efficient Operands Shows operands element Nos that can be used for Key operation Key operation Describes the basic key operations on t
128. values are equal 16 BIT COUNTER Clock source Rs 0 2200 005 to 2202 8 0 to 48 0 16 bit 0 to 65535 up counter for clock pulses with input response frequency of 10 kHz 16 BIT COUNTER COMPARA TOR 7j CTCn stddddd In Compara tor No ddddd preset value n 2 3 ddddd 00000 to 65535 3 0 to 4 0 Hardware based comparator between preset amp current values of high speed counter This comparator is turned ON when these values are equal SUBROU TINE CALL nn CALL CALL FNC 03 Subrou tine No 00 to 99 Executes subroutine specified by operand SUBROU TINE ENTRY Im SBN FNC 38 Subrou tine No 00 to 99 Represents beginning of subroutine specified by operand SUBROU TINE RETURN RET RET FNC 33 4 6 to 6 2 Represents end of subroutine Chapter 2 Instructions 3 45 2 2 Instruction List KV 300 Series KV 10 80 KV 10 16 24 40 80 Instruction Mnemonic Operand Operand value Operand value Exec time Function KV 10 16 KV 24 40 80 us 40000010 00000 to n FOR constant 65535 65535 ARAS FNC 16 DMNo DMO00010 DMO000to 5 0 to 20 0 beween FOR amp NEAT for number of times DM0999 DM1999 specified by operand TMOO to TM29 TMOO to TM29 REPEAT NEXT 171023 Represents end of END FNC 29 oa repetition
129. values of high speed counter This comparator is turned ON when these values are equal SUBROU TINE CALL CALL FNC 03 Subroutine No 00 to 99 Executes subroutine specified by operand SUBROU INE ENTRY SBN FNC 38 Subroutine No 00 to 99 Represents beginning of subroutine specified by operand SUBROU TINE RETURN RET FNC 33 1 15 to 1 45 Represents end of subroutine REPEAT START FOR FNC 16 constant DM No 00000 to 65535 DM0000 to DM9999 TMOO to TM29 1 55 Executes program between FOR amp NEXT for number of times specified by operand REPEAT END NEXT FNC 29 Represents end of repetition HKEY FNC 17 nnnn 0000 to 0009 10000 to 10415 17000 to 17415 mmmm 0500 to 0503 10500 to 10915 17500 to 17915 Chapter 2 Instructions 3 47 Reads 16 key data by time sharing and outputs these data into special utility Rs 2900 to 2915 2 2 Instruction List KV 300 Series KV 10 80 2 2 3 Arithmetic Instructions KV 10 16 24 40 80 Instruction Symbol Mnemonic Operand KV 10 16 24 40 80 Operand value KV 10 16 Operand value KV 24 40 80 Exec time us Function nnnn DW gt DMmmmm constant DM No 00000 to 65535 0000 to FFFF DMO0000 to DM0999 0000 to 65535 0000 to FFFF DMO0000 to DM1999 3 6 to 6 0 Writes constant i
130. veloping macros s een 2 74 242 Compilation opo PE E E 2 75 2 12 1 Executing compilation sseeeenenenm eene 2 75 2 12 2 Error display cita aa 2 76 2 12 3 Double coll Che k ccoo ii edt Pedes 2 76 2 13 Prlnting Functions ene epe ete te tdeo tint 2 77 2 13 1 E O 2 77 Chapter 4 2 13 2 Preview displasia eee ae ee nett rta d neget tlt 2 81 2 14 Changing the Display Color on the Screen ssssesess 2 82 2 14 1 Changing display colors on the screen oooocconccnncccnnccconnconccnonccnno conca nara ranccnnn 2 82 Simulator 3 4 Outline of the Simulator Functions seseem 2 84 3 41 Outline of the functions comicios ett ec ten degens 2 84 3 1 2 Restrictions in the simulator ssem emn 2 84 3 2 Starting up and Exiting from the Simulator ssesesessss 2 86 3 2 1 Operating procedure for startup and exit sssseeeee 2 86 3 2 2 Name and function of each part of the screen sssseenee 2 88 3 9 Ladder Monltor un pa pee nitet ire inp aes 2 89 3 3 1 Outline of the ladder monitor oooococinccnnnccinccnocccnccnnonncnnrncano conc nn nnc ronca narran 2 89 3 9 2 EXECULING SCANS unitat edad do pea 2 89 3 9 9 Executing steps i ette elut lere lex in pe ett tens 2 101 3 3 4 Jump ANA SSA CA ciclo aba 2 105 3 3 5 Stop reset and device all clear
Download Pdf Manuals
Related Search
Related Contents
共通取扱説明書 [PDF形式] Equipo portátil Dodge 2008 PM Caliber Automobile User Manual 2010年 CSRレポート 詳細版(PDF/12.9MB) CaddieON user guide for Android POLIÉSTER Estación de soldadura analógica HRV7504 Manual de Usuario SIREF - Contraloría General de la República Copyright © All rights reserved.
Failed to retrieve file