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

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

Advertisement

CPM1/CPM1A Interrupt Functions
Phase-Z Signal + Software Reset
CPU processing
25200
(1)
Phase-Z
Not reset
1 cycle
Program
Program
Program
execution
execution
execution
(2)
(3)
Not reset
Reset
No.
Operation timing
(1)
Phase-Z signal turns ON when
SR 25200 turns OFF.
(2)
Phase-Z signal turns ON within one
cycle after SR 25200 turns ON.
(3)
Phase-Z signal turns ON after at least
one cycle elapses after SR 25200
turns ON.
(4)
Phase-Z signal turns ON within one
cycle after SR 25200 turns OFF.
(5)
SR 25200 turns ON when phase-Z
signal is ON.
Note The High-speed Counter 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.
High-speed Counter Interrupt Count
For high-speed counter 0 interrupts, a comparison table is used instead of a
"count up." The count check can be carried out by either of the two methods de-
scribed below. In the comparison table, comparison conditions (for comparing to
the PV) and interrupt routine combinations are saved.
Target value:
A maximum of 16 comparison conditions (target values and count direc-
tions) and interrupt routine combinations are saved in the comparison table.
When the counter PV and the count direction match the comparison condi-
tions, then the specified interrupt routine is executed.
Range (zone) comparison:
Eight comparison conditions (upper and lower limits) and interrupt routine
combinations are saved in the comparison table. When the PV is greater
than or equal to the lower limit and less than or equal to the upper limit, then
the specified interrupt routine is executed.
I/O refresh
Common processing,
communications servicing, etc.
Program
Program
execution
execution
(4)
(5)
Reset
Not reset
Not reset.
Not reset.
Reset with phase-Z leading edge.
Reset with phase-Z leading edge.
Not reset.
Section
2-3
Program
execution
Reset
89

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