7. APPLICATION INSTRUCTIONS
7
−
84
MELSEC-A
Program Example FROM
The program to read 1-word data from K2000 of buffer memory in the second
special module/special block from the A1FXCPU and writes the read data to D0
when X20 is turned ON.
DFRO
The program to read 2-word data from K2000 of buffer memory in the second
special module/special block from the A1FXCPU and writes the read data to D0 and
D1 when X20 is turned ON.
REMARK
During the execution of the FROM/DFRO/TO/DTO instruction, M9119 can control the execution
of an interruption program.
•
When M9119 is OFF (FROM/TO is given priority)
While the FROM/DFRO/TO/DTO instruction is executed, interrupt is disabled and interruption
program is not executed even at the occurrence of an interrupt.
For the interrupt occurred during the execution of the FROM/DFRO/TO/DTO instruction, the
interruption program that corresponds to the occurred interrupt is executed after the
completion of the FROM/DFRO/TO/DTO instruction.
While M9119 is OFF, the FROM/DFRO/TO/DTO instruction can be used in an interruption
program.
•
When M9119 is ON (interrupt is given priority)
If an interrupt occurs during the execution of FROM/DFRO/TO/DTO instruction, execution of
the FROM/DFRO/TO/DTO instruction is suspended and the interruption program that
corresponds to the occurred interrupt is executed.
While M9119 is OFF, the FROM/DFRO/TO/DTO instruction cannot be used in an interruption
program.
•
Objective interrupt is I0 to I5, I12, I13, and I29 to I31.
X020
0
H
K
K
FROM 0001 2000 D0 1
X020
0
H
K
K
DFRO 0001 2000 D0 1
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: ......