5- 97 5- 97
5 MELSEC FUNCTIONS
5.18.19 BCD type SIN operation BASIN_MD
-1
The SIN
-1
(arcsine) value of the specified BCD value is operated.
Function definition
BOOL BASIN_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
Operation result
(ARRAY [0..2] OF
ANY16)
S [2] Fraction part (BCD 4-digit data)
D
OUT
Operation result (head number of device) (BCD 4-digit data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the SIN
-1
value of the value specified in *)
(* BasinArrayData is operated, and the result is stored into Result.
*)
BASIN_MD (X0, BasinArrayData, Result);
Corresponding MELSEC command
BASIN (BCD type SIN
-1
operation)
5.18.20 BCD type COS operation BACOS_MD
-1
The COS
-1
(arccosine) value of the specified BCD value is operated.
Function definition
BOOL BACOS_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
Data to be COS
-1
(arccosine) operated
(ARRAY [0..2] OF
ANY16)
S [2] Fraction part (BCD 4-digit data)
D
OUT
Operation result (head number of device) (BCD 4-digit data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the COS
-1
value of the value specified *)
(* in BacosArrayData is operated, and the result is stored into Result.
*)
BACOS_MD (X0, BacosArrayData, Result);
Corresponding MELSEC command
BACOS (BCD type COS
-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: ......