Floating-Point Tan 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.3 Floating-point TAN operation

The TAN (tangent) value of the specified angle is operated.
Function definition
5.18.4 Floating-point SIN
The SIN
-1
(arcsine) operation of the specified SIN value is performed.
Function definition
5- 89
BOOL TAN_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the TAN value of the angle specified *)
(* in rData is calculated, and the result is stored into Result.
TAN_E_MD (X0, rData, Result);
Corresponding MELSEC command
TAN (TAN operation on floating-point data (Single precision))
-1
operation
BOOL ASIN_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the angle is operated from the SIN
(* value specified in rData, and the result is stored into Result.
ASIN_E_MD (X0, rData, Result);
Corresponding MELSEC command
-1
ASIN (SIN
operation on floating-point data (Single precision))
TAN_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
Angle data to be TAN (tangent) operated (real number data)
IN
Remarks: Set the specified angle in radian unit (angle
/180).
OUT
Operation result (TAN value) (real number data)
ASIN_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be operated, SIN value (-1.0 to 1.0) (real number data)
OUT
Operation result (angle data in radian unit) (real number data)
Description
Description
Description
Description
*)
*)
*)
5- 89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents