EasyManuals Logo
Home>Omron>Controller>CQM1H - PROGRAM

Omron CQM1H - PROGRAM User Manual

Omron CQM1H - PROGRAM
602 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #394 background imageLoading...
Page #394 background image
369
Floating-point Math Instructions Section 5-24
5-24-17 SQUARE ROOT: SQRT(––)
Limitations The source data in S+1 and S must be in IEEE754 floating-point data format.
DM 6143 to DM 6655 cannot be used for R.
Description When the execution condition is OFF, SQRT(––) is not executed. When the
execution condition is ON, SQRT(––) calculates the square root of the 32-bit
floating-point number in S+1 and S and places the result in R+1 and R. (The
floating point source data must be in IEEE754 format.)
The source data must be positive; if it is negative, an error will occur and the
instruction won’t be executed.
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag (SR 25404) will turn
ON and the result will be output as +
.
The following diagram shows the relationship between the input data and
result.
Flags ER: Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
ON if the source data is not recognized as floating-point data.
ON if the source data is negative.
EQ: ON if both the exponent and mantissa of the result are 0.
S: First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R: First result word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
Third operand: Always 000
−−−
SQRT(−− )
S
R
000
@SQRT(−− )
S
R
000
R+1
R
S
Source (32-bit floating-point data)
S+1
Result (32-bit floating-point data)
S: Input data
R: Result
R

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CQM1H - PROGRAM and is the answer not in the manual?

Omron CQM1H - PROGRAM Specifications

General IconGeneral
BrandOmron
ModelCQM1H - PROGRAM
CategoryController
LanguageEnglish

Related product manuals