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 #326 background imageLoading...
Page #326 background image
305
Binary Calculation Instructions Section 5-21
5-21-9 SIGNED BINARY DIVIDE – DBS(––)
Limitations This instruction is available in the CQM1-CPU4@-E/-EV1 only.
DM 6143 to DM 6655 cannot be used for R.
Description DBS(––) divides the signed binary content of Dd by the signed binary content
of Dr, and outputs the 8-digit signed binary result to R+1 and R. The quotient
is placed in R, and the remainder is placed in R+1.
Note Refer to 1-10 Calculating with Signed Binary Data for more details.
Flags ER: Dr contains 0.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ: ON when the content of R (the quotient) is 0000, otherwise OFF.
Example In the following example, DBS(––) is used to divide the signed binary contents
of DM 0010 with the signed binary contents of DM 0020 and output the result
to LR 21 and LR 02.
Dd: Dividend word
IR, SR, AR, DM, HR, TC, LR, #
Dr: Divisor word
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R: First result word
IR, SR, AR, DM, HR LR
DBS(––)
Dd
Dr
R
@DBS(––)
Dd
Dr
R
Dd Dr
R R + 1
Quotient Remainder
DBS(––)
DM 0010
DM 0020
LR 01
Address Instruction Operands
00000 LD 00000
00001 DBS(––)
DM 0010
DM 0020
LR 21
00000
Dd: DM 0010
DD D A
Dr: DM 0020
00 1A
R: LR 01
FE B0
÷
R+1: LR 02
FF FA
(–8,742)
(26)
(–336 and –6/26)
Remainder (–6) Quotient (–336)

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