
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).
Содержание L02CPU
Страница 1: ......
Страница 2: ......
Страница 13: ...11 Memo ...
Страница 78: ...76 Memo ...
Страница 226: ...224 Memo ...
Страница 317: ...315 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 318: ...316 To the next page ...
Страница 319: ...317 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 320: ...318 To the next page ...
Страница 321: ...319 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 322: ...320 To the next page ...
Страница 323: ...321 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 324: ...322 To the next page ...
Страница 325: ...323 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 326: ...324 To the next page ...
Страница 335: ...333 Memo ...
Страница 339: ......