Download Print this page

Converting 16-Bit Signed Binary Data To Single-Precision Real Number - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Converting 16-bit signed binary data to single-precision real
number
INT2FLT(P)
These instructions convert the 16-bit signed binary data in the device specified by (s) to single-precision real number, and
store the converted data in the device specified by (d).
Ladder diagram
(s)
FBD/LD
EN
ENO
s
d
*1 Supported by engineering tool version "1.035M" and later.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data before conversion
(d)
Data after conversion
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Processing details
• These instructions convert the 16-bit signed binary data in the device specified by (s) to single-precision real number, and
store the converted data in the device specified by (d).
SM402
M0
Operation error
There is no operation error.
8 APPLICATION INSTRUCTION
502
8.9 Real Number Instruction
(d)
Word
T, ST, C, D, W,
SD, SW, R
MOVP
K-1234
(s)
INT2FLT
D0
Structured text
ENO:=INT2FLT(EN,s,d);
ENO:=INT2FLTP(EN,s,d);
Range
-32768 to +32767
Double word Indirect
U\G
Z
LC
D0
(s)
b15
(d)
D0
FB2EH
D100
(-1234)
*1
Data type
16-bit signed binary
Single-precision real number
Bit
Bit
Constant
specification
LZ
K, H
(d)
b0
b31
D101, D100
C49AH
Data type (label)
ANY16_S
ANYREAL_32
BOOL
BOOL
Others
E
$
b16
b15
b0
4000H
(-1234.0)

Hide quick links:

Advertisement

loading