Example - Ladder Diagram
BADD
The BADD instruction adds a 4-digit binary-coded decimal (BCD) value, S1, to a 4-digit binary-coded decimal (BCD) value, S2, and saves the sum in an assigned 4-digit binary-coded decimal (BCD) data register, D.
Ladder Diagram Example
When M0.0 is powered ON, the 4-digit binary-coded decimal (BCD) data register, D2, is added to the 4-digit binary-coded decimal (BCD) data register, D3, and the sum saved in the 4-digit binary-coded decimal (BCD) data register, D4.
Memory Monitor
![]()
BADDP
The BADDP one-shot instruction adds a 4-digit binary-coded decimal (BCD) value, S1, to a 4-digit binary-coded decimal (BCD) value, S2, and saves the sum in an assigned 4-digit binary-coded decimal (BCD) data register, D.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When M0.0 is powered ON, the 4-digit binary-coded decimal (BCD) data register, D2, is added to the 4-digit binary-coded decimal (BCD) data register, D3, and the sum saved in the 4-digit binary-coded decimal (BCD) data register, D4.
Memory Monitor
![]()