5 MELSEC FUNCTIONS
5.18.5 Floating-point COS operation
The COS
-1
(arccosine) operation of the specified COS value is performed.
Function definition
5.18.6 Floating-point TAN operation
The TAN
(arctangent) operation of the specified TAN value is performed.
-1
Function definition
5- 90
-1
BOOL ACOS_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 COS
(* value specified in rData, and the result is stored into Result.
ACOS_E_MD (X0, rData, Result);
Corresponding MELSEC command
-1
ACOS (COS
operation on floating-point data (Single precision))
-1
BOOL ATAN_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 TAN
(* value specified in rData, and the result is stored into Result.
ATAN_E_MD (X0, rData, Result);
Corresponding MELSEC command
-1
ATAN (TAN
operation on floating-point data (Single precision))
ACOS_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be operated, COS value (-1.0 to 1.0) (real number data)
OUT
Operation result (angle data in radian unit) (real number data)
ATAN_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be operated, TAN value (real number data)
OUT
Operation result (angle data in radian unit) (real number data)
Description
Description
Description
Description
*)
*)
*)
*)
5- 90