270
D E S Q R P
S
D
1
2
M
3
○○○○
FNC
127
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
DESQR D0 D10
X0
S
D
S
D
Operand
Devices
BIN Floating Point Square Root
S : the source device to be performed the square root operation
D : the destination device to store the square root result
This instruction performs the square root operation on a BIN oating point number that is designated by and
stores the BIN oating point format result in the designated device.
When X0 = “ON”, this instruction performs the square root operation on the BIN oating point number in (D1, D0),
and the result will be stored in (D11, D10).
This instruction is a 32-bit instruction. Therefore, be sure to input DESQR or DESQRP in the program.
If a source operand is assigned to a constant integer K or H, this instruction will automatically convert the number
to BIN oating point number for the calculation. Therefore, could execute the square root function.
The format for storing a oating point number will occupy two Registers in the PLC system. Please refer to the
section 2-13 “Numerical System” for the reference of the oating point number.
When the operated result is equal to “0” , the Addition / Subtraction Zero Flag M9020 turns “ON”.
If the value of is less than zero, the PLC will regard that as an operational error and turn the M9067 = “ON”.
S