2-3
Section
CPM1/CPM1A Interrupt Functions
80
Input Interrupt Settings
Inputs 00003 to 00006 must be set as interrupt inputs in DM 6628 if they are to
be used for input interrupts in the CPM1/CPM1A. Set the corresponding digit to 1
if the input is to be used as an interrupt input (input interrupt or counter mode);
set it to 0 if it is to be used as a regular input.
Word
Setting
DM 6628
0: Regular input (default setting)
DM 6628
0: Regular input (default setting)
1: Interrupt input
1: Interrupt input
2: Quick response input
2: Quick-response input
15
0
DM 6628
Bit
Setting for input 00006: Set to 1
Setting for input 00005: Set to 1
Setting for input 00004: Set to 1
Setting for input 00003: Set to 1
Interrupt Subroutines
Interrupts from inputs 00003 to 00006 are allocated interrupt numbers 00 to 03
and call subroutines 000 to 003. If the input interrupts aren’t being used, subrou-
tines 000 to 003 can be used in regular subroutines.
Input number
Interrupt number
Subroutine number
00003
0
000
00004
1
001
00005
2
002
00006
3
003
Input Refreshing
If input refreshing is not used, input signal status within the interrupt routine will
not be reliable. Depending on the input time constant, the input signals might not
go ON even if input refreshing is used. This includes the status of the interrupt
input bit that activated the interrupt.
For example, IR 00000 would not be ON in interrupt routine for input interrupt 0
unless it was refreshed. In this case, use the Always ON Flag, SR 25313 in the
interrupt routine instead of IR 00000.
Input Interrupt Mode
When an input interrupt signal is received, the main program is interrupted and
the interrupt program is executed immediately, regardless of the point in the
cycle in which the interrupt is received. The signal must be ON for 200
µ
s or more
to be detected.
Main program
Interrupt program
Input interrupt
Main program
Use the following instructions to program input interrupts using the Input Inter-
rupt Mode.
Masking/Unmasking of Interrupts
With the INT(89) instruction, set or clear input interrupt masks as required.
(@)INT(89)
000
000
D
Make the settings with word D bits 0 to 3, which correspond
to input interrupts 0 to 3.
0: Mask cleared. (Input interrupt enabled.)
1: Mask set. (Input interrupt disabled.)
Содержание 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 ...