6 - 25 6 - 25
6 IEC FUNCTIONS
6.4 Numerical Functions (Trigonometric Functions)
6.4.1 Floating-point SIN operation SIN
SIN_E
The SIN (sine) value of the specified angle is operated.
Function definition
REAL SIN( REAL S1 );
Argument
Argument Name
IN/OUT
Description
S1
IN
Angle data to be SIN (sine) operated (real number data)
Remarks: Set the specified angle in radian unit (angle / 180).
Return value
Return Value
Description
REAL
SIN operation result (real number data)
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
r_data1 := SIN( 1.23456 );
LD
SM400
SIN E1.23456
r_data1
LD,SIN
Function definition
BOOL SIN_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
Angle data to be SIN (sine) operated (real number data)
Remarks: Set the specified angle in radian (unit angle / 180).
D1
OUT
SIN operation result (real number data)
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
When execution condition X0 turns ON, the SIN value of the angle data
stored in rData is calculated, and the result is stored into Result.
M0 := SIN_E( X0, rData, Result ) ;
*)
*)
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......