Delta AS Series Programming Manual page 849

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
1511
D
Device
X
S
D
Data
type
S
Symbol
Explanation
_6
1.
This instruction calculates the square root of the value in S, and stores the result in the device specified by D.
2.
The operation result stored in D is an integer. If a floating-point number is rounded down to the nearest whole digit,
SM601 is ON.
3.
If the operation result stored in D is 0, SM600 is ON.
4.
Only the 32-bit instructions can use the 32-bit counter, but not the device E.
Example
When X0.0 is ON, the instruction calculates the square root of the value in D0, and stores the result in D10.
6 - 5 7 0
SQR
P
Y
M
S
T
C
Operand
S, D
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
S : Source value
D : Device where the result is stored
Function
Square root of a binary number
SR
E
K
16#
"$"
32-bit instruction
AS
AS
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents