Download  Print this page

Special Functions; Floating-Point Sin Operation; Floating-Point Cos Operation - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs

Advertisement

5 MELSEC FUNCTIONS

5.18 Special Functions

5.18.1 Floating-point SIN operation

The SIN (sine) value of the specified angle is operated.
Function definition

5.18.2 Floating-point COS operation

The COS (cosine) value of the specified angle is operated.
Function definition
5- 88
BOOL SIN_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the SIN value of the angle specified
(* in rData is calculated, and the result is stored into Result.
SIN_E_MD (X0, rData, Result);
Corresponding MELSEC command
SIN (SIN operation on floating-point data (Single precision))
BOOL COS_E_MD (BOOL EN, REAL S1, REAL D);
Argument Name
IN/OUT
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the COS value of the angle
(* specified in rData is calculated, and the result is stored into Result.
COS_E_MD (X0, rData, Result)
Corresponding MELSEC command
COS (COS operation on floating-point data (Single precision))
SIN_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
Angle data to be SIN (sine) operated (real number data)
IN
Remarks: Set the specified angle in radian unit (angle
OUT
Operation result (SIN value) (real number data)
COS_E_MD
Execution condition (Function is executed only when the
IN
result is TRUE)
Angle data to be COS (cosine) operated (real number data)
IN
Remarks: Set the specified angle in radian unit (angle
OUT
Operation result (COS value) (real number data)
Description
Description
Description
Description
/180).
*)
*)
/180).
*)
*)
5- 88

Advertisement

Table of Contents
loading

  Related Manuals for Mitsubishi Electric MELSEC Q Series

This manual is also suitable for:

Melsec l series