Visual kv series – KEYENCE Visual KV Series User Manual

Page 239

Advertising
background image

4.3 Setting and Operation of High-speed Counters

3-215

Visual KV

Series

1

4

Chapter 4 High-speed Counters

Reset with external input

Resets the counter at the instant the external reset input relay turns ON.
The external reset is assigned to input relay 0008 (KV-10xx: 0002) for CTH0, and
input relay 0009 (KV-10xx: 0003) for CTH1.
The timing of the reset can be changed by setting relays 2400 and 2401 (for CTH0)
or 2408 and 2409 (for CTH1) as follows.
This reset operation is independent of the scan time.

*

CTH is reset at the instant the external reset input relay turns ON.

Preset function

The current value of CTH can be changed to any desired value by using the external
reset function of input relays 0008 (KV-10xx: 0002) (for CTH0) or 0009 (KV-10xx:
0003) (for CTH1) specified with special utility relays 2400 and 2401 (for CTH0) or
2408 and 2409 (for CTH1). (The external reset function sets the value to "0".)
Write the desired value of the preset input into the following data memories:

Use the STA or DW instruction to write data to the data memory.

Note 1: The preset function is available only with the external reset input. The CTH
value is reset to "0" with other resetting methods.
Note 2: Use the SET, RES instruction pair to set the special utility relays.
Note 3: When 16-bit high-speed counter is used, write the preset values into
DM1924 and DM1926 only.

Scan

External
reset input

CTH

d

e

e

p

s

-

h

g

i

H

r

e

t

n

u

o

c

.

o

N

y

a

l

e

R

s

u

t

a

t

S

.

o

N

y

a

l

e

R

s

u

t

a

t

S

n

o

i

t

a

r

e

p

O

0

H

T

C

0

0

4

2

F

F

O

1

0

4

2

F

F

O

.

n

o

i

t

a

r

e

p

o

t

e

s

e

r

l

a

n

r

e

t

x

e

s

e

l

b

a

s

i

D

N

O

F

F

O

t

u

p

n

i

f

o

e

g

d

e

g

n

i

s

i

r

t

a

r

e

t

n

u

o

c

s

t

e

s

e

R

.

)

2

0

0

0

:

x

x

0

1

-

V

K

(

8

0

0

0

F

F

O

N

O

t

u

p

n

i

f

o

e

g

d

e

g

n

il

l

a

f

t

a

r

e

t

n

u

o

c

s

t

e

s

e

R

.

)

2

0

0

0

:

x

x

0

1

-

V

K

(

8

0

0

0

N

O

N

O

8

0

0

0

t

u

p

n

i

n

e

h

w

r

e

t

n

u

o

c

s

t

e

s

e

R

.

N

O

s

i

)

2

0

0

0

:

x

x

0

1

-

V

K

(

1

H

T

C

8

0

4

2

F

F

O

9

0

4

2

F

F

O

.

n

o

i

t

a

r

e

p

o

t

e

s

e

r

l

a

n

r

e

t

x

e

s

e

l

b

a

s

i

D

N

O

F

F

O

t

u

p

n

i

f

o

e

g

d

e

g

n

i

s

i

r

t

a

r

e

t

n

u

o

c

s

t

e

s

e

R

.

)

3

0

0

0

:

x

x

0

1

-

V

K

(

9

0

0

0

F

F

O

N

O

t

u

p

n

i

f

o

e

g

d

e

g

n

il

l

a

f

t

a

r

e

t

n

u

o

c

s

t

e

s

e

R

.

)

3

0

0

0

:

x

x

0

1

-

V

K

(

9

0

0

0

N

O

N

O

9

0

0

0

t

u

p

n

i

n

e

h

w

r

e

t

n

u

o

c

s

t

e

s

e

R

.

N

O

s

i

)

3

0

0

0

:

x

x

0

1

-

V

K

(

.

o

N

M

D

n

o

i

t

p

i

r

c

s

e

D

)

s

t

i

b

r

e

d

r

o

-

h

g

i

h

(

5

2

9

1

M

D

,

)

s

t

i

b

r

e

d

r

o

-

w

o

l

(

4

2

9

1

M

D

0

H

T

C

r

o

f

e

u

l

a

v

t

e

s

e

r

P

)

s

t

i

b

r

e

d

r

o

-

h

g

i

h

(

7

2

9

1

M

D

,

)

s

t

i

b

r

e

d

r

o

-

w

o

l

(

6

2

9

1

M

D

1

H

T

C

r

o

f

e

u

l

a

v

t

e

s

e

r

P

KVNKA Chap 04_1.p65

08.3.11, 0:06 PM

215

Advertising