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.6 Floating-point TAN operation

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents