6-127
BXCH(P)
1
2
3
4
4
6
7
8
6.4 Data Transfer Instructions
6.4.10 Block 16-bit data exchanges (BXCH(P))
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The range of the device of n points from a device designated by , or exceeds the
relevant device. (Error code: 4101)
• The and devices overlap. (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]
[Operation]
D1 D2
D1 D2
Step
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
0
1
0
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