5 - 87 5 - 87
5 MELSEC FUNCTIONS
5.17.29 BCD format data floating-point EREXP_M
The specified BCD type floating-point format data is converted into real number data based on the specified
fraction part digits.
Function definition
BOOL EREXP_M (BOOL EN, ANY16 S1, ANY16 S2, REAL D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1 IN
Data to be converted (BCD type floating-point format
data)
S2
IN
Fraction part digit data (BIN 16-bit data)
D
OUT
Conversion result (real number data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the BCD type floating-point format
*)
(* data specified in iData1 is converted into real number data based on the
*)
(* fraction part digits specified in iData2, and the result is stored into Result.
*)
(* real number data based on the fraction part digits specified in iData2, and
*)
(* the result is stored into Result.
*)
EREXP_M (X0, iData1, iData2, Result);
Corresponding MELSEC command
EREXP (BCD format data floating-point)
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: ......