EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 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 #419 background imageLoading...
Page #419 background image
381
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Symbol Math Instructions
3
/B, /BL
Function
z /B
/B(434) divides the BCD content of Dd by those of Dr and outputs the quotient to R and the remainder
to R+1.
z /BL
/BL(435) divides BCD values in Dd and Dd+1 by those in Dr and Dr+1 and outputs the quotient to R,
R+1 and the remainder to R+2, R+3.
Example Programming
z Example in Function Block Definition
In the following example, an array variable is used to get the quotient and remainder from the function
block.
÷
R +1 R
(BCD)
(BCD)
(BCD)
Dd
Dr
Remainder Quotient
÷
Dd + 1
Dr + 1
R + 1 RR + 3
R + 2
(BCD)
(BCD)
(BCD)
Dd
Dr
Remainder
Quotient
When CIO 0.00 is ON in the following example, D100 will be
divided by D110 as 4-digit BCD values and the quotient will
be output to D120 and the remainder to D121.
When CIO 0.00 is ON in the following example, D101 and
D100 will be divided by D111 and D110 as 8-digit BCD values
and the quotient will be output to D121 and D120 and the
remainder to D123 and D122.
0.00
0.00
D100
D110
D120
D100
D110
D120
a / b → c ··· d
/B
a
b
tmp[0]
MOV
tmp[0]
c
Function Block Variables
Dividend: a (data type: WORD)
Divisor: b (data type: WORD)
Quotient: c (data type: WORD)
Remainder: d (data type: WORD)
Temporary variable: tmp (data type: WORD, 2-element array)
MOV
tmp[0]
d

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals