2-2
Section
CPM2A/CPM2C High-speed Counters
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.
Comparison table
PV
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
Increment
direction
Increment
direction
Decrement
direction
Time
Interrupt
Interrupt
Interrupt
Subroutine 8
executed
Subroutine 10
executed
Subroutine 9
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.
Comparison table
Lower limit: 1,000
Upper limit: 4,000
Subroutine number: 10
Lower limit: 3,000
Upper limit: 5,000
Subroutine number: 9
PV
Time
Interrupt
Interrupt
Interrupt
Subroutine 10
executed
Subroutine 9
executed
Subroutine 9
executed
Subroutine 10
executed
Interrupt
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...