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 4-digit binary-coded decimal (BCD) data registers or constants.

The 4-digit binary-coded decimal range (BCD) is H0000 ~ H9999 (BCD).
DThe second operand.
Entries are only unsigned WORD 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 a 4-digit binary coded decimal exceeds the value range of the data register D.

Ladder Diagram Examples

BIN

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

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

When the contact, M1.0, is powered ON (1), the value of the 4-digit binary-coded decimal (BCD) data register, D20, 34,661, is converted into unsigned

When the contact, M1.0, is powered ON (1), the value of the 4-digit binary-coded decimal (BCD) data register, D20, 34,661, is converted into unsigned binary notation. The value of the conversion, 8,765, is saved in the unsigned WORD data register, D22.

Ladder Diagram Example for MapleLogic BIN/BINP instruction.

Memory Monitor

Memory Monitor for MapleLogic BIN/BINP instruction.

BINP

The BINP one-shot instruction converts a 4-digit binary coded decimal (BCD) value, S, into an unsigned binary WORD value. The conversion result is sav

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

When the contact, M1.1, is powered ON (1), the value of the 4-digit binary-coded decimal (BCD) data register, D25, 9,557, is converted into unsigned b

When the contact, M1.1, is powered ON (1), the value of the 4-digit binary-coded decimal (BCD) data register, D25, 9,557, is converted into unsigned binary notation. The value of the conversion, 2,555, is saved in the unsigned WORD data register, D27.

Ladder Diagram Example for MapleLogic BIN/BINP instruction.

Memory Monitor

Memory Monitor for MapleLogic BIN/BINP instruction.