Special Math Instructions
Flags
Precautions
Examples
3-14 Special Math Instructions
3-14-1 BINARY ROOT: ROTB(620)
Purpose
Ladder Symbol
Variations
566
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
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.
When CIO 000000 is ON in the following example, the status of each bit in
D00100 and D00101 will be reversed.
This section describes instructions used for special math calculations.
Instruction
BINARY ROOT
BCD SQUARE ROOT
ARITHMETIC PROCESS
FLOATING POINT DIVIDE
BIT COUNTER
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.
ROTB(620)
S: First source word
S
R: Result word
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Operation
OFF
ON when the result is 0.
OFF in all other cases.
ON when the leftmost bit of R is 1.
OFF in all other cases.
Mnemonic
ROTB
ROOT
APR
FDIV
BCNT
Section 3-14
Function code
Page
620
566
072
568
069
572
079
584
067
588
ROTB(620)
@ROTB(620)
Not supported.
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers