174
D S Q R P
D
S
FNC
48
1
2
M
3
○ ○ ○○
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
S : the source device for performing mathematical
square root
D : the destination device to store the result
X20
SQR D0 D1
S
D
S
D
S
Operand
Devices
Square Root
This instruction performs a square root operation on the content value of device and stores the result to the
destination device .
It performs a square root operation on the content value of D0 and stores the result at D1 when X20=“ON”.
For the result, only the integer part will be taken, while the decimal part will be ignored; when any decimal is
ignored, M9021=“ON”.
The Zero Flag M9020=“ON” when the operation result is equal to “0”.
must be a positive; a negative will be determined an error operation by PLC and the M9067 will be set “ON”.
The 16-bit instruction, S = 0~32,767 The 32-bit instruction, S = 0~2,147,483,647