The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant
S
D

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
3

Operands

OperandDescription
SThe first operand.
Entries are DWORD data registers or constants.

The sign and unsigned value range is 0 ~ 99,999,999.
The Hexadecimal value range is 0 ~ H05F5E0FF.
DThe second operand.
Entries are only 8-digit binary-coded decimal (BCD) data registers.
This is where the conversion is saved.

Notice

Error Flag (F11.0) Notice

The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type. F11.0 turns ON when the value of the data for converting S to an 8-digit binary coded decimal (BCD) value exceeds the value range of the data register D.

Ladder Diagram Examples

DBCD

The DBCD instruction converts a WORD value, S, into an 8-digit binary coded decimal (BCD) value. The conversion result is saved in an assigned 8-digit

The DBCD instruction converts a WORD value, S, into an 8-digit binary coded decimal (BCD) value. The conversion result is saved in an assigned 8-digit binary coded decimal (BCD) data register, D.

When the contact, M0.2, is powered ON (1), the value of the WORD data register, D10, 24,682,468, is converted into 8-digit binary-coded decimal (BCD)

When the contact, M0.2, is powered ON (1), the value of the WORD data register, D10, 24,682,468, is converted into 8-digit binary-coded decimal (BCD) notation. The value of the conversion, 610,804,840, is saved in the 8-digit binary-coded decimal data register, D13.

Ladder Diagram Example for MapleLogic DBCD/DBCDP instruction.

Memory Monitor

Memory Monitor for MapleLogic DBCD/DBCDP instruction.

DBCDP

The DBCDP one-shot instruction converts a WORD value, S, into an 8-digit binary coded decimal (BCD) value. The conversion result is saved in an assign

The DBCDP one-shot instruction converts a WORD value, S, into an 8-digit binary coded decimal (BCD) value. The conversion result is saved in an assigned 8-digit binary coded decimal (BCD) data register, D. Every time this instruction executes, it energizes the output only once.

When the contact, M0.3, is powered ON (1), the value of the WORD data register, D15, 12,349,876, is converted into 8-digit binary-coded decimal (BCD)

When the contact, M0.3, is powered ON (1), the value of the WORD data register, D15, 12,349,876, is converted into 8-digit binary-coded decimal (BCD) notation. The value of the conversion, 305,436,790, is saved in the 8-digit binary-coded decimal data register, D18.

Ladder Diagram Example for MapleLogic DBCD/DBCDP instruction.

Memory Monitor

Memory Monitor for MapleLogic DBCD/DBCDP instruction.