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

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Binary Calculation Instructions

5-19

Binary Calculation Instructions

5-19-1 BINARY ADD: ADB(080)

Ladder Symbol
(080)
ADB
Au
Variations
j ADB(080)
Description
Precautions
Flags
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.
Ad
R
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
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.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
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.
Operand Data Areas
Au: Augend word
CIO, G, A, T, C, #, DM, DR, IR
Ad: Addend word
CIO, G, A, T, C, #, DM, DR, IR
R: Result word
CIO, G, A, DM, DR, IR
CY
R
Section 5-19
261

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents