EasyManua.ls Logo

Omron SYSMAC CV Series - Binary Calculation Instructions; Binary Add: Adb(080)

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
261
5-19 Binary Calculation Instructions
The Binary Calculation Instructions all perform arithmetic operations on binary
(hexadecimal) data.
The addition and subtraction instructions include CY in the calculation as well as
in the result. Be sure to clear CY if its previous status is not required in the cal-
culation, and to use the result placed in CY, if required, before it is changed by
the execution of any other instruction. STC(078) and CLC(079) can be used to
control CY. Refer to
5-18 BCD Calculation Instructions
for details on STC(078)
and CLC(079).
Note Binary calculation instructions are also supported by version-2 CVM1 CPUs as
symbol math instructions. Refer to
5-20 Symbol Math Instructions
for details.
5-19-1 BINARY ADD: ADB(080)
Variations
j ADB(080)
(080)
ADB Au Ad R
Operand Data AreasLadder Symbol
Au: Augend word CIO, G, A, T, C, #, DM, DR, IR
R: Result word CIO, G, A, DM, DR, IR
Ad: Addend word CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, ADB(080) is not executed. When the
execution condition is ON, ADB(080) adds the content of Au, Ad, and CY, and
places the result in R. CY will be set if the result is greater than FFFF.
Au + Ad + CY CY R
Note With version-2 CVM1 CPUs, mathematics instructions can use symbols. The
instructions corresponding to ADB(080) and ADBL(084) are +C(402) and
+CL(403). In addition, Overflow (A50009) and Underflow (A50010) Flags are
added.
Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
CY (A50004): The result is greater than FFFF.
EQ (A50006): The result is 0.
N (A50008): Shows the status of bit 15 of R after execution.
Description
Precautions
Binary Calculation Instructions Section 5-19

Table of Contents

Related product manuals