Chapter 6 Instruction Details
XBC E-Type Main Unit
6-267
Ver. 1
6.35.10 LN, LNP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
LN(P)
S
O O O
-
O O O
-
-
-
-
O O O O O
2~4
O
-
-
D
O O O
-
O
-
-
-
-
-
-
-
O O O O
Operand
Description
Data Size
S
Input value to perform
natural logarithm operation
LREAL
D
Device number to save operation result in
LREAL
[Flag Setting]
Flag
Description
Device
Number
Error
To be set if value in specified area S is negative
F110
1) LN (Natural logarithm)
(1) Performs Natural logarithm operation of data in specified area S to save in D. Data type of S and D is
of double real.
(2) If S is negative, operation error occurs.
(3) When S is over 2.0, operation result is 0.6931...(ln(2.0))
2) Program Example
P00001
LN M0000 M0004
Performs Natural logarithm operation of data in M0000, M0001 and saves them in M0004, M0005.
LN
LNP
S
D
LNP
LN
S
D
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...