Floating-Point Tan Operation - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.4.3 Floating-point TAN operation

The TAN (tangent) value of the specified angle is operated.
Function definition
Function definition
6 - 27
REAL TAN( REAL S1 );
Argument
Argument Name
IN/OUT
S1
IN
Remarks: Set the specified angle in radian unit (angle
Return value
Return Value
REAL
TAN operation result (real number data)
Example of use
Argument Type
REAL
w_Real1 := TAN( w_Real2 );
BOOL TAN_E( BOOL EN, REAL S1, REAL D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Return value
Return Value
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 ) ;
TAN
TAN_E
Angle data to be TAN (tangent) operated (real number data)
ST Program
Conversion Result
LD
TAN
Execution condition (Function is executed only when the result is TRUE)
Angle data to be TAN (tangent) operated (real number data)
Remarks: Set the specified angle in radian unit (angle
TAN operation result (real number data)
Description
/ 180).
Description
Used Instruction
SM400
LD,TAN
w_Real2
w_Real1
Description
Description
/ 180).
*)
*)
6 - 27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents