Results 1 to 1 of 1

Thread: Linear Scaling (Scale w/ Parameters)

  1. #1
    Join Date
    Aug 2009
    Location
    ifm Exton, PA
    Posts
    196

    Default Linear Scaling (Scale w/ Parameters)

    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);
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •