450
Logic Instructions Section 3-12
Precautions When COM(029) is executed, the Error Flag will turn OFF.
If as a result of COM, the content of R is 0000 hex, the Equals Flag will turn
ON.
If as a result of COM, the leftmost bit of R is 1, the Negative Flag will turn ON.
Examples When CIO 0.00 is ON in the following example, the status of each bit will be
D100 is reversed.
3-12-10 DOUBLE COMPLEMENT: COML(614)
Purpose Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
0.00
D100
D100
D100
COML(614)
Wd
Wd: Word
Variations Executed Each Cycle for ON Condition COML(614)
Executed Once for Upward Differentiation @COML(614)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area Wd
CIO Area CIO 0 to CIO 6142
Work Area W0 to W510
Holding Bit Area H0 to H510
Auxiliary Bit Area A448 to A958
Timer Area T0000 to T4094
Counter Area C0000 to C4094
DM Area D0 to D32766
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants ---
Data Registers ---
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15