beautypg.com

Visual kv series – KEYENCE Visual KV Series User Manual

Page 243

background image

4.3 Setting and Operation of High-speed Counters

3-219

Visual KV

Series

1

4

Chapter 4 High-speed Counters

Phase differential input

Inputs phase differential signals from input relays 0004 and 0006 and counts
pulses at CTH0.

The count value is written to DM0000.

When the current value of CTH0 reaches "60000", clears the value, turns ON
output 0500, and stops counting at CTH0.

Input relay 0008 is used as an external reset.

Cording

Initial setting
Special utility relays

Turn ON 2013 to reset the current value of CTH0 when CTC0 turns ON.

Turn ON 2113 and turn OFF 2114 to set the high-speed counter to double (x2)
multiplication mode.

Turn ON 2400 and turn OFF 2401 to enable the external reset.

The counter is reset at the rising edge of input 0008.

Note : External reset input 0008 is set with hardware. Programming is not necessary
except for setting the external reset enable relays (2400 to ON and 2401 to OFF).

2103

SET

EI

2113

SET

2114

RES

2401

RES

CTH0

RES

0500

2008

0500

2002

CTH0

0004

2002

END

INT

CTC0

RETI

ENDH

#60000

CTC0

2002

HSP

0004

HSP

0006

HSP

0008

CTH0

LDA

DM0000

STA

SET

2400

SET

Initial setting

Line No.

Instruction

Operand

Line No.

Instruction

Operand

0000

LD

2008

0016

HSP

0006

0001

EI

0017

HSP

0008

0002

CON

0018

LDB

0500

0003

SET

2103

0019

CTH

0 0004

0004

CON

0020

CTC

0 #60000

0005

SET

2113

0021

LD

2002

0006

CON

0022

LDA

CTH0

0007

RES

2114

0023

CON

0008

CON

0024

STA

DM0000

0009

SET

2400

0025

END

0010

CON

0026

INT

CTC0

0011

RES

2401

0027

LD

2002

0012

CON

0028

SET

0500

0013

RES

CTH0

0029

RETI

0014

LD

2002

0030

ENDH

0015

HSP

0004

KVNKA Chap 04_1.p65

08.3.11, 0:06 PM

219