10 common logarithm instruction (log) – Yaskawa Ladder Works Programming Manual User Manual

Page 97

Advertising
background image

5.10 COMMON LOGARITHM Instruction (LOG)

5-15

5.10 COMMON LOGARITHM Instruction (LOG)

[Outline]

The LOG instruction uses the Source as the input (x) and stores the common logarithm (Log

10

x

) of the

input in the Dest as the operation result. This instruction can be used only in a real number operation.

[Format]

Symbol : LOG
Full Name : Logarithm Base 10
Category : FUNCTION

Icon :

[Parameter]

Parameter Name

Setting

Source
(Input)

· Any real number type register
· Any real number type register with subscript
· Constant

Dest
(Output)

· Any real number type register (except for # and C register)
· Any real number type register with subscript (except for # and C register)

[Program Example]

The common logarithm of the input value (x = 10.) [Log

10

(x) = 1.0] is calculated.

Notes: LOG instruction is input(x) value is checked, execute the following handling.

· When the input is minus LOG (-1), calculate a absolute value

· When the input is zero LOG (0), take -∞ for solution.


Advertising