Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G User Manual
263
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.10 FNC 19 – BIN / Conversion to Binary
1
In
trodu
ct
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion
Li
st
4
D
evices
in D
etail
etail
5
Specifi
ed t
he
he
D
evice &
C
onst
ant
ant
6
Bef
ore
ore
Pr
ogr
am
am
m
ing
7
B
asic
In
st
ru
ct
ion
8
FNC0
0-F
0-F
NC0
9
Pr
ogr
am
Flow
am
Flow
9
FN
C
C
10-FN
C
19
Mo
ve
ve
&
Co
mp
are
are
10
FNC2
0-F
0-F
NC2
9
Ar
ith.
&
&
Logic
O
per
ati
ati
on
9.10
FNC 19 – BIN / Conversion to Binary
Outline
This instruction converts binary-coded decimal (BCD) data into binary (BIN) data.
Use this instruction to convert a binary-coded decimal (BCD) value such as a value set by a digital switch into binary
(BIN) data and to receive the converted binary data so that the data can be handled in operations in PLCs.
Use this instruction to convert a binary-coded decimal (BCD) value such as a value set by a digital switch into binary
(BIN) data and to receive the converted binary data so that the data can be handled in operations in PLCs.
1. Instruction format
2. Set data
3. Applicable devices
S: This function is supported only in FX
3U
/FX
3UC
PLCs.
Explanation of function and operation
1. 16-bit operation (BIN and BINP)
This instruction converts the binary-coded decimal (BCD) data of
into binary (BIN) data, and transfers the
converted binary data to
.
• The data of
can be converted if it is within the range from K0 to K9999 (BCD).
• The table below shows digit specification for
and
.
Operand Type
Description
Data Type
Word device number storing the conversion source (binary-coded decimal) data
16- or 32-bit binary
Word device number of the conversion destination (binary)
16- or 32-bit binary
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modify K H
E
"
"
P
3
3
3
3
3 3 3 3
S
3 3
3
3
3
3
3 3 3 3
S
3 3
3
Number of digits
Data range
K1X000
1
0 to 9
K2X000
2
00 to 99
K3X000
3
000 to 999
K4X000
4
0000 to 9999
DBIN
DBINP
DBINP
Mnemonic
Operation Condition
16-bit Instruction
5 steps
BIN
BINP
BINP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Pulse (Single)
Operation
32-bit Instruction
9 steps
Continuous
Operation
Pulse (Single)
Pulse (Single)
Operation
P
FNC 19
BIN
D
S
D
S
D
S
D
S
S
D
FNC 19
BIN
X014 X010 X004 X000
X017 X013 X007 X003
X017 X013 X007 X003
BIN (FNC 19)
PLC
BCD
BIN
9
7
8
6
S
D
When "K4X000"
is specified
is specified
…
…
…
…
Command
input
S