Delta Electronics AH500 Manual page 202

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

Advertisement

API
Instruction code
126
D
LOG
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 7
Operand
P
S
, S
1
S
K
16#
F
KnM KnS
Pulse instruction 16-bit instruction 32-bit instruction (9 steps)
S
: Device in which the base is stored; S
1
which an operation result is stored
The logarithm of the value in S
calculated, and the operation result is stored in D.
The values in S
and S
can only be positive values. D must be a 32-bit
1
2
register, and the values in S
→D=Log
D
S
=S
S
1
2
S1
2
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.
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 logarithm of the binary floating-point value in (D13,
D12) with respect to the binary 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.
Ch ap te r 5 Ap plie d Instruc tions
Logarithm of a binary
, D
2
floating-point number
D
W
T
: Source device; D: Device in
2
with respect to the value in S
2
and S
must be floating-point values.
1
2
DFLT
D0
D10
DFLT
D2
D12
DLOG
D10
D12
Function
C
V
Z
is
1
D20

Advertisement

Table of Contents
loading

Table of Contents