Double Complement: Coml(139) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Logic Instructions
D02000
Complement
5-25-10

DOUBLE COMPLEMENT: COML(139)

Ladder Symbol
Variations
j COML(139)
Description
Precautions
Flags
Example
0000
00
15
0
Original
15
Complement
1
348
15
Original
1
0
0
1
15
0
1
1
0
(139)
COML Wd
When the execution condition is OFF, COML(139) is not executed. When the
execution condition is ON, COML(139) turns OFF all ON bits and turns ON all
OFF bits in Wd and Wd+1.
Refer to page 115 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R+1 after execution.
When CIO 000000 is ON in the following example, the complement of the status
of each bit in D02000 and D02001 is taken and written back to D02000 and
D02001, i.e., the status of each bit is reversed.
(139)
COMLD02000
D02001
1
0
1
0
1
0
1
0
1
0
1
0
0
1
1
0
0
0
1
1
0
0
1
1
Operand Data Area
Wd: Word
CIO, G, A, DM
00
15
0
1
0
1
0
00
15
1
0
1
0
1
Section 5-25
00
1
1
0
0
1
00
0
0
1
1
0
Address
Instruction
00000
LD
00001
COML(139)
00002
D02000
00
1
1
1
1
1
00
0
0
0
0
0
Operands
000000
D02000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents