Skip to main content

Example - Ladder Diagram

SCL


The SCL instruction scales n number of WORD 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 WORD data registers starting at D.

Ladder Diagram Example


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


Result

SCLP


The SCLP one-shot instruction scales n number of WORD 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 WORD 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 6 REAL data registers starting at D40 by the data register, D60, and saves the result in the data register, D70.


Result