6 BASIC INSTRUCTIONS
6.4 Data Transfer Instructions
305
6
• The following program inverts the data from X0 to X7, and transfers result to D0.
• The following program inverts the data at M16 to M23, and transfers the result to Y40 to Y47.
• The following program inverts the data at D0 when X3 is ON, and stores the result at D16.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
These bits are all regarded as 0.
D0
If "Number of bits of < Number of bits of "
110 1 0000
X7 X0
001 0 1111
b7
b0
1 1111111
b15 b8
S
D
These bits are all regarded as 0.
If "Number of bits of < Number of bits of "
1 0 1 0 0011
Y47
Y40
1 111
Y4B
Y48
0 1 0 1 1100
M23 M16
S
D
D16
1 0 1 0 1111
b7 b0
0 1011011
b15 b8
0 1 0 1 00001 0100100
D0
b7 b0b15 b8