Rockwell Automation 2707-NP2 MICROVIEW SOFTWARE PROGRAMMING MANUAL User Manual

Page 25

Advertising
background image

Publication 2707-PM002B-EN-P

Designing Microview Applications 3-5

Scaling Formulas

The scaling formula for a MicroView display value is:

The scaling formula for an entered valued is:

Displayed Value = m x Register Value + b

Where:

Display Maximum Value - Display Minimum Value

Register Maximum Value - Register Minimum Value

Display Maximum Value - Display Minimum Value - (m x Register Minimum Value)

m =

b =

Register Value = m x Entered Value + b

Where:

Register Maximum Value - Display Minimum Value

Entry Maximum Value - Entry Minimum Value

Register Minimum Value - Entry Minimum Value - (m x Entry Minimum Value)

m =

b =

Register Range = 0 to 4,095
Display Range = -100 to +300
Actual Register Value = 2,047

m =

300 - (-100)

4,095 - 0

= 0.0977

b =

-100 - (0.0977 x 0) = -100

Displayed Value = 0.0977 x 2,047 + (-100)

= 99.9919
= 100

Scaling Example:

Advertising