Topic: P120

Scale (Non-Linear) (SCLN) Instruction

Mnemonic (Keyboard Shortcut) = SCLN

Icon / Button =

Purpose

Scale a Non-Linear variable Input into a Non-Linear Output, using up to 16 Break Points.

Instruction Parameters

Parameter

Parameter Type

Requirements

Description

Enable

Ladder Input

Must Have

Level-driven.  When Enable is ON, the instruction will operate every scan.  When Enable is OFF, the instruction is not solved and it's outputs are not updated.

Input

Numerical Tag / Constant

Must Have

Input value to be Scaled.

Input
Value(s)

Numerical Tag / Constant

Must Have

Value for Input break points (up to 16 points).

Desired
Output(s)

Numerical Tag / Constant

Must Have

Scaled value for corresponding Input break point (up to 16 Outputs).

Output

Numerical Tag

Must Have

Scaled Output value.


Note: Each Input Value must have a Desired Output. Input Values may be positive or negative but must be increasing in value (low to high).  


Note: Tag Values are updated immediately as each Ladder Rung is executed, top to bottom.  However, Tag Values representing physical Outputs are only applied to the physical Output after the END statement of the last Task to be scanned is reached.  Outputs in Remote Base Groups have additional limitations regarding Update Intervals.


Instruction Configuration

When Scale Non-Linear Instruction is selected the window shown below opens.


Parameter Configuration Table

Scale Non-Linear
Instruction

(SCLN)

Notes

Input

 

 

Enter a Value or Tag to be Scaled.

Input Value

 

 

Enter a Value or Tag for each Input point value.

Desired Output

 

 

Enter a Value or Tag for each Output point value.

Output

 

   

Enter a Tag for Scaled Outputvalue.

Use Structure

                   

Select if Structures are used.


Application Example

Notice on the example chart provided below that inside each segment there is a Linear fit. The more Break Points a user provides, the more accurate the Output will be. However, notice that each segment is a straight line.


Rung Example