6 - 30 6 - 30
6 IEC FUNCTIONS
6.4.6 Floating-point TAN operation ATAN
ATAN_E
-1
The TAN
-1
(arctangent) of the specified TAN value is operated.
Function definition
REAL ATAN( REAL S1 );
Argument
Argument Name
IN/OUT
Description
S1 IN
TAN value to be TAN
-1
(arctangent) operated (real number data)
Return value
Return Value
Description
REAL
TAN
-1
operation result (real number data)
Remarks: This function cannot be used with the Basic model QCPU.
The operation result is the angle data in radian unit.
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
w_Real1 := ATAN( w_Real2 ); LD
SM400
ATAN w_Real2
w_Real1
LD,ATAN
Function definition
BOOL ATAN_E( BOOL EN, REAL S1, REAL D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1 IN
TAN value to be TAN
-1
(arctangent) operated (real number data)
D1 OUT
TAN
-1
operation result (real number data)
Remarks: The operation result is the angle data in radian unit.
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
When execution condition X0 turns ON, the angle is operated from the TAN
value stored in rData, and the result is stored into Result.
M0 := ATAN_E( X0, rData, Result ) ;
*)
*)
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......