6 - 86 6 - 86
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
(4) The following program inverts the data at X0 to X1F, and transfers results to D0 and D1.
[Ladder Mode] [List Mode]
Device
Instruction
Steps
These bits are all read as 0
0100 011100101100
X1B X8 X7 X0
1011 100011010011
b7 b0
1111
b8
D0,1
b31 b28 b27 b24
When the number of bits at is less than the number of bits at
S D
(5) The following program inverts the data at M16 to M35, and transfers it to Y40 to Y63.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
5
These bits are all read as 0
0100 011100101100
M35 M24 M23 M16
10 11 100011010011
Y47 Y40
1111
Y63 Y48Y56
When the number of bits at is less than the number of bits at
S D
(6) Inverts the data at D0 and D1 when X3 is ON, and stores the result at D16 and D17.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
1011 100011010011
b7 b0
11
11
b8
D16,D17
0100 111 1 11
b7 b0
00
00
b8
D0,D1
b31 b24
b31 b24
000000
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com