Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 108

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

CPM1/CPM1A Interrupt Functions
CPM1A PCs
Mode
Input functions
Up/Down
00000: Phase-A input
00001: Phase-B input
00002: Phase-Z input
Incrementing 00000: Count input
00001: See note.
00002: Reset input
High-speed Counter Settings The following settings must be made in DM 6642 when using the
Count Range
Input method
Phase-difference,
4 inputs
Individual inputs
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.
CPM1/CPM1A's high-speed counter function.
DM 6642
Bits
Bit
00 to 03
Sets the counter mode:
0: Up/down
4: Incrementing
04 to 07
Sets the reset method:
0: Phase-Z + software reset
1: Software reset
08 to 15
Sets the counter:
00: Counter not being used.
01: Counter being used.
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
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)
Count
Count
frequency
range
2.5 kHz max. –32767
Target value control:
to
Up to 16 target values and
32767
interrupt subroutine numbers can
be registered.
Zone comparison control:
Z
5.0 kHz max. 0
Up to 8 sets of upper limit values,
to
lower limit values, and interrupt
65535
subroutine numbers can be
registered.
Function
Incrementing
4
0 or 1
01
Count range
Section
2-3
Control methods
i
t l
Settings
Up/Down
Not used
0
0 or 4
0 or 1
0 or 1
01
00
87

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Table of Contents