56
CQM1 Interrupt Functions Section 1-5
to the maximum count value when decrementing. There are no negative
values.
The number of points on the ring (maximum count value +1) can be set
from 1 to 65,000.
2. Linear Mode:
The counting range in linear mode is –8,388,607 to 8,388,607. If the allow-
able counting range for high-speed counter 1 or 2 is exceeded, an under-
flow or overflow status will occur and the counter’s PV will remain at
0838 8607 for overflows and F838 8607 for underflows, counting or com-
parison will be stopped, and AR 0509 (port 1) or AR 0609 (port 2) will be
turned ON.
Note 1. One of the methods in the following section should always be used to reset
the counter when restarting it. The counter will be automatically reset when
program execution is started or stopped.
2. The following signal transitions are handled as forward (incrementing)
pulses: A-phase leading edge to B-phase leading edge to A-phase trailing
edge to B-phase trailing edge. The following signal transitions are handled
as reverse (decrementing) pulses: B-phase leading edge to A-phase lead-
ing edge to B-phase trailing edge to A-phase trailing edge.
Reset Methods
Either the Z-phase signal + software reset or software reset may be selected
for resetting the PV of the count (i.e., setting it to 0). These resets operate the
same as they do for high-speed counter 0. Refer to page 48 for details.
Note 1. The reset bits for high-speed counters 1 and 2 (SR 25201 and SR 25202)
are refreshed once every cycle. Make sure that a reset bit is ON for at least
one full cycle so it can be read reliably.
2. The comparison table, execution status, and range comparison results will
be retained through a reset. (A comparison will be continued after a reset
is performed.)
High-speed Counter Interrupt Count
The comparison tables used for high-speed counters 1 and 2 are just like the
one used for high-speed counter 0. Refer to page 49 for details.
PC Setup When using high-speed counter 1 and/or 2 interrupts, make the settings in
PROGRAM mode shown below before executing the program.
Port 1 and 2 Mode Setting (DM 6611)
Specify high-speed counter mode for ports 1 and 2. If high-speed counter
mode is not specified, CTBL(63) cannot be used to make count comparisons.
Ring Mode
0
Max. count value
Decrement Increment
Linear Mode
0–8.388,607 8.388,607
Underflow Overflow