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 8-digit binary-coded decimal (BCD) data registers or constants. The 8-digit binary-coded decimal range (BCD) is H00000000 ~ H99999999 (BCD) |
| D | The second operand. Entries are only unsigned DWORD 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 from an 8-digit binary coded decimal exceeds the value range of the data register D.
Ladder Diagram Examples
DBIN

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

When the contact, M1.3, is powered ON (1), the value of the 8-digit binary-coded decimal (BCD) data register, D30, 2,560,137,336, is converted into unsigned binary notation. The value of the conversion, 882,486, is saved in the unsigned WORD data register, D33.

Memory Monitor

DBINP

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

When the contact, M1.5, is powered ON (1), the value of the 8-digit binary-coded decimal (BCD) data register, D35, 1,182,872,134, is converted into unsigned binary notation. The value of the conversion, 544,830, is saved in the unsigned WORD data register, D38.

Memory Monitor

