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