Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | – | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| D | ✓ | – | ✓ | ✓ | ✓ | – | ✓ | ✓ | – | ✓ | ✓ | ✓ | ✓ | ✓ | – |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | ✓ |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 3 |
Operands
| Operand | Description |
|---|---|
| S | The 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. |
| D | The 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 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) notation. The value of the conversion, 610,804,840, is saved in the 8-digit binary-coded decimal data register, D13.

Memory Monitor

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 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) notation. The value of the conversion, 305,436,790, is saved in the 8-digit binary-coded decimal data register, D18.

Memory Monitor

