12Fnc18 (Bcd): Bcd Conversion; 13Fnc19 (Bin): Bin Conversion - Mitsubishi FX2N-10GM Hardware / Programming Manual

Melsec-f
Hide thumbs Also See for FX2N-10GM:
Table of Contents

Advertisement

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
BCD
BIN
D 12
K2Y00
BIN
BCD
BIN conversion
16-bit operation
BIN
5 steps
Word
K,H
KnX
KnY
Drive
input
FNC 19
BCD
BCD
K2X00
D 13
BCD
BCD
BIN
32-bit operation
[D]BCD
8 steps
KnM
D
V,Z
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
KnM
D
V,Z
The BCD data
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
is converted into BCD data
.
Applicable models
Series name
FX
-10GM
2N
FX
(E)-20GM
2N
is converted into binary
.
5-55
Remarks
Remarks

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-20gm

Table of Contents