6 - 27 6 - 27
6 IEC FUNCTIONS
6.4.3 Floating-point TAN operation TAN
TAN_E
The TAN (tangent) value of the specified angle is operated.
Function definition
REAL TAN( REAL S1 );
Argument
Argument Name
IN/OUT
Description
S1
IN
Angle data to be TAN (tangent) operated (real number data)
Remarks: Set the specified angle in radian unit (angle / 180).
Return value
Return Value
Description
REAL
TAN operation result (real number data)
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
w_Real1 := TAN( w_Real2 ); LD
SM400
TAN w_Real2
w_Real1
LD,TAN
Function definition
BOOL TAN_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
Angle data to be TAN (tangent) operated (real number data)
Remarks: Set the specified angle in radian unit (angle / 180).
D1
OUT
TAN operation result (real number data)
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
When execution condition X0 turns ON, the TAN value of the angle data
stored in rData is calculated, and the result is stored into Result.
M0 := TAN_E( X0, rData, Result ) ;
*)
*)
Summary of Contents for MELSEC L series
Page 1: ...Programming Manual Structured Text ...
Page 2: ......
Page 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Page 297: ......