10 common logarithm (log), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 180: 3 ) programming example

5.6 Basic Function Instructions
5.6.10 Common Logarithm (LOG)
5-111
Instructions
5
5.6.10 Common Logarithm (LOG)
( 1 ) Operation
The LOG instruction calculates the common logarithm of X (log
10
X), when input data X is a real number and stores
the result in the output data.
( 2 ) Format
∗ C and # registers cannot be used.
When Input Data Is Less Than or Equal to 0
If the input data is less than 0, the absolute value of the input data will be used to perform the operation and output the
result.
The output data is set to -
∞ if the input value is 0.
( 3 ) Programming Example
The following programming example calculates the common logarithm when the input data is 10.0 in MF00000, and
stores the result in the output data in DF00000.
log
10
10.0
→ DF00000 = 1.0
Input data
Output data
log
10
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Input data (Src)
×
×
×
{
×
×
{
Output data (Dest)
×
×
×
{
∗
×
×
×
Input data
Output data
Icon:
Key entry: LOG