Mitsubishi Electric MELSEC FX3U Programming Manual page 279

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 (DBCD and DBCDP)
This instruction converts the binary (BIN) data of [
transfers the converted BCD data to [
• The data of [
• The table below shows digit specification for [
Command
input
FNC 18
DBCD
When "K8Y000" is specified
[
D
+1,
D
K1Y000
K2Y000
K3Y000
K4Y000
K5Y000
K6Y000
K7Y000
K8Y000
Related instruction
Instruction
BIN (FNC 19)
Cautions
1. When using SEGL (FNC 74) or ARWS (FNC 75) instruction
Because conversion between binary-coded decimal data and binary data is automatically executed in SEGL
(FNC 74) and ARWS (FNC 75) instructions, BCD 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.
Errors
In BCD or BCDP (16-bit type) instructions, an operation error occurs when the
range from 0 to 9999.
In DBCD or DBCDP (32-bit type) instructions, an operation error occurs when the
range from 0 to 99,999,999.
+1,
D
+1,
] can be converted if it is within the range from K0 to K99999999 (BCD).
S
S
S
D
Number of digits
]
1
2
3
4
5
6
7
8
Converts binary-coded decimal (BCD) data into binary (BIN) data.
9 Move and Compare – FNC 10 to FNC 19
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal
+1,
] into binary-coded decimal (BCD) data, and
S
S
].
D
+1,
] and [
S
S
PLC
DBCD (FNC 18)
...
...
...
...
Y034 Y030 Y024 Y020 Y014 Y010 Y004 Y000
Y037 Y033 Y027 Y023 Y017 Y013 Y007 Y003
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
Function
+1,
].
D
D
...
...
...
...
value is outside the
S
value is outside the
S
1
2
BIN
3
BCD
4
5
6
7
8
9
10
277

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents