5- 98 5- 98
5 MELSEC FUNCTIONS
5.18.21 BCD type TAN operation BATAN_MD
-1
The TAN
-1
(arctangent) value of the specified BCD value is operated.
Function definition
BOOL BATAN_MD (BOOL EN, ANY16(3) S1, ANY16 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S [0] Sign (positive: 0, negative: 1)
S [1] Integer part (BCD 4-digit data)
S1 IN
Head number of
device that stores
data to be operated
(ARRAY [0..2] OF
ANY16)
S [2] Fraction part (BCD 4-digit data)
D
OUT
Operation result (BCD 4-digit data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the TAN
-1
value of the value specified in *)
(* BatanArrayData is operated, and the result is stored into Result.
*)
BATAN_MD (X0, BatanArrayData, Result);
Corresponding MELSEC command
BATAN (BCD type TAN
-1
operation)
For the usable data type, refer to "3.2.2
About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......