Skip to main content

Example - Ladder Diagram

EPWR​


The EPWR instruction raises the base REAL value, S1, to the exponent REAL value, S2, and saves the power in an assigned REAL data register, D.

Ladder Diagram Example​


When the contact, M0.5, is powered ON, the REAL data register, D15, is raised to the power of the REAL data register, D17, and the power is saved in the REAL data register, D19.


Memory Monitor​

EPWRP​


The EPWRP one-shot instruction raises the base REAL value, S1, to the exponent REAL value, S2, and saves the power in an assigned REAL data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example​


When the contact, M0.5, is powered ON, the REAL data register, D15, is raised to the power of the REAL data register, D17, and the power is saved in the REAL data register, D19.


Memory Monitor​