
54
(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.
(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.
Interrupt
program
Main routine program
Program A
Interrupt pointer
*1 *2
X0
OFF
ON
M0
OFF
ON
END 0
I0 IRET END 0
END 0 I0 IRET
END 0
PLS M0
X0
PLS M0
X0
Turns off by executing the PLS M0 instruction.
Turns on by executing the PLS M0 instruction at the rise of X0 (off on).
Summary of Contents for L02CPU
Page 1: ......
Page 2: ......
Page 13: ...11 Memo ...
Page 78: ...76 Memo ...
Page 226: ...224 Memo ...
Page 318: ...316 To the next page ...
Page 320: ...318 To the next page ...
Page 322: ...320 To the next page ...
Page 324: ...322 To the next page ...
Page 326: ...324 To the next page ...
Page 335: ...333 Memo ...
Page 339: ......