Skip to main content

Example - Ladder Diagram

DADD


The DADD instruction adds a DWORD value, S1, to a DWORD value, S2, and saves the sum in an assigned DWORD data register, D.

Ladder Diagram Example


When M0.0 is powered ON, the data register DWORD data register, D3, is added to the data register DWORD data register, D5, and the sum saved in the DWORD data register, D7.


Memory Monitor

DADDP


The DADDP one-shot instruction adds a DWORD value, S1, to a DWORD value, S2, and saves the sum in an assigned DWORD data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When M0.0 is powered ON, the data register DWORD data register, D3, is added to the data register DWORD data register, D5, and the sum saved in the DWORD data register, D7.


Memory Monitor