Skip to main content

Example - Ladder Diagram

DSCL​


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

Ladder Diagram Example​


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


Result​

DSCLP​


The DSCLP one-shot instruction scales n number of DWORD 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 DWORD 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 D40 by the data register, D60, and saves the result in the data register, D70.


Result​