Delta Electronics AH500 Manual page 201

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
125
D
LN
Device
X
Y
M
S
D
E xp la nat io n
E xa mple
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 an operation result is stored
The natural logarithm of the value in S is calculated
Ln[S+1, S]=[D+1, D]
The value in S can only be a positive value. D must be a 32-bit register,
and the value in S must be a floating-point value.
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.
D
e
=S.→The value in D=lnS (S: Source device)
If the absolute value of an oepration result is greater than the maximum
floating-point value available, a carry flag will be ON.
If the absolute value of an oepration 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 value in (D1, D0) is converted into a binary
floating-point value, and the conversion result is stored in (D11, D10).
When M1 is ON, the natural logarithm of the floating-point value in (D11,
D10) is calculated, 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.
Natural logarithm of a
S, D
binary floating-point
number
KnM KnS
D
W
DFLT
D0
DLN
D10
Function
T
C
V
Z
D10
D20
5 - 8 6

Advertisement

Table of Contents
loading

Table of Contents