5- 90 5- 90
5 MELSEC FUNCTIONS
5.18.5 Floating-point COS operation ACOS_E_MD
-1
The COS
-1
(arccosine) operation of the specified COS value is performed.
Function definition
BOOL ACOS_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, COS 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 COS *)
(* value specified in rData, and the result is stored into Result.
*)
ACOS_E_MD (X0, rData, Result);
Corresponding MELSEC command
ACOS (COS
-1
operation on floating-point data (Single precision))
5.18.6 Floating-point TAN operation ATAN_E_MD
-1
The TAN
-1
(arctangent) operation of the specified TAN value is performed.
Function definition
BOOL ATAN_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, TAN value (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 TAN *)
(* value specified in rData, and the result is stored into Result.
*)
ATAN_E_MD (X0, rData, Result);
Corresponding MELSEC command
ATAN (TAN
-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: ......