62
CQM1 Interrupt Functions Section 1-5
1-5-8 Absolute High-speed Counter Interrupts (CQM1-CPU44-EV1)
Binary-code signals from an absolute rotary encoder can be input to ports 1
and 2 of the CQM1-CPU44-EV1 and counted at 4 kHz. Interrupt processing
can be executed according to the count.
The 2 ports can be operated separately. The counter for port 1 is called abso-
lute high-speed counter 1 and the counter for port 2 is called absolute high-
speed counter 2. This section describes how to use absolute high-speed
counters 1 and 2. Refer to the CQM1 Operation Manual for hardware informa-
tion such as equipment and wiring specifications.
Processing Input Signals and Count Modes
There are two count modes that can be used for absolute high-speed
counters 1 and 2. The count mode and the resolution settings are specified in
the PC Setup (DM 6643 and DM 6644).
1,2,3... 1. BCD Mode:
The absolute rotary encoder’s binary code is first converted to normal bi-
nary data and then converted to BCD.
2. 360
° Mode:
The absolute rotary encoder’s binary code is converted to an angular value
(0
° to 359°) according to the resolution setting. (CTBL(63) settings are
made in 5
° units.)
The following table shows the possible counter PVs in BCD mode and 360
°
mode for each resolution setting.
Absolute High-speed Counter Interrupt Count
The counter’s PV can be compared to up to 16 target values or 8 ranges.
Refer to 5-15-6 REGISTER COMPARISON TABLE – CTBL(63) for a descrip-
tion of the comparison tables used with absolute high-speed counters 1 and
2.
PC Setup When using absolute high-speed counter 1 and/or 2 interrupts, make the set-
tings in PROGRAM mode shown below before executing the program.
Input Refresh Word Settings (DM 6634 and DM 6635)
DM 6634 contains the input refresh word settings for absolute high-speed
counter 1, and DM 6635 contains the settings for absolute high-speed counter
2. Make these settings when it is necessary to refresh inputs.
Resolution Possible PVs
BCD mode 360° mode
8-bit 0 to 255 PV output: 0° to 359° (1° units)
Comparison table settings: 0° to 355° (5° units)
10-bit 0 to 1023
12-bit 0 to 4095
15 0
DM 6634/DM 6635
Bit
Number of words (2 digits BCD) 00 to 12
Beginning word no. (2 digits BCD) 00 to 11
Default: No input refresh