Omron CQM1H - PROGRAM Programming Manual page 60

Programmable controllers; inner boards
Table of Contents

Advertisement

Interrupt Functions
Phase-Z
(reset input)
SR25200
1 or more cycles
Differential phase mode
Phase-A
Phase-B
1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0 −1 −2
Count
Incremented
Note 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.
The following signal transitions are handled as forward (incrementing) pulses:
phase-A leading edge to phase-B leading edge to phase-A trailing edge to
phase-B trailing edge. The following signal transitions are handled as reverse
(decrementing) pulses: phase-B leading edge to phase-A leading edge to
phase-B trailing edge to phase-A trailing edge.
The count range is from –32,767 to 32,767 for differential phase mode, and
from 0 to 65,535 for Incrementing Mode. Pulse signals can be counted at up
to 2.5 kHz in differential phase mode, and up to 5.0 kHz in incrementing
mode.
The differential phase mode always uses a 4X phase-difference input. The
number of counts for each encoder revolution would be 4 times the resolution
of the counter. Select the encoder based on the countable ranges.
Reset Methods
Either of the two methods described below may be selected for resetting the
PV of the count (i.e., setting it to 0).
Method
Phase-Z signal
The PV is reset when the phase-Z signal (reset input) turns ON
+ software reset
after the High-speed Counter 0 Reset Bit (SR 25200) is turned ON.
Software reset
The PV is reset when the High-speed Counter 0 Reset Bit
(SR 25200) is turned ON.
Phase-Z signal + software reset
1 or more cycles
Within 1 cycle
Reset by interrupt.
Reset by cycle.
Note The High-speed Counter 0 Reset Bit (SR 25200) is refreshed once every
cycle, so in order for it to be read reliably it must be ON for at least one cycle.
The "Z" in "phase-Z" is an abbreviation for "Zero." It is a signal that shows that
the encoder has completed one cycle.
Pulse
input
Decremented
Operation
SR25200
Not reset.
Section 1-4
Incrementing mode
1
2
3
Count
Incremented only
Software reset
1 or more cycles
Within 1 cycle
Reset by cycle.
4
35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents