Mitsubishi MELSEC-Q/L Programming Manual page 539

Table of Contents

Advertisement

7.12.25 LOG10, LOG10P
Common logarithm operation on floating-point data
(Single precision)
7.12.25
LOG10, LOG10P
LOG10
LOG10P
: Data of which the common logarithm is obtained or head number of the devices where the data are stored (real number)
S
: Head number of the devices where the operation result will be stored (real number)
D
Setting
Internal Devices
Data
Bit
Word
––
S
––
D
*1:
Available only for real number.
Function
(1) This instruction obtains the value specified by
operation result into the device specified by
(2) Only positive values can be specified by
(3) If the value resulted from the operation is -0 or an underflow occurs, the result will be processed as 0.
Operation Error
(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.
Error
code
The value specified in
4100
The value specified in
The specified device value is not within the following range:
-126
4140
0, 2
| Specified device value | < 2
The value specified by
The operation result is within the following range (when an overflow
occurs):
4141
128
2
| Operation result |
Command
Command
J
\
R, ZR
Bit
––
––
for common logarithm (logarithm with base 10), and then stores the
S
.
D
Log
S
S
10
+1
32-bit floating-point
data type real number
. (Operation cannot be performed on negative numbers.)
S
Error details
is negative.
S
is 0.
S
128
is -0.
S
High
Basic
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
S
LOG10
S
LOG10P
U
\G
Word
D
D
+1
32-bit floating-point
data type real number
Q00J/
Q00/
QnH
Q01
––
––
––
––
––
––
LOG10, LOG10P
Ver.
Process
Redundant
Universal
LCPU
D
D
Constants
Zn
Other
E
––
*1
––
––
––
––
QnPH QnPRH
QnU
LCPU
––
––
––
––
––
––
1
2
3
4
4
6
7
8
537

Advertisement

Table of Contents
loading

Table of Contents