Converting Single-Precision Real Number To 32-Bit Signed Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting single-precision real number to 32-bit signed binary
data
FLT2DINT(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions convert the specified single-precision real number to 32-bit signed binary data.
Ladder
(s)
FBD/LD
EN
ENO
s
d
*1 The engineering tool with version "1.035M" or later supports the ST.
■Execution condition
Instruction
FLT2DINT
FLT2DINTP
Setting data
■Description, range, data type
Operand
Description
(s)
Single-precision real number or the start device where the
single-precision real number is stored
(d)
Start device for storing the converted binary data
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d)
6 BASIC INSTRUCTIONS
390
6.6 Data Conversion Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
*1
ST
ENO:=FLT2DINT(EN,s,d);
ENO:=FLT2DINTP(EN,s,d);
Range
-2147483648 to 2147483647
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
Single-precision real
ANYREAL_32
number
32-bit signed binary
ANY32_S
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents