Download FieldServer Configuration Manual
Transcript
FieldServer Configuration Manual 5.5 Page 37 of 90 Scaling When writing a configuration file for the FieldServer, it may be required for the FieldServer to scale data before passing it on to the receiving devices. This can be accomplished in three different places in the FieldServer configuration: In the Client Side Map Descriptor section by adding scaling parameters. In the Server Side Map Descriptor section by adding scaling parameters In the Moves section by adding Scaling Parameters. In all cases, four keywords are added to the section that needs to be populated with the necessary scaling parameters. The FieldServer makes use of the four scaling parameters to calculate a slope and offset for scaling all incoming values. It is possible therefore, to do any linear value conversion that may be required. 5.5.1 Map Descriptor Scaling For the first two cases where keywords are added to the map descriptors, the four keywords to be used along with their valid ranges are as follows: Column Title Function Data_Array_Low_Scale Scaling zero in Data Array Data_Array_High_Scale Scaling max in Data Array Node_Low_Scale Scaling zero in Connected Node Node_High_Scale Scaling max in Connected Node Legal Values Any signed 32 bit integer in the range: -2, 147, 483, 648 to 2, 147, 483, 647. Default 0 Any signed 32 bit integer in the range: -2, 147, 483, 648 to 2, 147, 483, 647. Default 100 Any signed 32 bit integer in the range: -2, 147, 483, 648 to 2, 147, 483, 647. Default 0 Any signed 32 bit integer in the range: -2, 147, 483, 648 to 2, 147, 483, 647. Default 100 5.5.1.1 Scaling function example - Converting Celsius to Fahrenheit: The following portion of a Map Descriptor example shows the settings required for a Client Map Descriptor to take a Fahrenheit temperature reading and store it into the Data Array as a Celsius value. Note that these parameters o do NOT define the data range, thus a temperature of 500 F will still be properly converted. Data_Array_Low_Scale 0 , Data_Array_High_Scale , 100 , Node_Low_Scale , 32 , Node_High_Scale , 212 FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com Tel: (408) 262-2299 Fax: (408) 262-2269 Toll Free: (888) 509-1970 email: [email protected]