241
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
Program examples
1. When the seven-segment display unit has 1 digit
2. When the seven-segment display unit has 2 to 4 digits
3. When the seven-segment display unit has 5 to 8 digits
FNC 18
BCD
D0
K1Y000
X000
PLC
FNC 18
BCD
D0
K2Y000
X000
PLC
Output
destination
In the case of 2 digits: K2
In the case of 3 digits: K3
In the case of 4 digits: K4
K4
K3
K2
K1
FNC 18
DBCD
D0
K5Y000
X000
Output
destination
In the case of 5 digits: K5
In the case of 6 digits: K6
In the case of 7 digits: K7
In the case of 8 digits: K8
D1,D0
PLC
K4
K3
K2
K1
K8
K7
K6
K5