Skip to main content

Example - Ladder Diagram

DBINDAP


The DABIN instruction converts 3 WORD data registers, S, from ASCII code to binary decimal notation. The conversion result is saved in an assigned WORD data register, D.

Ladder Diagram Example


When the contact, M1.0, is powered ON (1), the DABIN instruction converts three ASCII data registers, D15, D16, and D17, into binary.



The result of the conversion is saved in the WORD data register, D19.

Memory Monitor

DBINDAP


The DABINP one-shot instruction converts 3 WORD data registers, S, from ASCII code to binary decimal notation. The conversion result is saved in an assigned 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 DABINP instruction converts three ASCII data registers, D25, D26, and D27, into binary.



The result of the conversion is saved in the WORD data register, D29.

Memory Monitor