538
LOG10D, LOG10DP
Program
E
xamp
l
e
(1) The following program obtains the value for common logarithm of the 32-bit floating-point data type real number specified
by D600 or D601, when X10 is turned on. Then the program stores the operation result into D123 or D124.
[Ladder Mode]
[List Mode]
[Operation]
: Data of which the common logarithm is obtained or head number of the devices where the data are stored (real number)
: Head number of the devices where the operation result will be stored (real number)
*1:
Available only for real number.
F
unct
i
on
(1) This instruction obtains the value specified by for common logarithm (logarithm with base 10), and then stores the
operation result into the device specified by .
(2) Only positive values can be specified by . (Operation cannot be performed on negative numbers.)
(3) If the value resulted from the operation is -0 or an underflow occurs, the result will be processed as 0.
7.12.26 LOG10D, LOG10DP
Common logarithm operation on floating-point data
(Double precision)
7.12.26
LOG10D, LOG10DP
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
*1
––
––
––
––
––
Step
I
nstruct
i
on
De
vi
ce
Log
10
D601
D600
2.806
D124
D123
0.448088
Bas
i
c
Hi
gh
performance
Process
Redundant
Universal
LCPU
Ver.
L
OG10DP
LOG10D
LOG10DP
L
OG10D
S
D
S
D
Command
Command
S
D
S
D
S
D
L
og
10
S
S
+
3
S
+
2
S
+
1
D
D
+
3
D
+
2
D
+
1
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
data
type
rea
l
number
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
data
type
rea
l
number
S