Logic Instructions; Complement - Com(29) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Logic Instructions

Flags

5-25 Logic Instructions

5-25-1 COMPLEMENT – COM(29)
Limitations
Description
Precautions
372
The following diagram shows the relationship between the input data and
result.
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 ±∞ .)
Ladder Symbols
COM(29)
@COM(29)
Wd
DM 6144 to DM 6655 cannot be used for Wd.
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.
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
IR, SR, AR, DM, EM, HR, LR
Wd
Section 5-25
Operand Data Areas
Wd: Complement word

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents