Skip to main content

Example - Ladder Diagram

DWDIV


The DWDIV instruction divides a DWORD dividend value, S1, by a DWORD divisor value, S2, and saves the quotient in an assigned DWORD data register, D.

Ladder Diagram Example


When the contact, M0.0, is powered ON, the DWORD data register, D2, is divided by the DWORD data register, D4, and the quotient is saved in the DWORD data register, D6.


Memory Monitor

DWDIVP


The DWDIVP one-shot instruction divides a DWORD dividend value, S1, by a DWORD divisor value, S2, and saves the quotient in an assigned DWORD data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact, M0.0, is powered ON, the DWORD data register, D2, is divided by the DWORD data register, D4, and the quotient is saved in the DWORD data register, D6.


Memory Monitor