6 BASIC INSTRUCTIONS
6.3 Data Conversion Instructions
281
6
Conversion from BIN 16-bit to BIN 32-bit data
DBL(P)
• Converts BIN 16-bit data at device designated by (S) to BIN 32-bit data with sign, and stores the result at a device
designated by (D).
• There is no operation error in the DBL(P) instruction.
• 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.
(S): BIN 16-bit data or head number of the devices where the BIN 16-bit data is stored (BIN 16 bits)
(D): Head number of the devices where the converted BIN 32-bit data will be stored (BIN 32 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S)
(D)
[Ladder Mode] [List Mode]
[Operation]
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
DBLP
DBL
S D
DS
DBLP
DBL
BIN 32-bit data
Lower 16 bitsUpper 16 bitsBIN 16-bit data
+1
S DD
FB2E
H
FFFFFB2E
H
D100
( 1234)
R101 R100
( 1234)