242
DBL, DBLP
[Operation]
: BIN 16-bit data or head number of the devices where the BIN 16-bit data is stored (BIN 16 bits)
:
Head number of the devices where the converted BIN 32-bit data will be stored (BIN 32 bits)
Function
Converts BIN 16-bit data at device designated by to BIN 32-bit data with sign, and stores the result at a device designated
by .
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] [List Mode]
[Operation]
6.3.7 DBL, DBLP Conversion from BIN 16-bit to BIN 32-bit data
6.3.7
DBL, DBLP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
D1
574968
D0
D21
574968.321
D20D23
D22
D21
2147483649.22
D20D23 D22
Conversion to integer
BIN value
Conversion to integer
An operation erroe occurs because the
specified data is larger than 2147483647.
64-bit floating-point real number
64-bit floating-point real number
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
DBLP
DBL
S D
DS
DBLP
DBL
S
D
S
D
S
D
BIN 32-bit data
Lower 16 bitsUpper 16 bitsBIN 16-bit data
+1
S DD
Step
Instruction
Device
FB2E
H
FFFFFB2E
H
D100
( 1234)
R101 R100
( 1234)