FX Series Positioning Controllers
5.10.12 FNC18 (BCD): BCD conversion
FNC 18
BCD
BINARY CODED
TO DECIMAL
devices
Applicable
devices
and basic
format
X26
FNC 18
BCD
• The BCD instruction is not executed if the BCD conversion result is outside 0 to 9,999.
The [D] BCD instruction is not executed if the BCD conversion result is outside 0 to
99,999,999.
• The BCD instruction is used to convert binary data in the positioning unit into BCD data (for
7-segment display, etc.) to be output to external equipment.
5.10.13 FNC19 (BIN): BIN conversion
FNC 19
BCD
BINARY
devices
Applicable
devices
and basic
format
X27
FNC 19
• The BIN instruction is used to fetch digital switch set value (BCD data) to the positioning
unit. When the source data is not BCD, this instruction is not executed.
• Constant K is automatically converted into the BIN code and treated.
There is no necessity for using this instruction.
BCD conversion
16-bit operation
BCD
5 steps
Word
K,H
KnX
KnY
Drive
input
FNC 18
S·
BCD
BIN
D 12
K2Y00
BIN
BCD
BIN conversion
16-bit operation
BIN
5 steps
Word
K,H
KnX
KnY
Drive
input
FNC 19
S·
BCD
BCD
K2X00
D 13
BCD
BCD
BIN
32-bit operation
[D]BCD
8 steps
S·
KnM
D
V,Z
D·
•
D·
The binary data
and transmitted to
BCD
·
When X26 is turned ON, D12 (binary data) is converted
into BCD and transmitted to Y0 to Y7.
32-bit operation
[D]BIN
8 steps
S·
KnM
D
V,Z
D·
•
The BCD data
D·
data and transmitted to
BIN
·
When X27 is turned ON, BCD data in X00 to X07 is
converted into binary and transmitted to D13.
Program format 5
Applicable models
Series name
FX
-10GM
2N
FX
-20GM
2N
S·
is converted into BCD data
D·
.
Applicable models
Series name
FX
-10GM
2N
FX
(E)-20GM
2N
S·
is converted into binary
D·
.
5-55
Remarks
Remarks