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

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Calculating the square root of 32-bit binary data

DSQRT
These instructions perform a square root operation of the specified 32-bit binary data.
ST
ENO:=DSQRT(EN,s,d);
■Execution condition
Instruction
DSQRT
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/labels
Operand
Bit
SB
(s)
(d)
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.
Execution condition
Word
RX, RY, LB
SW
Range
0 to 4294967295
G, RWw, RWr, LW
8 DATA PROCESSING
8.1 Data Processing Instructions
Data type
ANY32
ANY32
BOOL
BOOL
Constant
8
K, H
101

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents