Calculating The Square Root Of 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Calculating the square root of 32-bit binary data

DSQRT(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
• The RnCPU and RnENCPU with firmware version "17" or later support these instructions. (Use an engineering tool with version "1.020W" or later.)
These instructions perform a square root operation of the specified 32-bit binary data.
Ladder
(s)
(d)
FBD/LD
EN
ENO
s
d
■Execution condition
Instruction
DSQRT
DSQRTP
Setting data
■Description, range, data type
Operand
Description
(s)
Device where the data whose square root is to be
calculated is stored
(d)
Device where the obtained square root is stored
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
*1
(s)
*1
(d)
*1 FX and FY cannot be used.
Processing details
• These instructions perform a square root operation of the 32-bit binary data specified by (s). and stores the result in (d).
The obtained square root is an integer because the decimal places are rounded down.
(s)+1, (s)(d)
Operation error
There is no operation error.
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=DSQRT(EN,s,d);
ENO:=DSQRTP(EN,s,d);
Range
Data type
0 to 4294967295
32-bit unsigned binary
32-bit unsigned binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
Data type (label)
ANY32
ANY32
BOOL
BOOL
Constant
Others
specification
K, H E
$
7
943

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents