Skip to main content

Example - Ladder Diagram

DBCDDA


The DBCDDA instruction converts an 8-digit binary coded decimal (BCD) value, S, into ASCII code. The conversion result is saved in 2 assigned DWORD data registers starting at the data register, D.

Ladder Diagram Example


When the contact, M5.0, is powered ON (1), the DBCDDA instruction converts the value of the two BCD data registers, D110 and D111, into ASCII code.



The result of the conversion is saved in four ASCII data registers, D113, D114, D115, and D116.

Memory Monitor

DBCDDAP


The BCDDAP one-shot instruction converts an 8-digit binary coded decimal (BCD) value, S, into ASCII code. The conversion result is saved in 2 assigned DWORD 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, M5.5, is powered ON (1), the DBCDDAP instruction converts the value of the two BCD data registers, D120 and D121, into ASCII code.



The result of the conversion is saved in four ASCII data registers, D123, D124, D125, and D126.

Memory Monitor