Conversion From Bin 16-Bit To Bin 32-Bit Data (Dbl(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6.3.7

Conversion from BIN 16-bit to BIN 32-bit data (DBL(P))

DBL(P)
DBL
DBLP
Setting
Data
S
D
Function
Converts BIN 16-bit data at device designated by
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]
[Operation]
D100
FB2E
( 1234)
Command
Command
: 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
Internal Devices
R, ZR
Bit
Word
.
D
S
BIN 16-bit data
R101 R100
FFFFFB2E
H
H
( 1234)
High
Basic
performance
DBL
DBLP
J
\
U
\G
Bit
Word
to BIN 32-bit data with sign, and stores the
S
D
+1
D
Upper 16 bits
Lower 16 bits
BIN 32-bit data
[List Mode]
Instruction
Step
DBL(P)
Process
Redundant Universal
LCPU
S
D
S
D
Constants
Zn
Other
K, H
––
––
––
Device
6-89
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents