![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268104.webp)
65
Instruction Functions
Section 2-2
2-2-12 Special Math Instructions
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
BINARY ROOT
ROTB
@ROTB
620
Output
Required
566
BCD SQUARE
ROOT
ROOT
@ROOT
072
Output
Required
568
ARITHMETIC
PROCESS
APR
@APR
069
Calculates the sine, cosine, or a linear extrapolation of the source data.
The linear extrapolation function allows any relationship between X and
Y to be approximated with line segments.
Output
Required
572
FLOATING
POINT DIVIDE
FDIV
@FDIV
079
Output
Required
584
BIT COUNTER
BCNT
@BCNT
067
Output
Required
588
S
R
ROTB(620)
S
: 1st source
word
R
: Result word
R
S+1
S
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.
Binary data (32 bits)
Binary data (16 bits)
S
R
ROOT(072)
S
: 1st source
word
R
: Result word
R
S+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
Quotient
Dd+1 Dd
Dr+1 Dr
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)
R
to
Counts the total number of ON bits in the specified word(s).
N words
Counts the number
of ON bits.
Binary result
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...