Delta Electronics AH500 Manual page 203

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l
API
Instruction code
127
D
ESQR
Device
X
Y
M
S
D
E xp la nat io n
E xamp le 1
E xamp le 2
A dditio nal
re mark
Operand
P
S
K
16#
F
Pulse instruction 16-bit instruction 32-bit instruction (6 steps)
S: Source device; D: Device in which a result is stored
The square root of the binary floating-point value in S is calculated, and
the result is stored in D.
If S is a floating-point value, the instruction will be used to calculate the
floating-point value.
If an operation result is 0, a zero flag will be ON.
SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the
zero flag in O100.
SM1049 is the operation error flag in an Ox motion subroutine, and
SM953 is the operation error flag in O100.
If the value in S is not a positive value, an operation error will occur, the
instruciton will not be executed, an operation error flag will be ON, and
the error code 16#0E19 will appear.
When X0.0 is ON, the square root of the binary floating-point value in
(D1, D0) is calculated, and the result is stored in (D11, D10).
X0.0
(D1
D0)
Binary floating- point
number
When X0.2 is ON, the square root of F1234.0 is calculated, and the
result is stored in (D11, D10).
X0.2
Please refer to section 5.3 for more information about performing
operations on floating-point numbers.
Square root of a binary
S, D
floating-point number
KnM KnS
D
W
DESQR
D0
D10
(D11
Binary floating- point
number
DESQR F1234.0
Function
T
C
V
Z
D10)
D10
5 - 8 8

Advertisement

Table of Contents
loading

Table of Contents