![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268605.webp)
566
Special Math Instructions
Section 3-14
Flags
Precautions
When COML(614) is executed, the Error Flag will turn OFF.
If as a result of COML, the content of R, R+1 is 00000000 hex, the Equals
Flag will turn ON.
If as a result of COML, the leftmost bit of R+1 is 1, the Negative Flag will turn
ON.
Examples
When CIO 000000 is ON in the following example, the status of each bit in
D00100 and D00101 will be reversed.
3-14 Special Math Instructions
This section describes instructions used for special math calculations.
3-14-1 BINARY ROOT: ROTB(620)
Purpose
Computes the square root of the 32-bit signed binary contents (positive value)
of the specified words and outputs the integer portion of the result to the spec-
ified result word.
Ladder Symbol
Variations
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
ON when the result is 0.
OFF in all other cases.
Negative Flag
N
ON when the leftmost bit of R is 1.
OFF in all other cases.
Instruction
Mnemonic
Function code
Page
BINARY ROOT
ROTB
620
566
BCD SQUARE ROOT
ROOT
072
568
ARITHMETIC PROCESS
APR
069
572
FLOATING POINT DIVIDE
FDIV
079
584
BIT COUNTER
BCNT
067
588
ROTB(620)
S
R
S
: First source word
R
: Result word
Variations
Executed Each Cycle for ON Condition
ROTB(620)
Executed Once for Upward Differentiation
@ROTB(620)
Executed Once for Downward Differentiation
Not supported.
Immediate Refreshing Specification
Not supported.
Содержание 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...