Download Print this page

Converting Decimal Floating Point To Binary Floating Point - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

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

Advertisement

Converting decimal floating point to binary floating point

DEBIN(P)
These instructions convert the decimal floating point specified by (s) to the binary floating point, and store the converted data
in the device specified by (d).
Ladder diagram
(s)
(d)
FBD/LD
EN
ENO
s
d
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device number storing decimal floating-point data
(d)
Device number storing converted binary floating-point data
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 decimal floating point specified by (s) to the binary floating point, and store the converted
data in the device specified by (d).
High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Exponent part
(s)+1
High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Exponent part (8 bits)
Sign (1 bit)
(d)+1
Word
T, ST, C, D, W,
U\G
SD, SW, R
10
(s)+1
(s)
Mantissa part (23 bits)
Structured text
ENO:=DEBIN(EN,s,d);
ENO:=DEBINP(EN,s,d);
Range
Data type
Real number
Single-precision real number
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Low order
Mantissa part
(s)
Low order
(d)
Data type (label)
ANY32
ANYREAL_32
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
511

Hide quick links:

Advertisement

loading