Natural Logarithm : Ln - Mitsubishi Electric Q173HCPU Programming Manual

Q series motion controller
Hide thumbs Also See for Q173HCPU:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.6.8 Natural logarithm : LN

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
LN(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
Data on which natural logarithm operation will be
(S)
(1) The base e natural logarithm of the data specified with (S) is found.
(2) Only a positive number may be specified with (S). (Operation cannot be
performed with a negative number.)
(3) If (S) is an integer type, it is converted into a floating-point type before operation is
performed.
(1) An operation error will occur if:
• (S) is 0 or a negative number; or
• (S) is an indirectly specified device and its device No. is outside the range.
(1) Program which finds the natural logarithm of D0F and substitutes the result to #0F
#0F = LN(D0F)
#3
#2
2.3025850929940
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
performed
#1
#0
5 - 31
F/FS
Number of basic steps
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Floating-point type
D3
D2
D1
10.0
G
2
Bit
Comparison
conditional
expression
: Usable
D0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q172hcpu

Table of Contents