EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 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 #574 background imageLoading...
Page #574 background image
572
7 APPLICATION INSTRUCTION
7.17 Data operation instruction
Calculating the square root of 16-bit data
SQRT(P)
These instructions calculate the square root of binary 16-bit data specified by (s1), and store the operation result in (d).
Setting data
Descriptions, ranges, and data types
Applicable devices
Processing details
These instructions calculate the square root of binary 16-bit data specified by (s1), and store the operation result in (d).
Precautions
The obtained square root is an integer because the decimal point is ignored. When the calculated decimal value is ignored,
SM8021 (borrow flag) turns on.
When the operation result is true 0, SM8020 (zero flag) turns on.
Operation error
Ladder diagram Structured text
ENO:=SQRT(EN,s,d);
ENO:=SQRTP(EN,s,d);
Operand Description Range Data type Data type (label)
(s) Device where the data whose square root is operated is
calculated
16-bit signed binary ANY16
(d) Device for storing the calculated square root 16-bit signed binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s) 
(d) 
Error code
(SD0/SD8067)
Description
3405 In (s), a negative value is specified.
(s) (d)
(s)
(d)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals