View Full Version : Linear Scaling (Scale w/ Parameters)

Jeremy Kopicz
06-19-2013, 09:21 AM
This is to replace the NORM function block. These are functions.

The function will scale a process variable across a new range.
The example below scales a 0-10v input value to a 0-300 value. Reverse scaling and negative numbers are OK. Scaling will still be performed if the input/output value is outside the range of the min/max values.

nOut := SCP_INT( nInput, 0, 10000, 0, 300);