
6.2 High-speed Counters
KV-300
KV-10/80
3-285
1
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
0000 2105
0000
SET
2105
RES
0000
2105
0000
SET
RES
KEEP
KEEP InstructionsSET/RES Instructions
Coding
Line No. Instruction Operand
0000 LD 2008
0001 SET 2103
0002 CON
0003 RES 2104
0004 CON
0005 RES 2105
0006 CON
0007 RES 2106
0008 CON
0009 SET 2107
0010 CON
0011 RES CTH0
0012 LD 2002
0013 CTH 0 2101
0014 CTC 0 #00050
When start/stop of clock pulse is controlled by the input relay which enables/
disables the high-speed counter, response relay of up to 1 scan is generated
at start. Also, the same response relay is generated at stop, which may stop
clock pulse output while the output relay is still ON.
This controls clock pulse so that it always starts and stops when 2105 turns OFF.
Turn ON/OFF special utility relay 2105 as required to enable or disable output of
direct clock pulses using one of the external clocks. Use SET and RES instructions
together or only KEEP instruction to turn ON/OFF this relay.
The diagram below can be added to the sample diagram so that direct clock pulses
are output through 0500 only when 0000 is ON.
CAUTION
■ When outputting clock pulse with cycle 1 ms (1 kHz) from 0501
This program example shows how to output clock pulse with 1:1 ON/OFF ratio from
0501, through high-speed counter CTH1 and high-speed counter comparator CTC2.
Setting special utility relays
Special utility relays 2203 to 2212 are set as shown on the right table.
The program can be simplified using reverse output (toggle) for pulse with 1:1 ON/
OFF ratio.
Relay No. Setting Relay No. Setting
2203 ON 2212 OFF
2204 OFF 2208 OFF
2205 OFF 2209 OFF
2206 OFF 2210 OFF
2207 ON 2211 OFF
KVNKA Chap 06.p65 08.3.11, 0:10 PM285
Comentarios a estos manuales