Numeric Functions (Logarithm Functions); Natural Logarithm - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.3 Numeric Functions (Logarithm Functions)

6.3.1 Natural logarithm

The natural logarithm of the specified data is operated.
Function definition
Function definition
6 - 23
LN
LN_E
REAL LN( REAL S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
REAL
Natural logarithm operation result (real number data)
Remarks:
Example of use
Argument Type
REAL
r_data1 := LN( 1.23456 );
BOOL LN_E( BOOL EN, REAL S1, REAL D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Example of use
(*
When execution condition X0 turns ON, the natural logarithm of the data
(*
stored in rData is found, and the result is stored into Result.
M0 := LN_E( X0, rData, Result ) ;
Data whose natural logarithm will be found (real number data)
ST Program
Conversion Result
LD
LOG
Execution condition (Function is executed only when the result is TRUE)
Data whose natural logarithm will be found (real number data)
Natural logarithm operation result (real number data)
Description
Description
Used Instruction
SM400
LD,LOG
E1.23456
r_data1
Description
Description
*)
*)
6 - 23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents