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]
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
57
4
968
D0
D21
57
4
968
.
321
D20
D23 D22
D21
21
4
7
4
836
4
9
.
22
D20
D23 D22
Convers
i
on
to
i
nteger
B
IN
va
l
ue
Convers
i
on
to
i
nteger
An
operat
i
on
erroe
occurs
because
the
spec
i
f
i
ed
data
i
s
l
arger
than
21
4
7
4
836
4
7
.
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
DBLP
DBL
S
D
D
S
DBLP
DBL
S
D
S
D
S
D
B
IN
32
-
b
i
t
data
L
ower
16
b
i
ts
U
pper
16
b
i
ts
B
IN
16
-
b
i
t
data
+
1
S
D
D
Step
Instruction
Device
F
B2
E
H
FFFFF
B2
E
H
D100
(
123
4)
R101
R100
(
123
4)