Delta AH500 Programming Manual page 512

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1515
FLN
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The natural logarithm of the operand S is calculated.
2.
LN[S+1, S]=[S+1, D]
3.
The value in S only can be a positive value. The register specified by D should be a 32-bit
register, and the value in S should be a floating-point number.
D
4.
e
=S.→The value in D=lnS. (S represents the source data.)
5.
If the operation result stored in D is 0, SM600 is ON.
Example:
1.
When X0.0 is ON, the value in (D1, D0) is converted into the floating-point number, and the
conversion result is stored in (D11, D10).
2.
When X0.1 is ON, the natural logarithm of the floating-point number in (D11, D10) is calculated,
and the operation result is stored in (D21, D20).
Additional remark:
1.
If the value in S is less than or equal to 0, the instruction is not executed, SM0 is ON, and the
error code in SR0 is 16#2003.
6 - 3 4 4
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (5-6 steps) 32-bit instruction
AH500
S : Source device
D : Device in which the operation result is stored
Natural logarithm of the binary
floating-point number
L
SM SR
E
PR
AH500
Function
K
16# "$"
DF
-
Double word
Double word

Advertisement

Table of Contents
loading

Table of Contents