Справочник Пользователя для Mitsubishi Electronics FX2NC

Скачать
Страница из 382
FX Series Programmable Controllers
Devices in Detail 4
4-12
4.6.1
Input Interrupts
Identification of interrupt pointer number:
Example: I001
The sequence programmed after the label (indicated by the I001 pointer) is executed on the
leading or rising edge of the input signal X0. The program sequence returns from the
interruption program when an IRET instruction is encountered.
Rules of use:
The following points must be followed for an interrupt to operate;
-
Interrupt pointers cannot have the same number in the ‘100’s’ position, i.e. I100 and
I101 are not allowed.
-
The input used for the interrupt device must not coincide with inputs already allocated
for use by other high speed instructions within the user program.
4.6.2
Timer Interrupts
Identification of interrupt pointer number:
Example: I610
The sequence programmed after the label (indicated by the I610 pointer) is executed at
intervals of 10msec. The program sequence returns from the interruption program when an
IRET instruction is encountered.
Rules of use:
The following points must be followed for an interrupt to operate;
-
Interrupt pointers cannot have the same number in the ‘100’s’ position, i.e. I610 and
I650 are not allowed.
I  
  0  
0: interrupt triggered on trailing/ falling edge of input signal
1: interrupt triggered on leading/ rising edge of input signal
Input number; each input number can only be used once.
FX
0(S)
 and FX
0N
 have 4 points (0 to 3 which map to X0 to X3)
Other units have 6 points (0 to 5 which map to X0 to X5)
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
I  
  
  
10 to 99 msec: the interrupt is repeatedly triggered at intervals of the
specified time.
Timer interrupt number 3 points (6 to 8)