EasyManuals Logo
Home>Omron>Controller>CPM1

Omron CPM1 Programming Manual

Omron CPM1
541 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
Page #322 background imageLoading...
Page #322 background image
301
Binary Calculation Instructions Section 5-21
UF: ON when the result is below –2,147,483,648 (8000 0000).
Example The following example shows an eight-digit addition with CY (SR 25504) used
to represent the status of the 9
th
digit. The status of the UF and OF flags indi-
cate whether the result has exceeded the signed binary data range (–
2,147,483,648 (8000 0000) to +2,147,483,647 (7FFF FFFF)).
Note 1. For unsigned binary addition, CY indicates that the sum of the two values
exceeds FFFF FFFF. (UF and OF can be ignored.)
2. For signed binary addition, the UF flag indicates that the sum of the two
values is below –2,147,483,648 (8000 0000). (CY can be ignored.)
5-21-6 DOUBLE BINARY SUBTRACT – SBBL(––)
Limitations This instruction is available in the CQM1-CPU4@-E/-EV1 only.
Mi and Mi+1 must be in the same data area, as must Su and Su+1, and R and
R+1.
DM 6142 to DM 6655 cannot be used for R.
Description When the execution condition is OFF, SBBL(––) is not executed. When the
execution condition is ON, SBBL(––) subtracts CY and the eight-digit value in
Su and Su+1 from the eight-digit value in Mi and Mi+1, and places the result
in R and R+1. If the result is negative, CY is set and the 2’s complement of the
CLC(41)
00100
ADBL(––)
LR 00
DM 0010
DM 0020
Address Instruction Operands
00000 LD 00100
00001 CLC(41)
00002 ADBL(––)
LR 20
DM 0010
DM 0020
Au + 1 : LR 01
Au : LR 00
Ad + 1 : DM 0011 Ad : DM 0010
8000 0000
FFFF
FFF0
0
+
R + 1 : DM 0021 R : DM 0020
FFF07FFF
1
CY (Cleared with CLC(41))
UF (SR 25405)
0
OF (SR 25404)
1
CY
Mi: Minuend word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Su: Subtrahend word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R: Result word
IR, SR, AR, DM, HR, LR
SBBL(––)
Mi
Su
R
@SBB(––)
Mi
Su
R

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
BrandOmron
ModelCPM1
CategoryController
LanguageEnglish

Related product manuals