517
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.4 FNC143 – UNI / 4-bit Linking of Word Data
11
FN
C30-
FN
C39
R
o
ta
tion and
Sh
ift
12
FNC
4
0
-FNC49
D
a
ta
Op
e
ra
tio
n
13
FNC5
0
-FNC5
9
H
igh Speed
Pr
ocessi
ng
14
FM
C6
0
-F
NC6
9
H
and
y
In
st
ru
cti
o
n
15
FNC7
0
-FNC7
9
Ex
te
rn
a
l F
X
I
/O
D
evi
ce
16
FNC8
0
-FNC8
9
Ext
e
rnal
FX
D
evi
ce
17
F
N
C1
00
-F
NC
10
9
Da
ta
Tr
ansf
e
r 2
18
FN
C
110-FN
C
13
9
Fl
oat
ing P
o
in
t
19
FN
C
140-FN
C
149
Da
ta
O
per
at
io
n
2
20
FN
C
15
0-F
N
C
159
P
o
si
tioni
ng
C
ont
ro
l
3) In the case of "1
≤
n
≤
3", the high-order {4
×
(4-n)} bits of
are set to "0".
For example, when "n" is "3", the low-order 4 bits of
to
+2 are stored in b0 to b11 of
,
and the high-order 4 bits of
are set to "0".
Related instruction
Errors
An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored
in D8067.
• When
to
+n are outside the specified device range (error code: K6706)
• When "n" is outside the range from "0 to 4" (error code: K6706)
Program example
In the program below, the low-order 4 bits of D0 to D2 are combined and stored in D10 when X000 turns ON.
Instruction
Description
DIS (FNC144)
Separates 16-bit data in units of 4 bits.
D
S
S
D
D
Low-order 4 bits
Low-order 4 bits
Low-order 4 bits
b15
b4 b3
b0
S
+0
+1
+2
Ignored
D
Combined data
b15
b12b11
b8 b7
b4 b3
b0
When "n" is "3", they
are set to "0".
0 0 0 0
S
S
b15
b4 b3
b0
D0
D1
D2
D10
b15
b12b11
b4 b3
b0
Combined data
1
0
0
0
1
0
1
0
1
0
0
1
0
0
0
0
1
0
0
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
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
Because "n" is "K3",
they are set to "0".