Bcd Type Tan Operation - Mitsubishi MELSEC-q Programming Manual

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

Advertisement

5 MELSEC FUNCTIONS

5.18.21 BCD type TAN operation

The TAN
-1
(arctangent) value of the specified BCD value is operated.
Function definition
5- 98
BATAN_MD
-1
BOOL BATAN_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 TAN
(* BatanArrayData is operated, and the result is stored into Result.
BATAN_MD (X0, BatanArrayData, Result);
Corresponding MELSEC command
BATAN (BCD type TAN
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Head number of
device that stores
IN
data to be operated
(ARRAY [0..2] OF
ANY16)
OUT
Operation result (BCD 4-digit data)
-1
operation)
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
-1
value of the value specified in
*)
*)
5- 98

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents