Delta AH500 Programming Manual page 510

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
1514
FLOG
Device X
Y
M
S
1
S
2
D
Symbol:
Explanation:
1.
The logarithm of the value in S
result is stored in D.
2.
The values in S
and S
1
32-bit register, and the values in S
D
3.
S
=S
.→D=Log
S
1
2
S1
4.
Example: Suppose the values in S
D
5.
S
=S
.→5D=125.→D=log
1
2
6.
If the operation result stored in D is 0, SM600 is ON.
Example:
1.
When X0.0 is ON, the values in (D1, D0) and (D3, D2) are converted into the floating-point
numbers, and the conversion results are stored in (D11, D10) and (D13, D12) respectively.
2.
When X0.1 is ON, the logarithm of the floating-point number in (D13, D12) with respect to the
floating-point number in (D11, D10) is calculated, and the operation result is stored in (D21,
D20).
6 - 3 4 2
Operand
P
S
, S
, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7-9 steps) 32-bit instruction
AH500
: Device in which the base is stored
S
1
: Source device
S
2
Device in which the operation result is
D :
stored
with respect to the value in S
2
only can be positive values. The register specified by D should be a
2
and S
should be floating-point numbers.
1
2
2 .
and S
are 5 and 125 respectively. Find log
1
2
125=3.
5
Logarithm of the floating-point
number
L
SM SR
E
PR
AH500
is calculated, and the operation
1
Function
K
16# "$"
DF
-
Double word
Double word
Double word
125.
5

Advertisement

Table of Contents
loading

Table of Contents