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 #417 background imageLoading...
Page #417 background image
379
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Symbol Math Instructions
3
/U, /UL
Function
z /U
/U(432) divides the unsigned binary values in Dd by those in Dr and outputs the quotient to R and the
remainder to R+1.
z /UL
/UL(433) divides the unsigned binary 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, and 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
Dd
Dr
Remainder
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
Quotient
÷
R + 1 RR + 3 R + 2
Dd + 1 Dd
Dr + 1 Dr
Remainder Quotient
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
When CIO 0.00 is ON in the following example, D100 will be
divided by D110 as 4-digit unsigned binary values and the
quotient will be output to D120 and the remainder will be
output to D121.
When CIO 0.00 is ON in the following example, D100 and
D101 will be divided by D111 and D110 as 8-digit unsigned
hexadecimal 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
/U
a
b
tmp[0]
MOV
tmp[0]
c
Function Block Variables
Dividend: a (data type: UINT)
Divisor: b (data type: UINT)
Quotient: c (data type: UINT)
Remainder: d (data type: UINT)
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