537
LOG10, LOG10P
1
2
3
4
4
6
7
8
7.12
Special function
instructions
7.12.2
5
LOG10, LOG10P
: 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.
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
7.12.25 LOG10, LOG10P
Common logarithm operation on floating-point data
(Single precision)
7.12.25
LOG10, LOG10P
• 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
E
Other
Bit
Word
Bit
Word
––
––
––
*1
––
––
––
––
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The value specified in is negative.
The value specified in is 0.
––
––
––
––
4140
The specified device value is not within the following range:
0, 2
-126
| Specified device value | < 2
128
The value specified by is -0.
––
––
––
––
4141
The operation result is within the following range (when an overflow
occurs):
2
128
| Operation result |
––
––
––
––
Bas
i
c
Hi
gh
performance
Process
Redundant
Universal
LCPU
Ver.
L
OG10P
LOG10
LOG10P
L
OG10
S
D
S
D
Command
Command
S
D
S
D
S
D
Log
10
S
S
+1
32-bit floating-point
data type real number
32-bit floating-point
data type real number
D
D
+1
S
S
S
S