Delta AS Series Programming Manual page 854

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1514
FLOG
Device
X
Y
M
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
Explanation
1.
This instruction calculates the logarithm of the value in S
precision floating-point operation result in D.
2.
The values in S
and S
1
.→D=Log
D
3.
S
=S
S
1
2
S1
2.
4.
Example: suppose the values in S
125).
.→5D=125.→D=log
D
5.
S
=S
1
2
6.
If the operation result stored in D is 0, SM600 is ON.
Example
When X0.0 is ON, the DFLT instruction converts the values in (D1, D0) and (D3, D2) into the floating-point
1.
numbers, and stores the conversion results in (D11, D10) and (D13, D12) respectively.
When X0.1 is ON, the FLOG instruction calculates the logarithm of the floating-point number in (D13, D12) with
2.
Operand
P
S
, S
, D
1
2
S
T
C
HC
Pulse instruction
: Base for the logarithm
S
1
: Source value
S
2
Device where the operation result is
D :
stored
only can be positive values.
2
and S
are 5 and 125 respectively. Find log
1
2
125=3.
5
Ch ap te r 6 Ap pl ie d Instruc ti ons
Logarithm of a floating-point number
D
FR
SM
SR
16-bit instruction
AS
-
with respect to the value in S
2
125 (log base 5 of the number
5
Function
E
K
16#
"$"
F
32-bit instruction
AS
, and stores the single-
1
6 - 5 7 5
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents