565
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
565
BCD SQUARE ROOT
ROOT
072
567
ARITHMETIC PROCESS
APR
069
571
FLOATING POINT DIVIDE
FDIV
079
583
BIT COUNTER
BCNT
067
587
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.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...