563
FX
3G
/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
FNC3
0-F
NC3
9
R
otati
on and
Shif
t
12
FNC4
0-F
NC4
9
D
ata
O
per
ati
on
13
FN
C
50-FN
C
59
H
igh Speed
Pr
ocess
ing
14
FM
C
60-
FN
C
69
H
andy
In
st
ru
ct
ion
15
FNC7
0-F
N
C7
9
Ex
ter
nal
FX
I/O
D
evice
16
FN
C
80-FN
C
89
Ext
ernal FX
De
vic
e
17
FN
C
100-
FN
C
109
Da
ta
Transf
er 2
18
FN
C
110-
FN
C
139
Fl
oati
ng Poi
nt
19
FN
C
140
-F
N
C
14
9
Da
ta
O
per
ati
on 2
20
FN
C
150-
FN
C
159
Posit
ioning
C
ontr
ol
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 4-bit units.
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", b12
to b15 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".
X000
FNC143
UNIP
D0
D10
K3
END