Delta Electronics AH500 Manual page 204

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

Advertisement

API
Instruction code
128
D
POW
Device
X
Y
M
S
1
S
2
D
E xp la nat io n
E xa mple
A dditio nal
re mark
5 - 8 9
Operand
P
S
, S
1
S
K
16#
F
Pulse instruction 16-bit instruction 32-bit instruction (9 steps)
S
: Device in which a base is stored; S
1
stored; D: Device in which the operation result is stored
The binary floating-point value in S
S
, and the operation result is stored in D.
2
[S2+1, S2]
+1, S
]
D=POW[S
1
1
The value in S
can only be a positive value, whereas the value in S
1
be a positive value or a negative value. D must be a 32-bit register, and
the values in S
and S
must be floating-point values.
1
2
If the values in S
and S
1
2
instruciton will not be executed, an operation error flag will be ON, and
the error code 16#0E19 will appear.
If the absolute value of an operation result is greater than the maximum
floating-point value available, a carry flag will be ON.
If the absolute value of an operation reuslt is less than the minimum
floating-point value available, a borrow flag will be ON.
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.
SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is the
borrow flag in O100.
SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the
carry flag in O100.
SM1049 is the operation error flag in an Ox motion subroutine, and
SM953 is the operation error flag in O100.
When M0 is ON, the values in (D1, D0) and (D3, D2) are converted into
binary floating-point values, and the conversion results are stored in
(D11, D10) and (D13, D12) respectively.
When M1 is ON, the binary floating-point value in (D11, D10) is raised to
the power of the binary floating-point value in (D13, D12), and the
operation result is stored in (D21, D20).
M0
M1
Please refer to section 5.3 for more information about performing
operations on floating-point numbers.
Ch ap te r 5 Ap plie d Instruc tions
Power of a floating-point
, D
2
number
KnM KnS
D
W
: Device in which a power is
2
is raised to the power of the value in
1
are invalid, an operation error will occur, the
DFLT
D0
D10
DFLT
D2
D12
DPOW
D10
D12
Function
T
C
V
Z
can
2
D20

Advertisement

Table of Contents
loading

Table of Contents