265
FX
3G
/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
Introdu
ction
2
Ov
ervi
ew
3
Instruction
Li
st
4
D
evices
in Det
ail
5
Specifi
ed the
De
vice
&
C
onst
ant
6
Bef
ore
Pr
og
ra
mmi
ng
7
Bas
ic
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
c
Operati
on
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