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

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

Advertisement

CPM2A/CPM2C High-speed Counters
Comparison table
Target value: 5,000
Count direction: Incre-
ment
Subroutine number: 10
Target value: 1,000
Count direction: Incre-
ment
Subroutine number: 8
Target value: 3,000
Count direction: Decre-
ment
Subroutine number: 9
Comparison table
Lower limit: 1,000
Upper limit: 4,000
Subroutine number: 10
Lower limit: 3,000
Upper limit: 5,000
Subroutine number: 9
52
For details regarding interrupt priorities, refer to Order of Priority for Interrupts
under 2-1 Interrupts.
If an interrupt is generated during execution of one of the high-speed counter
control instructions, i.e., CTBL(63), INI(61), or PRV(62), these instructions will
not be executed within the interrupt program.
Target Value Comparison Interrupts
Up to 16 combinations of comparison conditions (target value and count direc-
tion) and interrupt subroutine numbers can be registered in the comparison
table. The specified subroutine is executed when the counter PV matches a tar-
get value in the comparison table.
PV
Increment
direction
Increment
direction
Interrupt
Subroutine 8
executed
The relationship between the target value comparison count check and the com-
parison table is different for the CPM1/CPM1A. Refer to the individual manuals
for details.
It is not possible to specify more than one comparison direction condition for the
same target value in the comparison table.
Either target value comparison or range comparison can be used for high-speed
counter interrupts.
Range Comparison Interrupts
Up to eight combinations of comparison conditions (upper limit and lower limit)
and interrupt subroutine numbers can be registered in the comparison table.
The specified subroutine is executed once when the counter PV is greater than
or equal to the lower limit and less than or equal to the upper limit in the compari-
son table.
PV
Interrupt
Interrupt
Subroutine 10
Subroutine 9
executed
executed
Decrement
direction
Interrupt
Interrupt
Subroutine 10
Subroutine 9
executed
executed
Interrupt
Interrupt
Subroutine 9
Subroutine 10
executed
executed
Section
2-2
Time
Time

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents