4 applications of frequency counters, Visual kv series – KEYENCE Visual KV Series User Manual

Page 256

Advertising
background image

4.5 Special Functions Using High-speed Counters

3-232

Visual KV

Series

4

Chapter 4 High-speed Counters

4.5.4

Applications of Frequency Counters

Program for basic operation of the frequency counter

Stores the frequency of pulses at input relay 0004 to DM0000 every second (1000
ms). (Unit: Hz)

1) Sets the counting period to "1000 ms (1 second)" and turns ON special utility

relay 2305 to start the frequency counter function.

2) Sets the input time constant for input relay 0004 to 10 µs.
3) Stores the measured frequency (Hz) into data memory DM0000.

Program for synchronous control

The following ladder program illustrates synchronous control using the frequency
counter and pulse output functions.
Measures the frequency of pulses at input relay 0004 every 100 ms and outputs
pulses of the same frequency from output relay 0501.

1) Sets the counting period to "100 ms" and turns ON special utility relays 2305 and

2306 to start the frequency counter and the specified frequency pulse output
functions.

2) Sets the input time constant for input relay 0004 to 10 µs.
3) Uses the measured frequency (Hz) as the preset value for the output frequency

(Hz).

4) Turns on output relay 0500 when an error occurs in the setting of the specified

frequency pulse output.

0001

2008

0003

2002

2002

0004

0002

#01000

LDA

DM1404

STA

END

0005

ENDH

2305

SET

DM1405

LDA

DM0000

STA

HSP

0004

1)

2)

3)

0001

2008

0003

2002

2002

0004

0002

#00100

LDA

DM1404

STA

2307

END

0005

0006

ENDH

2305

SET

2306

SET

DM1405

LDA

DM1936

STA

HSP

0004

0500

1)

2)

3)

4)

KVNKA Chap 04_2.p65

08.3.11, 0:08 PM

232

Advertising