Kv -300 – KEYENCE Visual KV Series User Manual
Page 319

6.2 High-speed Counters
KV
-300
KV-10/80
3-295
1
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
RET
0025
INTERRUPT ROUTINE FOR SPEED-UP/SLOW-DOWN
INT
CTC2
SPEED-UP
DM0012
LDA
DM0002
ADD
DM0012
STA
DM0000
CMP
1200
2011
03
CALL
2011
02
CALL
2011
( )
1201
2011 DM0003
LDA
DM0011
SUB
CTC2
STA
DM0011
STA
1201
(RES )
1200
SPEED-UP
DM0012
LDA
DM0002
SUB
DM0012
STA
DM0001
CMP
1200
2011
02
CALL
2011
02
CALL
#65535
LDA
CTC2
STA
RETI
RETI
ENDH
INTERRUPT FOR PULSE STOP
INT
CTC3
2002
(SET )
2105
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
Adds the acceleration rate to the
current frequency to change
frequency whenever CTC2 turns
ON while acceleration flag 1200 is
ON. When the current frequency
reaches fH, stops acceleration and
sets the deceleration pulse count.
Subtracts the acceleration rate from
the current frequency to change
frequency whenever CTC2 turns
ON while acceleration flag 1200 is
OFF. When the current frequency
reaches fL, stops deceleration and
initializes the settings.
When pulse count of clock pulses
equals the setting value of CTC3,
stops clock pulse output.
KVNKA Chap 06.p65
08.3.11, 0:10 PM
295