KEYENCE Visual KV Series User Manual
Page 11

(10)
Chapter 2
Instructions
2.1
Instruction List [Visual KV Series] .............................................................. 3-34
2.1.1
Basic Instructions .............................................................................................. 3-34
2.1.2
Application Instructions ..................................................................................... 3-36
2.1.3
Arithmetic Instructions ...................................................................................... 3-38
2.1.4
Interrupt Instructions ......................................................................................... 3-41
2.1.5
Function No. List (Alphabetical order) .............................................................. 3-41
2.2
Instruction List [KV-300 Series, KV-10/80] ................................................. 3-42
2.2.1
Basic Instructions .............................................................................................. 3-42
2.2.2
Application Instructions ..................................................................................... 3-45
2.2.3
Arithmetic Instructions ...................................................................................... 3-48
2.2.4
Interrupt Instructions ......................................................................................... 3-54
2.3
Convention Details ........................................................................................ 3-55
2.4
Instruction Details .......................................................................................... 3-56
2.4.1
Basic Instructions .............................................................................................. 3-56
2.4.2
Application Instructions ..................................................................................... 3-95
2.4.3
Arithmetic Instructions .................................................................................... 3-134
2.5
Programming Notes ..................................................................................... 3-189
Chapter 3
Interrupts
Visual KV
3.1
Interrupt Instructions ................................................................................... 3-192
3.2
Interrupt Processing .................................................................................... 3-194
3.2.1
Interrupt Processing ........................................................................................ 3-194
3.2.2
Types of Interrupts .......................................................................................... 3-195
3.2.3
Interrupt Priority .............................................................................................. 3-196
3.2.4
Interrupt Program ............................................................................................ 3-196
3.3
Direct Input/Output ...................................................................................... 3-197
3.3.1
Direct Input ..................................................................................................... 3-197
3.3.2
Direct Output ................................................................................................... 3-197
3.4
Applications of Interrupt Programs ........................................................... 3-198
3.4.1
Interrupt with a Signal Converter .................................................................... 3-198
3.4.2
Interrupt with a High-speed Counter ............................................................... 3-199
3.4.3
Measuring the ON Time of High-speed Pulses .............................................. 3-200
3.4.4
Measuring the Period in which a Target Passes between Two Points ........... 3-201
Chapter 4
High-speed Counters
Visual KV
4.1
High-speed Counter Instructions ............................................................... 3-204
4.2
Outline of High-speed Counters ................................................................. 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 ..................................................... 3-208
High-speed counter comparators ............................................................. 3-209
4.2.2
Internal Clock for High-speed Counters .......................................................... 3-210
4.3
Setting and Operation of High-speed Counters ........................................ 3-211
4.3.1
Reading the Current Value of the High-speed Counter .................................. 3-211
4.3.2
Preset Value of the High-speed Counter Comparator .................................... 3-211
4.3.3
Comparator Output ......................................................................................... 3-211
4.3.4
Count Input Method ........................................................................................ 3-212
4.3.5
Resetting the High-speed Counter ................................................................. 3-214
4.3.6
Differences with the CTH Instruction between the
Conventional and Visual KV Series ................................................................ 3-216
4.3.7
Applications of High-speed Counters ............................................................. 3-217
4.4
Extended Functions of High-speed Counters ........................................... 3-221
4.4.1
24-bit High-speed Counter .............................................................................. 3-221
4.4.2
Changing the Current Value of a 24-bit High-speed Counter ......................... 3-223
4.4.3
Application Example of 24-bit High-speed Counter (single-phase input) ....... 3-224
4.4.4
Ring Counter Function .................................................................................... 3-225
4.4.5
Applications of Ring Counters ........................................................................ 3-226
4.5
Special Functions Using High-speed Counters ........................................ 3-228
KVNKA Front_Pro.p65
08.3.11, 0:13 PM
11