Bcd Type Sin Operation; Bcd Type Cos Operation - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.18.19 BCD type SIN operation

The SIN
(arcsine) value of the specified BCD value is operated.
-1
Function definition

5.18.20 BCD type COS operation

The COS
-1
(arccosine) value of the specified BCD value is operated.
Function definition
5- 97
-1
BASIN_MD
BOOL BASIN_MD (BOOL EN, ANY16(3) S1, ANY16 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the SIN
(* BasinArrayData is operated, and the result is stored into Result.
BASIN_MD (X0, BasinArrayData, Result);
Corresponding MELSEC command
BASIN (BCD type SIN
-1
BOOL BACOS_MD (BOOL EN, ANY16(3) S1, ANY16 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the COS
(* in BacosArrayData is operated, and the result is stored into Result.
BACOS_MD (X0, BacosArrayData, Result);
Corresponding MELSEC command
BACOS (BCD type COS
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Operation result
IN
(ARRAY [0..2] OF
ANY16)
OUT
Operation result (head number of device) (BCD 4-digit data)
operation)
-1
BACOS_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Data to be COS
(arccosine) operated
IN
(ARRAY [0..2] OF
ANY16)
OUT
Operation result (head number of device) (BCD 4-digit data)
operation)
-1
For the usable data type, refer to "3.2.2
About ANY type".
Description
S [0] Sign (positive: 0, negative: 1)
S [1] Integer part (BCD 4-digit data)
S [2] Fraction part (BCD 4-digit data)
Description
value of the value specified in
-1
Description
-1
S [0] Sign (positive: 0, negative: 1)
S [1] Integer part (BCD 4-digit data)
S [2] Fraction part (BCD 4-digit data)
Description
-1
value of the value specified *)
*)
*)
*)
5- 97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents