7-72
7.5 Data Processing Instructions
7.5.6 4-bit separation of 16-bit data
DIS
7.5.6
4-bit separation of 16-bit data
DIS
Function
(1) Stores the lower n digits (1 digit is 4 bits) of the 16-bit data specified for
to the lower 4 bits
n points from the device specified for
.
(2) The upper 12 bits n points from the device specified for
become 0.
(3) The value of n can be specified between 1 and 4.
(4) If n 0, there will be no processing, and the contents of n points from
will not change.
DIS(P)
P: Executing condition
:
indicates any of the following
instructions.
DIS
DISP
Input argument,
EN:
Executing condition
:Bit
s:
Start number of the device that stores data to be separated
:ANY16
n:
Number of separations (1 to 4), no processing on 0
:ANY16
Output argument,
ENO:
Execution result
:Bit
d:
Start number of the device that stores separated data
:ANY16
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
n
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
D
IS
EN
ENO
s
d
n
D
IS
(EN,
s
,
n
, d);
ENO:=
s
d
s
d
b0
b3
b7
b4
b11 b8
b4
b15
b0
b3
n
Fill
e
d wi
th
0
s
S
torage
area
b12
b15
d
s
d
d
d
+1
+2
+3
d
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......