Skip to main content

Example - Ladder Diagram

DCML


The DCML instruction inverts every bit in the DWORD value, S, and saves the inversion in an assigned DWORD data register, D.

Ladder Diagram Example


When the contact, M0.0, is powered ON (1), the instruction inverts the bits in the DWORD data register, D8, and saves the result in the data register, D11.


Memory Monitor

DCMLP


The DCMLP one-shot instruction inverts every bit in the DWORD value, S, and saves the inversion 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.1, is powered ON (1), the instruction inverts the bits in the DWORD data register, D15, and saves the result in the data register, D18.


Memory Monitor