6. BASIC INSTRUCTIONS
6
−
87
MELSEC-A
Program Example
EI , DI
The following program allows the interrupt program to be called at any time and link
refresh to be disabled until the EI instruction is executed before the FEND instruction
is executed.
POINTS
(1) Processing is started with link refresh enabled.
(2) The interrupt program is started with interrupt disabled.
(3) After the EI/DI instruction is executed, M9053 may either be on or off.
(4) If the EI or DI instruction is contained in the MC instruction, such EI and DI
are executed regardless of execution of the MC instruction.
IE
SET M9053
DI
RST M9053
RST M9053
EI
SET M9053
END
processing
FEND
0
Link refresh
Program
Interrupt program
M9053
OFF
ON
Disable
Enable
Disable
Enable
SET M9053
EI
M9036
0
1
5
35
30
34
M9036
M9036
M9036
DI
RST M9053
EI
39 DI
SET M9053
RST M9053
Enables the interrupt program
as M9053 is off.
Disables link refresh as M9053
is on.
Enables link refresh as M9053
is on.
6
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......