Skip to main content

Example - Ladder Diagram

PWR


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

Ladder Diagram Example


When the contact, M0.5, is powered ON, the WORD data register, D0, is raised to the power of the WORD data register, D2, and the power is saved in the DWORD data register, D4.


Memory Monitor

PWRP


The PWRP one-shot instruction raises the base WORD value, S1, to the exponent WORD value, S2, and saves the power in an assigned WORD 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 WORD data register, D8, is raised to the power of the WORD data register, D10, and the power is saved in the DWORD data register, D14.


Memory Monitor