Skip to main content

Example - Ladder Diagram

DNEG


The DNEG instruction negates a DWORD value, D, and saves the result in the same assigned DWORD data register, D.

Ladder Diagram Example


When the contact, M3.0, is powered ON (1), the value of the data register, D70, -2,020,202,020, is negated.
The value of the negation, 2,020,202,020, is saved in the same data register, D70.


Memory Monitor

DNEGP


The DNEGP one-shot instruction negates a DWORD value, D, and saves the result in the same assigned DWORD data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact, M3.1, is powered ON (1), the value of the data register, D75, 987,654,321, is negated.
The value of the negation, -987,654,321, is saved in the same data register, D75.


Memory Monitor