Справочник Пользователя для Mitsubishi Electronics QCPU
6-88
DBL(P)
6.3.7
Conversion from BIN 16-bit to BIN 32-bit data (DBL(P))
DBL(P)
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 are no errors associated with 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]
[Ladder Mode]
[List Mode]
[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)
Setting
Data
Internal Devices
R, ZR
J
\
U
\G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
Basic
Process
High
performance
Redundant Universal
Command
Command
DBLP
DBL
S
D
D
S
DBLP
DBL
S
D
S
D
S
D
BIN 32-bit data
Lower 16 bits
Upper 16 bits
BIN 16-bit data
+1
S
D
D
Step
Instruction
Device
FB2E
H
FFFFFB2E
H
D100
( 1234)
R101
R100
( 1234)