beautypg.com

Visual kv series – KEYENCE Visual KV Series User Manual

Page 270

background image

4.7 Examples of Direct Clock Pulse Output

3-246

Visual KV

Series

4

Chapter 4 High-speed Counters

0000

0000

2105

RES

2105

SET

0000

0000

RES

KEEP

2105

SET

Coding

Note 1: 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 output stops.
Note 2: Refer to the following "Tips" to start and stop the clock pulse.

Tips

Use special utility relay 2105 to control (enable/disable) the clock pulse output by
external inputs.

Use the SET-RES pair or KEEP instruction to turn special utility relay 2105 ON/
OFF.
With this setting, the clock pulse is always turned OFF when it starts as well as
stops.

When either of the following program is added to the example on the previous
page, the clock pulse is output from 0500 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 the CTC0
preset value using the LDA and STA instructions.
To change the period of the clock pulse, refer to "4.3.4 Count Input Method" (p.3-
212).

Line No.

Instruction

Operand

Line No.

Instruction

Operand

0000

LD

2008

0013

CON

0001

MPS

0014

SET

2109

0002

SET

2103

0015

CON

0003

CON

0016

RES

2110

0004

RES

2104

0017

CON

0005

CON

0018

RES

2111

0006

RES

2105

0019

CON

0007

CON

0020

RES

CTH0

0008

RES

2106

0021

LD

2002

0009

CON

0022

CTH

0 2101

0010

RES

2107

0023

CTC

0 #00050

0011

MPP

0024

CTC

1 #00020

0012

RES

2108

KVNKA Chap 04_2.p65

08.3.11, 0:08 PM

246