2
-
8
CHAPTER2 SEQUENCE PROGRAMS
2
2.2 Sequ
ence Pr
ogram C
onfig
uration
2.2.3 I
nterr
upt progr
am
(2) Programming of interrupt programs
Create interrupt programs between the FEND and END instructions in the main routine program.
*1: Since the Basic model QCPU cannot execute multiple programs, the file name is fixed to "MAIN".
*2: The pointer numbers do not need to be specified in ascending order.
Interrupt programs can be managed as one separate program (stand-by type program).
(
(a) Before executing an interrupt program
1) Basic model QCPU
Enable interrupts with the EI instruction.
2) High Performance model QCPU, Process CPU, or Redundant CPU
Enable interrupts with the IMASK or EI instruction for execution of the interrupt programs corresponding to
the interrupt pointers I32 to I47.
Enable interrupts with the EI instruction for execution of the interrupt programs corresponding to the interrupt
pointers I0 to I31 and I48 to I255.
Remark
For details of the IMASK and EI instructions, refer to the following.
MELSEC-Q/L Programming Manual (Common Instruction)
Figure 2.9 Programming location of interrupt programs
Program A
*1
I0
FEN
IRET
IRET
IRET
Y11
Y10
Y12
I32
I28
Interrupt
program
Interrupt pointer
*2
Main routine
program
END
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......