Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 590

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Double-precision Floating-point Instructions
3-15-17 DOUBLE SQUARE ROOT: SQRTD(857)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Description
Calculates the square root of a double-precision (64-bit) floating-point number
and places the result in the specified result words.
SQRTD(857)
S
S: First source word
D: First destination word
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
SQRTD(857) calculates the square root of the double-precision (64-bit) float-
ing-point number in words S to S+3 and places the result in words D to D+3.
(The floating point source data must be in IEEE754 format.)
S+3
S+2
S+1
The source data must be positive; if it is negative, an error will occur and the
instruction will not 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 will turn ON and the
result will be output as
Step program areas
Subroutines
OK
S
CIO 0 to CIO 6140
W0 to W508
H0 to H508
A0 to A956
T0000 to T4092
C0000 to C4092
D0 to D32764
@ D0 to @ D32767
*D0 to *D32767
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
S
D+3
D+2
D+1
.
Section 3-15
SQRTD(857)
@SQRTD(857)
Not supported.
Interrupt tasks
OK
D
A448 to A956
D
557

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents