EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 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 #521 background imageLoading...
Page #521 background image
A-37
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-12 Special Math Instructions
A-1-12 Special Math Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
BINARY ROOT ROTB
@ROTB
620 Output Required
BCD SQUARE
ROOT
ROOT
@ROOT
072 Output Required
ARITHMETIC
PROCESS
APR
@APR
069 Calculates SIN, COS, or linear extrapolation.
SIN or COS calculation: Calculates the SIN or COS from
angle data (0° to 90°) and outputs the result in BCD to
four places below the decimal.
Linear extrapolation: Calculates and outputs a linear
extrapolation in binary from the specified input data.
Output Required
FLOATING
POINT DIVIDE
FDIV
@FDIV
079 Output Required
BIT COUNTER BCNT
@BCNT
067 Output Required
S
R
ROTB(620)
S: 1st source word
R: Result word
RS+1 S
Binary data (32 bits) Binary data (16 bits)
Computes the square root of the 32-bit binary content
of the specified words and outputs the integer portion
of the result to the specified result word.
S
R
ROOT(072)
S: 1st source word
R: Result word
RS+1 S
BCD data (8 digits) BCD data (4 digits)
Computes the square root of an 8-digit BCD number
and outputs the integer portion of the result to the
specified result word.
APR(069)
C
S
R
C: Control word
S: Source data
R: Result word
FDIV(079)
Dd
Dr
R
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
R+1 R
Dd+1 Dd
Dr+1 Dr
Quotient
Divides one 7-digit floating-point number by another.
The floating-point numbers are expressed in scientific
notation (7-digit mantissa and 1-digit exponent).
BCNT(067)
N
S
R
N: Number of
words
S: 1st source word
R: Result word
S+(N 1)−
to
R
N words
Counts the number of
ON bits.
Binary
result
Counts the total number of ON bits in the specified
word(s).

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals