Chapter 16 PLC Function ApplicationsMS300 (High Speed Model)
16-73
API
LN
Binary floating point number obtain logarithm
125
D P
Bit device Word device
16-bit command
- - - -
32-bit command (9 STEP)
DLN Continuous
execution type
DLNP Pulse
execution type
Flag signal: none
X Y M K H KnX KnY KnM T C D
S
* *
*
D
*
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
S: operation source device. D: operation results device.
Taking e =2.71828 as a base, S is the exponent in the EXP operation.
[ D +1,D ]=EXP
[
S +1,S
]
Valid regardless of whether the content of S has a positive or negative
value. The designated register D must have a 32-bit data format. This
operation is performed using floating-point numbers, and S must therefore
be converted to a floating point number.
Content of operand D =e
S
; e=2.71828, S is the designated source data
When M0 is On, the value of (D1, D0) will be converted to a binary floating
point number, which will be stored in register (D11, D10).
When M1 is On, the EXP operation is performed on the exponent of (D11,
D10); its value is a binary floating point number stored in register (D21,
D20).
M0
M1
DFLT D0 D10
DLN D10 D20