Visual kv series – KEYENCE Visual KV Series User Manual
Page 253

4.5 Special Functions Using High-speed Counters
3-229
Visual KV
Series
1
4
Chapter 4 High-speed Counters
■ Setting method
•
Set the desired output frequency (Hz) into DM1936. The available range is 16 Hz
to 50 kHz (16 to 50000).
•
Pulses are output when special utility relay 2306 is ON. The output is stopped
when the relay is turned OFF.
•
If an unacceptable frequency is specified, special utility relay 2307 (error relay)
turns ON. Special utility relay 2306 is turned OFF and pulse output is stopped.
Note 1: The available minimum frequency specified in DM1936 is 16 Hz.
Note 2: The output is stopped when a value of 15 or less is specified in DM1936.
Note 3: Starts and stops of pulse output or frequency changes are executed after
each scan.
Note 4: It takes a maximum of 200 µs from when the output command is issued until
pulses are output.
Note 5: CTH1 and special utility relays 2200 through 2215 cannot be used when the
specified frequency pulse output function is used.
4.5.2
Applications of the Specified Frequency Pulse Output
■ Program using a digital trimmer
The following ladder program illustrates how to use a digital trimmer to output pulses
at a desired frequency (16 Hz to 10 kHz).
Pulse output is stopped when the value of the digital trimmer decreases to 15 or
less.
1) Sets the upper limit of the digital trimmer to "10000" and turns ON special utility
relay 2306 to start the specified frequency pulse output.
2) Sets the input value of the digital trimmer as the output frequency value.
3) Output relay 0500 turns ON when a setting error occurs.
2008
0003
0005
#10000
LDA
DM1938
STA
0
TMIN
DM1936
STA
2002
0001
2307
0002
END
ENDH
0004
0500
2306
SET
1)
2)
3)
KVNKA Chap 04_2.p65
08.3.11, 0:08 PM
229