6 - 28 6 - 28
6 IEC FUNCTIONS
6.4.4 Floating-point SIN operation ASIN
ASIN_E
-1
The SIN
-1
(arcsine) of the specified SIN value is operated.
Function definition
REAL ASIN( REAL S1 );
Argument
Argument Name
IN/OUT
Description
S1 IN
SIN value to be SIN
-1
(arcsine) operated (-1.0 to 1.0) (real number data)
Return value
Return Value
Description
REAL
SIN
-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 := ASIN( w_Real2 ); LD
SM400
ASIN w_Real2
w_Real1
LD,ASIN
Function definition
BOOL ASIN_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
SIN value to be SIN
-1
(arcsine) operated (-1.0 to 1.0) (real number data)
D1 OUT
SIN
-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 SIN
value stored in rData, and the result is stored into Result.
M0 := ASIN_E( X0, rData, Result ) ;
*)
*)
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......