5- 89 5- 89
5 MELSEC FUNCTIONS
5.18.3 Floating-point TAN operation TAN_E_MD
The TAN (tangent) value of the specified angle is operated.
Function definition
BOOL TAN_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1 IN
Angle data to be TAN (tangent) operated (real number data)
Remarks: Set the specified angle in radian unit (angle
/180).
D
OUT
Operation result (TAN value) (real number data)
Return Value
Description
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))
5.18.4 Floating-point SIN operation ASIN_E_MD
-1
The SIN
-1
(arcsine) operation of the specified SIN value is performed.
Function definition
BOOL ASIN_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1
IN
Data to be operated, SIN value (-1.0 to 1.0) (real number data)
D
OUT
Operation result (angle data in radian unit) (real number data)
Return Value
Description
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
ASIN (SIN
-1
operation on floating-point data (Single precision))
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......