Mitsubishi Electric MELSEC FX3U Programming Manual page 282

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
2. 32-bit operation (DBIN and DBINP)
This instruction converts the binary-coded decimal (BCD) data of [
transfers the converted binary data to [
• The data of [
• The table below shows digit specification for [
Command
input
FNC 19
DBIN
[
S
+1,
K1X000
K2X000
K3X000
K4X000
K5X000
K6X000
K7X000
K8X000
Related instruction
Instruction
BCD (FNC 18)
Cautions
1. When using DSW (FNC 72) instruction
Because conversion between binary-coded decimal data and binary data is automatically executed in DSW
(FNC 72) instruction, BIN instruction is not required.
2. Handling of BCD inputs and outputs
Binary data is used in all operations in PLCs including arithmetic operations (+, −, × and ÷), increment and
decrement instructions.
• When receiving the digital switch information in the binary-coded decimal (BCD) format into a PLC, use
BIN (FNC 19) instruction for converting BCD data into binary data.
• When outputting data to the seven-segment display unit handling binary-coded decimal (BCD) data, use
BCD (FNC 18) instruction for converting binary data into BCD data.
Error
M8067 (operation error) turns ON when the source data is not binary-coded decimal (BCD).
280
+1,
] can be converted if it is within the range from 0 to 99,999,999 (BCD).
S
S
S
D
When "K8X000"
is specified
Number of digits
S
]
1
2
3
4
5
6
7
8
Converts binary (BIN) data into binary-coded decimal (BCD) data.
+1,
].
D
D
+1,
] and [
S
S
2
3
4
...
...
...
X034 X030 X024 X020 X014 X010 X004 X000
X037 X033 X027 X023 X017 X013 X007 X003
DBIN (FNC 19)
Data range
0 to 9
00 to 99
000 to 999
0000 to 9999
00000 to 99999
000000 to 999999
0000000 to 9999999
00000000 to 99999999
9 Move and Compare – FNC 10 to FNC 19
9.10 FNC 19 – BIN / Conversion to Binary
+1,
] into binary (BIN) data, and
S
S
+1,
].
D
D
5
6
7
8
...
...
...
...
PLC
Function
BCD
9
...
BIN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents