Floating-Point Cos Operation - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.4.2 Floating-point COS operation

The COS (cosine) value of the specified angle is operated.
Function definition
Function definition
6 - 26
REAL COS( REAL S1 );
Argument
Argument Name
IN/OUT
S1
IN
Remarks: Set the specified angle in radian unit (angle
Return value
Return Value
REAL
COS operation result (real number data)
Example of use
Argument Type
REAL
w_Real1 := COS( w_Real2 ); LD
BOOL COS_E( BOOL EN, REAL S1, REAL D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Remarks: Set the specified angle in radian unit (angle
Return value
Return Value
BOOL
Execution condition
Example of use
(*
When execution condition X0 turns ON, the COS value of the angle data
(*
stored in rData is calculated, and the result is stored into Result.
M0 := COS_E( X0, rData, Result ) ;
COS
COS_E
Angle data to be COS (cosine) operated (real number data)
ST Program
Conversion Result
COS
Execution condition (Function is executed only when the result is TRUE)
Angle data to be COS (cosine) operated (real number data)
Remarks: Set the specified angle in radian unit (angle
COS operation result (real number data)
Description
/ 180).
Description
Used Instruction
SM400
LD,COS
w_Real2
w_Real1
Description
/ 180).
Description
/ 180).
*)
*)
6 - 26

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents