Visual kv series – KEYENCE Visual KV Series User Manual
Page 272

4.7 Examples of Direct Clock Pulse Output
3-248
Visual KV
Series
4
Chapter 4 High-speed Counters
0000
0000
2205
RES
2205
SET
0000
0000
RES
KEEP
2205
SET
Coding
Note :When the input enable relay for the high-speed counter is used to start/stop
the clock pulse, the response is delayed by a maximum of one scan when output
starts. The response is also delayed by a maximum of one scan when the output
stops.
■ Tips
•
Use special utility relay 2205 to control (enable/disable) the clock pulse output by
external inputs.
•
Use the SET-RES pair or KEEP instruction to turn special utility relay 2205 ON/
OFF.
With this setting, the clock pulse is always turned OFF when it starts as well as
stops.
•
When either of the following programs is added to the example on the previous
page, the clock pulse is output from 0501 only when 0000 is ON.
When SET-RES instructions are used
When KEEP instruction is used
•
You can change the period (frequency) of the clock pulse by changing CTC2
preset value using LDA and STA instructions.
To change the period of the clock pulse, refer to "4.3.4 Count Input Method" on
page 3-212.
Line No.
Instruction
Operand
Line No.
Instruction
Operand
0000
LD
2008
0012
SET
2209
0001
MPS
0013
CON
0002
SET
2203
0014
RES
2210
0003
CON
0015
CON
0004
RES
2204
0016
RES
2211
0005
CON
0017
CON
0006
SET
2205
0018
RES
CTH1
0007
CON
0019
LD
2002
0008
RES
2207
0020
CTH
1 2201
0009
MPP
0021
CTC
2 #00050
0010
RES
2208
0022
CTC
3 #00020
0011
CON
KVNKA Chap 04_2.p65
08.3.11, 0:08 PM
248