Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
263
FX3G/FX3U/FX3UC 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
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
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
2. Set data
3. Applicable devices
S: This function is supported only in FX3U/FX3UC 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
Real
Number
Charac-
ter String
Pointer
XYMTCSD.b KnX KnY KnM KnS T C D R U\G VZModifyKH E ""P
33333333 S 33 3
3333333 S 33 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
Mnemonic Operation Condition
16-bit Instruction
5 steps
BIN
BINP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
9 steps
Continuous
Operation
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
BIN (FNC 19)
PLC
BCD
BIN
9786
S
D
When "K4X000"
is specified
…………
Command
input
S