Fnc 19 - Bin / Conversion To Binary - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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.
1. Instruction format
FNC 19
D
BIN
P
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (BIN and BINP)
This instruction converts the binary-coded decimal (BCD) data of
the converted binary data to
• The data of
• The table below shows digit specification for
Command
input
FNC 19
BIN
S
K1X000
K2X000
K3X000
K4X000
Mnemonic
16-bit Instruction
BIN
5 steps
BINP
Word device number storing the conversion source (binary-coded decimal) data
Word device number of the conversion destination (binary)
Digit Specification
/FX
3U
.
D
can be converted if it is within the range from K0 to K9999 (BCD).
S
S
D
When "K4X000"
is specified
Number of digits
1
2
3
4
9 Move and Compare – FNC 10 to FNC 19
9.10 FNC 19 – BIN / Conversion to Binary
Operation Condition
32-bit Instruction
Continuous
9 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Index
Unit
V Z Modify K H
PLCs.
3UC
S
and
.
S
D
6
7
8
9
...
...
...
X014 X010 X004 X000
X017 X013 X007 X003
BIN (FNC 19)
PLC
Data range
0 to 9
00 to 99
000 to 999
0000 to 9999
Mnemonic
Operation Condition
DBIN
Continuous
Operation
DBINP
Pulse (Single)
Operation
Data Type
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
into binary (BIN) data, and transfers
BCD
...
BIN
1
2
3
4
5
Pointer
P
6
7
8
9
10
279

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents