Mitsubishi L02CPU User Manual page 56

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(1) Creating an interrupt program
Create interrupt programs between the FEND and END instructions in the main routine program. Before
executing any of interrupt programs of I0 to I15, I23 to I31, or I50 to I255, allow an interrupt by the EI instruction.
*1
The pointer numbers do not need to be specified in ascending order.
*2
Ensure that there is no overlap of interrupt pointer numbers.
Interrupt programs can be managed as one separate program (standby type program). (
(2) Restrictions on creating an interrupt program
(a) PLS and PLF instructions
The PLS and PLF instructions perform off processing in the next scan of which the instruction is executed.
Therefore, the device which is turned on by the instruction remains on until the same instruction is reexecuted.
OFF
X0
OFF
M0
(b) EI and DI instructions
Do not execute the EI or DI instruction during interrupt program execution.
(c) Timer (T) and counter (C)
Do not use the timer (T) and counter (C) in interrupt programs.
54
Interrupt
program
X0
PLS M0
END 0
I0 IRET END 0
ON
ON
Turns on by executing the PLS M0 instruction at the rise of X0 (off
Program A
Main routine program
*1 *2
Interrupt pointer
X0
PLS M0
END 0 I0 IRET
END 0
Turns off by executing the PLS M0 instruction.
Page 63, Section 2.8.3)
on).

Advertisement

Table of Contents
loading

This manual is also suitable for:

L26cpu-bt

Table of Contents