Example - Ladder Diagram
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.
Ladder Diagram Example
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.
Ladder Diagram Example
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
![]()