Floating-Point Sin 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.4 Floating-point SIN operation

-1
The SIN
(arcsine) of the specified SIN value is operated.
Function definition
Function definition
6 - 28
-1
REAL ASIN( REAL S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
-1
SIN
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 := ASIN( w_Real2 ); LD
BOOL ASIN_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 SIN
(*
value stored in rData, and the result is stored into Result.
M0 := ASIN_E( X0, rData, Result ) ;
ASIN
ASIN_E
-1
SIN value to be SIN
ST Program
Conversion Result
ASIN
Execution condition (Function is executed only when the result is TRUE)
-1
SIN value to be SIN
-1
SIN
operation result (real number data)
Description
(arcsine) operated (-1.0 to 1.0) (real number data)
Description
SM400
LD,ASIN
w_Real2
w_Real1
Description
(arcsine) operated (-1.0 to 1.0) (real number data)
Description
Used Instruction
*)
*)
6 - 28

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents