Numerical Functions (Trigonometric Functions); 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 Numerical Functions (Trigonometric Functions)

6.4.1 Floating-point SIN operation

The SIN (sine) value of the specified angle is operated.
Function definition
Function definition
6 - 25
SIN
SIN_E
REAL SIN( REAL S1 );
Argument
Argument Name
IN/OUT
S1
IN
Remarks: Set the specified angle in radian unit (angle
Return value
Return Value
REAL
SIN operation result (real number data)
Example of use
Argument Type
REAL
r_data1 := SIN( 1.23456 );
BOOL SIN_E( BOOL EN, REAL S1, REAL D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Return value
Return Value
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 ) ;
Angle data to be SIN (sine) operated (real number data)
ST Program
Conversion Result
LD
SIN
Execution condition (Function is executed only when the result is TRUE)
Angle data to be SIN (sine) operated (real number data)
Remarks: Set the specified angle in radian (unit angle
SIN operation result (real number data)
Description
/ 180).
Description
Used Instruction
SM400
LD,SIN
E1.23456
r_data1
Description
Description
/ 180).
*)
*)
6 - 25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents