Skip to main content

Example - Ladder Diagram

ESCL


The ESCL instruction scales n number of REAL data registers starting from the data register, S, on a linear function defined by the data table, P. The scaled data is saved into n number of REAL data registers starting at D.

Ladder Diagram Example


When the contact, M0.1, is powered ON (1), the instruction scales 3 REAL data registers starting at D0 by the data register, D30, and saves the result in the data register, D20.


Result

ESCLP


The ESCLP one-shot instruction scales n number of REAL data registers starting from the data register, S, on a linear function defined by the data table, P. The scaled data is saved into n number of REAL data registers starting at 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 scales 3 REAL data registers starting at D0 by the data register, D30, and saves the result in the data register, D20.


Result