![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414108.webp)
2-3
Section
CPM1/CPM1A Interrupt Functions
87
CPM1A PCs
Mode
Input functions
Input method
Count
frequency
Count
range
Control methods
Up/Down
00000: Phase-A input
00001: Phase-B input
00002: Phase-Z input
Phase-difference,
4
×
inputs
2.5 kHz max.
–32767
to
32767
Target value control:
Up to 16 target values and
interrupt subroutine numbers can
be registered.
Z
i
t l
Incrementing
00000: Count input
00001: See note.
00002: Reset input
Individual inputs
5.0 kHz max.
0
to
65535
Zone comparison control:
Up to 8 sets of upper limit values,
lower limit values, and interrupt
subroutine numbers can be
registered.
Note
In incrementing mode, input 00001 can be used as a regular input. When the
reset method is used for the software reset, input 00002 can be used as a regular
input. Also, even when used for the phase-Z signal and software reset, the input
status is reflected inn 00002 of the I/O memory.
High-speed Counter Settings
The following settings must be made in DM 6642 when using the
CPM1/CPM1A’s high-speed counter function.
DM 6642
Bit
Function
Settings
Bits
Incrementing
Up/Down
Not used
00 to 03
Sets the counter mode:
0: Up/down
4: Incrementing
4
0
0 or 4
04 to 07
Sets the reset method:
0: Phase-Z + software reset
1: Software reset
0 or 1
0 or 1
0 or 1
08 to 15
Sets the counter:
00: Counter not being used.
01: Counter being used.
01
01
00
Count Range
The CPM1/CPM1A’s high-speed counter uses linear operation and the count
(present value) is stored in SR 248 and SR 249. (The upper four digits are stored
in SR 249 and the lower four digits are stored in SR 248.)
Mode
Count range
Up/Down
F003 2767 to 0003 2767 (–32,767 to 32,767)
The leftmost digit in SR 248 indicates the sign. F is negative, 0 is
positive.
Incrementing
0000 0000 to 0006 5535 (0 to 65,535)