Conversion From Bin 16-Bit To Bin 32-Bit Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

DBL, DBLP
[Operation]
D23 D22
D21
D20
Conversion to integer
574968.321
64-bit floating-point real number
D23 D22
D21
D20
Conversion to integer
2147483649.22
64-bit floating-point real number
6.3.7
DBL, DBLP

Conversion from BIN 16-bit to BIN 32-bit data

6.3.7
DBL, DBLP
DBL
DBLP
: BIN 16-bit data or head number of the devices where the BIN 16-bit data is stored (BIN 16 bits)
S
: Head number of the devices where the converted BIN 32-bit data will be stored (BIN 32 bits)
D
Setting
Internal Devices
Data
Bit
Word
S
D
Function
Converts BIN 16-bit data at device designated by
by
.
D
Operation Error
(1) There is no operation error in the DBL(P) instruction.
Program Example
(1) The following program converts the BIN 16-bit data stored at D100 to BIN 32-bit data when X20 is ON, and stores at
R100 and R101.
[Ladder Mode]
[Operation]
D100
R101 R100
FB2E
FFFFFB2E
H
( 1234)
242
D1
D0
574968
BIN value
An operation erroe occurs because the
specified data is larger than 2147483647.
Command
Command
J
R, ZR
Bit
to BIN 32-bit data with sign, and stores the result at a device designated
S
S
BIN 16-bit data
[List Mode]
Step
H
( 1234)
Basic
DBL
DBLP
\
U
\G
Word
D
D
+1
Upper 16 bits
Lower 16 bits
BIN 32-bit data
Instruction
Device
High
Process
Redundant Universal
performance
S
D
S
D
Constants
Zn
K, H
––
LCPU
Other
––
––

Advertisement

Table of Contents
loading

Table of Contents