7.5 Data Processing Instructions
7.5.7 4-bit connection of 16-bit data
7-75
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
UNI
UNI
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 lower 4 bits of the devices from D0 to D2 are connected when X0
turns ON, and they are stored to Var_D10.
[Structured ladder]
[ST]
UNIP(X0,D0,3,Var_D10);
[Operation]
s
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
0
b1
b2
b3
b
4
D
1
D
2
Lin
k
e
d
d
ata
b15
0 0 0 0 1 0 0 1 0 1 0 1 0 0 0 1
b8
b0
Var_D
10
b7
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......