Skip to main content

Example - Ladder Diagram

ESUB


The ESUB instruction subtracts a REAL value, S2, from a REAL value, S1, and saves the difference in an assigned REAL data register, D.

Ladder Diagram Example


When M0.1 is powered ON, the REAL data register, D11, is subtracted from the REAL data register, D9, and the difference is saved in the REAL data register, D13.


Memory Monitor

ESUBP


The ESUBP one-shot instruction subtracts a REAL value, S2, from a REAL value, S1, and saves the difference in an assigned REAL data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When M0.1 is powered ON, the REAL data register, D11, is subtracted from the REAL data register, D9, and the difference is saved in the REAL data register, D13.


Memory Monitor