![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532342.webp)
(139)
COMLD02000
0000
00
337
5-25-10 DOUBLE COMPLEMENT: COML(139)
(139)
COML Wd
Wd: Word
CIO, G, A, DM
Operand Data Area
Ladder Symbol
Variations
j
COML(139)
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 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+1 after execution.
Example
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.
Address
Instruction
Operands
00000
LD
000000
00001
COML(139)
00002
D02000
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
15
00
15
00
0
1
0
1
1
1
1
1
1
0
1
0
0
0
0
0
15
00
15
00
Original
Complement
D02000
D02001
5-26 Time Instructions
The first two Time Instructions convert time formats. The last two Time Instruc-
tions add/subtract time from calendar values.
5-26-1 HOURS TO SECONDS: SEC(143)
(143)
SEC
S
R
R: 1
st
result word
CIO, G, A, DM
S: 1
st
source word CIO, G, A, T, C, #, DM
Operand Data Areas
Ladder Symbol
Variations
j
SEC(143)
Description
When the execution condition is OFF, SEC(143) is not executed. When the ex-
ecution condition is ON, SEC(143) converts time notation in hours/minutes/se-
conds to an equivalent time in seconds only.
Description
Precautions
Time Instructions
Section 5-26
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...