EasyManua.ls Logo

Delta VP3000 Series - Page 356

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development PlatformVP3000
347
API Instruction code Operand Function
125 D LN P S, D
Binary floating-point number natural
logarithm operation
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (9 steps)
DLN
Continuous
execution
type
DLNP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S: device of operation source
D: device of operation result
e = 2.71828 is as a base number, and S is the exponent to do LN operation.
[ D + 1, D ] = ln
[ S + 1, S ]
Both positive and negative values are valid for S. The 32-bit format must be used to designate
register D. The operation is executed in floating-point numbers, so the value in S needs to be
converted into floating-point number before exponent operation.
The content of operand D = ln
S
= log
e
S, e =2.71828, and S is the designated source data.
Example
When M0 = ON, convert (D0, D1) to be binary floating-point numbers and store in the register
(D11, D10).
When M1 = ON, (D11, D10) are the exponent to do LN operation. Their value is binary floating-
point numbers and store in the register (D21, D20).

Table of Contents

Related product manuals