High-speed counter comparators, Visual kv series – KEYENCE Visual KV Series User Manual

Page 233

Advertising
background image

4.2 Outline of High-speed Counters

3-209

Visual KV

Series

1

4

Chapter 4 High-speed Counters

Note 1: CTH instructions cannot be duplicated in a program. A maximum of two
counters, CTH0 and CTH1, can be used in one program.

Note 2: The operands for a high-speed counter cannot be changed during program
execution.

Note 3: When using a high-speed counter with external inputs, the input time con-
stant must be set to 10 µs with the HSP instruction or with special utility relay 2813.
(Pulses with a maximum frequency of 30 kHz can be counted.)

Note 4: When using input 0004 as an operand, use input 0006 (KV-10xx: 0000) for
phase B input. Therefore, do not use input 0006 (KV-10xx: 0000) other than for the
high-speed counter.

Note 5: When selecting no multiplication mode, and you do not want to use input
0006 (KV-10xx: 0000) as phase B input, turn ON special utility relay 2407.

Note 6: When using input 0005 as an operand, use input 0007 (KV-10xx: 0001) for
phase B input. Therefore, do not use input 0007 (KV-10xx: 0000) other than for the
high-speed counter.

Note 7: When selecting no multiplication mode, and you do not want to use input
0007 (KV-10xx: 0001) as phase B input, turn ON special utility relay 2415.

Note 8: When using the high-speed counter internal connection relay 0500, only
single-phase input is available. In this case, external input relays 0005 and 0007 for
CTH1 can be used as normal input relays.

Note 9: When using phase differential input, pulses with a maximum frequency of 30
kHz can be counted, provided the pulses have a duty ratio of 1:1 (50%) and phase
difference of 90°. Inputting pulses with an irregular duty ratio or phase difference will
decrease the allowable input frequency.

Note 10: The current value of the high-speed counter is stored with a built-in,
electrical double-layer capacitor for more than two months at 25°C (KV-10xx: more
than 20 days). The value can also be stored in EEPROM.

"3.5 System Mode" (p.1-94).

High-speed counter comparators

The high-speed counter comparator (CTC) compares its preset value with the
value of the high-speed counter (CTH).

The CTC contact turns ON when the current value of the CTH matches the
preset value of the CTC.

Among CTC contacts, the ON/OFF status of output relays 0500 and 0501 can be
changed with hardware (direct output) or can be used to execute an interrupt. Set
special utility relays (2103 to 2112, 2203 to 2212) to change the ON/OFF status
of output relays 0500 and 0501.

The following table shows the relationship between the high-speed counters and
high-speed counter comparators.

Note 1: Once the high-speed counter comparator turns ON, it remains ON until a
RES instruction is encountered.
Note 2: When a high-speed counter comparator is used as an interrupt, the interrupt
is executed as soon as the current value of the high-speed counter reaches the
preset value of the comparator. At the same time, the contact for the high-speed
counter comparator automatically turns OFF.
Note 3: CTC2 or CTC3 cannot be used as comparators for CTH0; CTC0 or CTC1
cannot be used as comparators for CTH1.
Note 4: Do not specify "#00000" as the preset value for CTC0 through CTC3.

d

e

e

p

s

-

h

g

i

H

r

e

t

n

u

o

c

r

e

t

n

u

o

c

d

e

e

p

s

-

h

g

i

H

r

o

t

a

r

a

p

m

o

c

e

u

l

a

v

t

e

s

e

r

P

e

g

n

a

r

t

c

e

r

i

D

t

u

p

t

u

o

s

t

p

u

r

r

e

t

n

I

0

H

T

C

1

C

T

C

,

0

C

T

C

5

3

5

5

6

o

t

1

#

0

0

5

0

1

C

T

C

T

N

I

,

0

C

T

C

T

N

I

1

H

T

C

3

C

T

C

,

2

C

T

C

1

0

5

0

3

C

T

C

T

N

I

,

2

C

T

C

T

N

I

KVNKA Chap 04_1.p65

08.3.11, 0:06 PM

209

Advertising