Bin Floating-Point Conversion; 32-Bit Bin Floating-Point Conversion - 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.6.7 BIN
floating-point conversion
The specified BIN 16-bit data is converted into real number data.
Function definition BOOL FLT_M (BOOL EN, ANY16 S1, REAL D);
5.6.8 32-bit BIN
floating-point conversion
The specified BIN 32-bit data is converted into real number data.
Function definition
5 - 26
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(*When execution condition X0 turns ON, the BIN 16-bit data in D100 is
(* converted into real number data, and the result is stored into Result.
FLT_M (X0, D100, Result);
Corresponding MELSEC command
FLT (Conversion from BIN 16-bit data to floating decimal point (Single precision))
BOOL DFLT_M (BOOL EN, ANY32 S1, REAL D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the BIN 32-bit data in dwData1 is
(* converted into real number data, and the result is stored into Result.
DFLT_M (X0, dwData1, RealResult);
Corresponding MELSEC command
DFLT (Conversion from BIN 32-bit data to floating decimal point (Single precision))
FLT_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Data to be converted (BIN 16-bit data)
IN
OUT
Conversion result (real number data)
DFLT_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Data to be converted (BIN 32-bit data)
IN
Conversion result (real number data)
OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 26

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents