Scaling with an Offset using PanelView Component

gbradley

Lifetime Supporting Member
Join Date
Apr 2002
Location
Corona, Ca.
Posts
1,637
Can someone explain if there is a way to scale with an offset using the C400 component? (2711C-T4T)

In the regular Panelview Standard the scaling is done in the Tag with a place to put the scaling factor as well as an offset number.
The Component Tag has a place for Raw units and Scaled units with Min and a Max, but I don't see an Offset.
attachment.php


attachment.php


C400Scale.jpg TagScaled.jpg
 
The Component Tag has a place for Raw units and Scaled units with Min and a Max, but I don't see an Offset.
Given the four values (Input Min, Input Max, Scaled Min, Scaled Max) then the Offset can be calculated internally and used in the scaling function without ever being entered by the operator. Here are the basic scaling equations. See how the Offset is a combination of the 4 basic parameters.

Scaled Value = Input Value X Slope + Offset
Slope = (Scaled Max - Scaled Min) / (Input Max - Input Min)
Offset = Scaled Min - (Input Min X Slope)

Therefore, Offset = Scaled Min - [Input Min X (Scaled Max - Scaled Min) / (Input Max - Input Min)]
 
Last edited:
Given the four values (Input Min, Input Max, Scaled Min, Scaled Max) then the Offset can be calculated internally and used in the scaling function without ever being entered by the operator. Here are the basic scaling equations. See how the Offset is a combination of the 4 basic parameters.

Scaled Value = Input Value X Slope + Offset
Slope = (Scaled Max - Scaled Min) / (Input Max - Input Min)
Offset = Scaled Min - (Input Min X Slope)

Therefore, Offset = Scaled Min - [Input Min X (Scaled Max - Scaled Min) / (Input Max - Input Min)]
Sorry, but I can't wrap my head around this.
Can you restate this with some simple numbers as examples.
Thanks
 
I think I got it.
Code:
             RawMin   RawMax   ScaledMin   ScaledMax 
               178      4095     10.40424   19.2997737       
  Slope=   0.002271         
  Offset   10

Thanks
 
That is correct. It is nothing more than the old equation for a straight line in the X-Y coordinate system, y = mx + b, that you learned in high-school math. Dig up an old math book for further study.
 

Similar Topics

i have studio 5000 v 24 and the processor is the L75, what i am trying to do is omit the ph controllers we use for waste water treatment. The new...
Replies
0
Views
3,255
Hi, having some issues with scalings (SCP commands) with some Vegapuls 65 guided wave radar level transmitters. I've set the min/max in the...
Replies
1
Views
50
I want to measure the tank level and get the sensor output to the PLC. Below are the details : Tank Height =0 - 3m, the sensor is stalled 0,2m...
Replies
15
Views
599
Hi, I have a ControlLogix system with 1756-IF16 analogue inputs. I can't scale the inputs at the card as there is a requirement to facilitate...
Replies
14
Views
350
I know nothing about simaticnet OPC server. I do know Kepware. I would only ever scale raw to engineering in the PLC, but it is possible to scale...
Replies
5
Views
217
Back
Top Bottom