Phoenix Contact 2701399 NLC-START-01 NANOLINE STARTER KIT NPN-TRANSISTOR 2701399 Ficha De Dados

Códigos do produto
2701399
Página de 184
2373_en_B
PHOENIX CONTACT
C-1
C  Technical Appendix – Analog Device Scaling
This appendix describes the scaling formula and shows examples of scaling provided by 
analog devices on the nanoLC.
These are sample values.  Your values may be slightly different or exactly the same based 
on the input device type.
C 1
Scaling Formula
Adding scaling to the inputs differs from the “No Scaling Applied” table.  Scaling is applied 
to each input with the default being 0-4095.  The base firmware will calculate the new integer 
values based on the scaling applied.
Variable names:
”LowScale” is the value entered as "Scaling Lower Value". This is the scaled value that 
equates to the low limit of the range (i.e. reading 0 V for a 0-10 V range)
“HighScale” is the value entered as "Scaling Upper Value". This is the scaled value that 
equates to the high limit of the range (i.e. reading 10 V for a 0-10 V range)
DataValue = Value read from the analog module - This value is always in the range of 
0 to 4095 (0 for low limit of range and 4095 for high limit of range)
To illustrate the formula with an example, assume that “DataValue” with no scaling and a 5 V 
input provides an “ActualDataValue” of 2048. A “DataValue” with 0 to 1000 scaling and a 5 V 
input provides a “ScaledDataValue’ of 500.  
The formula for the “ScaledDataValue” is:
 ScaledData Value = ((( HighScale - LowScale) * DataValue) / 4096) + LowScale
 For e
xample:
 If “LowScale” = 0 and “HighScale” = 100 and “DataValue” = 1024  (i.e. reading 2.5 Von a 
0-10 V range), 
ScaledDataValue = ((( 100 - 0) * 1024) / 4096) + 0 = 25 
 
 If “LowScale” = 1000 and HighScale = 10000 and DataValue = 1024  (i.e. reading 2.5v on 
a 0-10v range)
ScaledDataValue = ((( 10000 -1000) * 1024) / 4096) + 1000 = 3250 
 
If “LowScale” = 100 and “HighScale” = 0 and “DataValue” = 1024  (i.e. reading 2.5 V on a 
0-10 V range)
ScaledDataValue = ((( 0 - 100) * 1024) / 4096) + 100 = 75
Voltage values were read with a Fluke digital volt meter with voltages applied by a 0 –10 
volt potentiometer. Current values were applied with a regulated DC power supply.  
Voltage and Current sample settings shown below. 
With scaling applied, values in analog inputs are the “ScaledDataValue” and not the actual 
“DataValue”.