High-Speed Counter 0 Overflows/Underflows - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

CQM1 Interrupt Functions
25315 (ON for 1 scan)
25313 (Always ON)
25313 (Always ON)
1-5-6

High-speed Counter 0 Overflows/Underflows

In addition, the following data is stored for the comparison table:
DM 0000
0002
DM 0001
1000
DM 0002
0000
DM 0003
0101
DM 0004
2000
DM 0005
0000
DM 0006
0102
CTBL(63)
Saves the comparison table in target matching format,
000
and begins comparing.
000
DM 0000
SPED(64)
020
Begins continuous pulse output to IR10002 at 500 Hz.
001
#0050
SBN(92)
101
SPED(64)
When the high-speed counter value reaches 1000, subroutine
020
101 is called and the frequency of the pulse output is changed to
001
200 Hz.
#0020
RET(93)
SBN(92)
102
SPED(64)
When the high-speed counter value reaches 2000, subroutine 102
020
is called and the pulse output is stopped by setting the frequency
to 0.
001
#0000
RET(93)
When the program is executed, operation will be as follows:
Pulse frequency (Hz)
500
200
0
If the allowable counting range for high-speed counter 0 is exceeded, and
underflow or overflow status will occur and the counter's PV will remain at
0FFF FFFF for overflows and FFFF FFFF for underflows until the overflow/
underflow status is cleared by resetting the counter. The allowable counting
ranges are as follows:
Up/Down Mode:
Incrementing Mode: 0000 0000 to 0006 5535
Number of comparison conditions: 2
Target value 1: 1000
Comparison 1 interrupt processing routine no.: 101
Target value 1: 2000
Comparison 2 interrupt processing routine no.: 102
2
7
F003 2767 to 0003 2767
Section 1-5
Time elapsed (s)
53

Advertisement

Table of Contents
loading

Table of Contents