Double Binary Add: Adbl(084) - Omron SYSMAC CV Series Operation Manual

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

Advertisement

Binary Calculation Instructions
Flags
Example
0000
02

5-19-5 DOUBLE BINARY ADD: ADBL(084)

Ladder Symbol
(084)
ADBL
Au
Variations
j ADBL(084)
Description
266
Note Refer to page 115 for general precautions on operand data areas.
ER (A50003):
Dr contains 0.
Content of *DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R.
When CIO 000002 is ON in the following example, the four-digit hexadecimal
content of CIO 0007 is divided by the four-digit hexadecimal content of D00100.
The quotient is stored in D00101 with the remainder stored in D00102.
Note If the content of the divisor word D00101 is zero, the Error Flag (bit A50003) is
set and the instruction is not executed.
(083)
DVB
0007
D00100
D00100
0 0 0 6
Ad
R
When the execution condition is OFF, ADBL(084) is not executed. When the
execution condition is ON, ADBL(084) adds the 8-digit content of Au+1 and Au,
the 8-digit content of Ad+1 and Ad, and CY, and places the result in R. CY will be
set if the result is greater than FFFF FFFF.
+
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
+C(403). In addition, Overflow (OF) and Underflow (UF) Flags are added.
D00101
Quotient
Remainder
D00101
D00102
0 2 A A
0 0 0 3
0007
0 F F F
Operand Data Areas
st
Au: 1
augend word
CIO, G, A, T, C, #, DM
st
Ad: 1
addend word
CIO, G, A, T, C, #, DM
st
R: 1
result word
CIO, G, A, DM
Au + 1
Au
Ad + 1
Ad
CY
R + 1
R
Section 5-19
Address Instruction
Operands
00000
LD
000002
00001
DVB(083)
D00100
D00101
0007

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents