KEYENCE KV Series User Manual
Page 22

(21)
4.2
Outline of High-speed Counters ................................................................. 3-206
4.2.1
High-speecÛ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
4.5.1
Specified Frequency Pulse Output Function .................................................. 3-228
4.5.2
Applications of the Specified Frequency Pulse Output ................................... 3-229
4.5.3
Frequency Counter Function .......................................................................... 3-231
4.5.4
Applications of Frequency Counters ............................................................... 3-232
4.5.5
Cam Switch Function ...................................................................................... 3-233
Cam switch mode .................................................................................... 3-233
Multi-step comparator mode .................................................................... 3-234
Setting method ......................................................................................... 3-234
4.5.6
Application of the Cam Switch (Cam Switch Mode) ....................................... 3-236
4.6
Direct Clock Pulse Output ........................................................................... 3-237
4.6.1
Outline of Direct Clock Pulse Output .............................................................. 3-237
4.6.2
Pulse Output Setting with the High-speed Counter Comparator .................... 3-238
Changing the pulse period and width ....................................................... 3-238
Calculating the pulse period and comparator preset value ...................... 3-239
Operation with special utility relays .......................................................... 3-239
4.7
Examples of Direct Clock Pulse Output .................................................... 3-242
4.7.1
Example of Outputting a Pulse with 1:1 ON/OFF Ratio .................................. 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 .................................................................... 3-254
5.1.1
Ramp-up/down Control ................................................................................... 3-254
5.2
Parameter Setting and Operating Procedures .......................................... 3-255
5.2.1
Parameter Setting Procedure ......................................................................... 3-255
5.2.2
Operating Procedure ...................................................................................... 3-257
5.3
Examples of Using the Positioning Control Function .............................. 3-258
5.3.1
Connection Example ....................................................................................... 3-258
5.3.2
Tips ................................................................................................................. 3-258
5.3.3
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 ................................................................................... 3-268
6.1.1
Description of Interrupts .................................................................................. 3-268
Input processing for routine program and interrupt routine ...................... 3-268
Types of interrupt ..................................................................................... 3-268
Interrupt priority ........................................................................................ 3-269
Interrupt routine ........................................................................................ 3-269
Direct output ............................................................................................. 3-270
KVNKA Front_Soft.p65
08.3.11, 11:24 AM
22