Download Print this page

Calculating The Natural Logarithm Of Single-Precision Real Number - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Calculating the natural logarithm of single-precision real number

LOG(P)/DLOGE(P)
These instructions calculate the logarithm whose base is natural logarithm e of a value specified by (s), and store the
operation result in the device specified by (d).
The LOG(P) instructions can also be used as DLOGE(P).
Ladder diagram
(s)
(d)
*1
FBD/LD
EN
ENO
s
d
*1 The LOG instruction is not supported by the ST language and the FBD/LD language. Use LOG of the standard function.
Page 978 LOG(_E)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data whose natural logarithm is calculated or head device
number where the data is stored
(d)
Head device number for storing the operation result
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=LOGP(EN,s,d);
Range
Data type
Single-precision real number
Single-precision real number
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANYREAL_32
ANYREAL_32
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
535

Hide quick links:

Advertisement

loading