6 - 94 6 - 94
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The range n-points from the
D1
or
D2
devices exceeds relevant device. (Error code: 4101)
•
D1
and
D2
devices are overlapping. (Error code: 4101)
[Program Example]
(1) The following program exchanges 16-bit data for 3 points from D200 for 16-bit data for 3 points
from R0 when X1C goes ON.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
0 0 1 1 0 0 1 1 0 0 1 100 1 1
1 1 0 0 0 0 0 0 1 1 0 000 0 0
011101111110110R0
R1
R2
1 1 1 1 1 1 1 1
0 0 0 000 0 0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
b7 b0b15 b8
1111111100111100
D200
D201
D202
1
R0
R1
R2
D200
D201
D202
1 1 1 1 1 1 1 1
0 0 0 000 0 0
1 0 1 0 1 0 1 0 1 0 1 010 1 0
1111111100111100
0 0 1 1 0 0 1 1 0 0 1 100 1 1
1 1 0 0 0 0 0 0 1 1 0 000 0 0
0111011111101101
b7 b0b15 b8
b7 b0b15 b8
b7 b0b15 b8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com