Sqrt - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

SQRT

Instruction
SQUARE ROOT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
R
First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
492
Mnemonic
Variations
SQRT
@SQRT
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON if the source data is not recognized as floating-point data.
• ON if the source data is negative.
• ON if the source data is not a number (NaN).
• OFF in all other cases.
=
• ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
OF
• ON if the absolute value of the result is too large to be expressed as a 32-bit floating-point value.
• OFF in all other cases.
UF
OFF
N
OFF
Function
code
Calculates the square root of a 32-bit floating-
466
point number and places the result in the specified
result words.
SQRT
SQRT(466)
S: First source word
S
R
R: First result word
Subroutines
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
REAL
2
REAL
2
Registers
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents