Skip to main content

Example - Ladder Diagram

BINDA​


The BINDA instruction converts a WORD value, S, from decimal notation into ASCII code. The conversion result is saved in 3 assigned WORD data registers starting at the data register, D.

Ladder Diagram Example​


When the contact, M0.0, is powered ON (1), the BINDA instruction converts the binary data register, D0, into ASCII code.



The result of the conversion is saved in three ASCII data registers, D2, D3, and D4.

Memory Monitor​

BINDAP​


The BINDAP one-shot instruction converts a WORD value, S, from decimal notation into ASCII code. The conversion result is saved in 3 assigned WORD data registers starting at the data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example​


When the contact, M0.1, is powered ON (1), the BINDAP instruction converts the binary data register, D5, into ASCII code.



The result of the conversion is saved in three ASCII data registers, D7, D8, and D9.

Memory Monitor​