![Omron CVM1D Operation Manual Download Page 341](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532341.webp)
(138)
COM D02000
0000
00
336
1
0
0
1
1
0
0
1
15
00
0
1
0
1
0
1
0
1
0
0
1
1
0
0
1
1
15
00
15
00
CIO 0011
CIO 0021
D00201
0
1
1
1
1
0
0
1
15
00
0
1
0
1
1
1
1
1
1
1
0
1
1
0
0
1
15
00
15
00
CIO 0010
CIO 0020
D00200
5-25-9 COMPLEMENT: COM(138)
(138)
COM
Wd
Wd: Word
CIO, G, A, DM, DR, IR
Operand Data Area
Ladder Symbol
Variations
j
COM(138)
When the execution condition is OFF, COM(138) is not executed. When the ex-
ecution condition is ON, COM(138) turns OFF all ON bits and turns ON all OFF
bits in Wd.
Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R after execution.
Example
When CIO 000000 is ON in the following example, the complement of the status
of each bit in D02000 is taken and written back to D02000, i.e., the status of each
bit is reversed.
Address
Instruction
Operands
00000
LD
000000
00001
COM(138)
D02000
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
15
00
15
00
Original
Complement
D02000
Description
Precautions
Logic Instructions
Section 5-25
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...