Example - Ladder Diagram
BCDDA
The BCDDA instruction converts a 4-digit binary coded decimal (BCD) value, S, into ASCII code. The conversion result is saved in 2 assigned WORD data registers starting at the data register, D.
Ladder Diagram Example
When the contact, M4.0, is powered ON (1), the BCDDA instruction converts the value of the BCD data register, D100, into ASCII code.
The result of the conversion is saved in two ASCII data registers, D102 and D103.
Memory Monitor
![]()
BCDDAP
The BCDDAP one-shot instruction converts a 4-digit binary coded decimal (BCD) value, S, into ASCII code. The conversion result is saved in 2 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, M4.5, is powered ON (1), the BCDDAP instruction converts the value of the BCD data register, D105, into ASCII code.
The result of the conversion is saved in two ASCII data registers, D107 and D108.
Memory Monitor
![]()