372
Logic Instructions
Section 5-25
The following diagram shows the relationship between the input data and
result.
Flags
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
ON if the source data is not recognized as floating-point data.
EQ:
ON if both the exponent and mantissa of the result are 0.
OF:
ON if the absolute value of the result is too large to be expressed as a
32-bit floating-point value. (The result will be output as
±∞
.)
5-25 Logic Instructions
5-25-1 COMPLEMENT – COM(29)
Limitations
DM 6144 to DM 6655 cannot be used for Wd.
Description
When the execution condition is OFF, COM(29) is not executed. When the
execution condition is ON, COM(29) clears all ON bits and sets all OFF bits in
Wd.
Precautions
The complement of Wd will be calculated every cycle if the undifferentiated
form of COM(29) is used. Use the differentiated form (@COM(29)) or com-
bine COM(29) with DIFU(13) or DIFD(14) to calculate the complement just
once.
R
S: Input data
R: Result
Wd
:
Complement word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
COM(29)
Wd
@COM(29)
Wd