Example - Ladder Diagram
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 assigned unsigned WORD data register, D.
Ladder Diagram Example
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.
Memory Monitor
![]()
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 saved in an assigned unsigned WORD data register, D.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
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.
Memory Monitor
![]()