7.5 Data Processing Instructions
7.5.6 4-bit separation of 16-bit data
7-73
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
DIS
DIS
O
peration Error
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The range of n points from the device specified for
exceeds the corresponding device.
(Error code: 4101)
• The value of n is outside the range of 0 to 4.
(Error code: 4100)
Program Example
In the following program, the 16-bit data in Var_D0 are separated into 4-bit groups, and the
results are stored to the devices from D10 to D13 when X0 turns ON.
[Structured ladder]
[ST]
DISP(X0,Var_D0,4,D10);
[Operation]
d
b15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
b0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
D
10
b1
b2
b3
b
4
D
11
D
12
S
torage area
b15
1 1 0 0 1 0 0 1 0 1 0 1 0 0 0 1
b8
Var_D
0
b7
b12 b11
b
4
b3
b0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
D
13
Fille
d
w
ith
0
s
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: ......