Floating-Point Square Root; Floating-Point Natural Exponential Operation - Mitsubishi Electric MELSEC Q Series Programming Manual

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

Advertisement

5 MELSEC FUNCTIONS

5.18.9 Floating-point square root

The square root of the specified value is operated.
Function definition

5.18.10 Floating-point natural exponential operation

The base e natural exponent of the specified value is operated.
Function definition
5- 92
SQR_E_MD
BOOL SQR_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Remarks: The value to be specified in "S1" is a positive number only.
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the square root of the value specified *)
(* in rData is operated, and the result is stored into Result.
SQR_E_MD (X0, rData, Result);
Corresponding MELSEC command
SQR (Square root operation for floating-point data (Single precision))
BOOL EXP_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Remarks: Operation is performed on the assumption that the base (e) is "2.71828".
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, natural exponential operation
(* performed using rData as an exponent is, and the result is stored into Result. *)
EXP_E_MD (X0, rData, Result);
Corresponding MELSEC command
EXP (Exponent operation on floating-point data (Single precision))
Execution condition (Function is executed only when the
IN
result is TRUE)
Data to be operated (only positive value can be specified)
IN
(real number data)
OUT
Operation result (real number data)
EXP_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Exponent part data to be operated (real number data)
OUT
Operation result (e
Description
Description
Description
) (real number data)
S1
Description
*)
*)
5- 92

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents