306
6 BASIC INSTRUCTIONS
6.4 Data Transfer Instructions
• The following program inverts the data at X0 to X1F, and transfers results to D0 and D1.
• The following program inverts the data at M16 to M35, and transfers it to Y40 to Y63.
• Inverts the data at D0 and D1 when X3 is ON, and stores the result at D16 and D17.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
These bits are all regarded as 0.
0 1 0 00111 001 0 110 0
X1B X8 X7 X0
1 0 1 11000 110 1 001 1
b7 b0
1111
b8
D0, 1
b31 b28 b27 b24
If "Number of bits of < Number of bits of "
S
D
These bits are all regarded as 0.
0 1 0 00111 00 1 0 110 0
M35
M24 M23 M16
1 0 1 11000 110 1 00 1 1
Y47
Y40
1
111
Y63Y48Y56
If "Number of bits of < Number of bits of "
S
D
1 0 11 1 000110 1 0011
b7 b0
11
11
b8
D16,D17
0 1 00 111 1 11
b7 b0
00
00
b8
D0,D1
b31 b24
b31 b24
000000