Bcd Format Data Floating-Point - 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.17.29 BCD format data
The specified BCD type floating-point format data is converted into real number data based on the specified
fraction part digits.
Function definition
5 - 87
floating-point
BOOL EREXP_M (BOOL EN, ANY16 S1, ANY16 S2, REAL D);
Argument Name
EN
S1
S2
D
Return Value
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
EREXP_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Data to be converted (BCD type floating-point format
IN
data)
IN
Fraction part digit data (BIN 16-bit data)
OUT
Conversion result (real number data)
floating-point)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
*)
*)
*)
*)
*)
5 - 87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents