This guide describes how to configure the calculation table for the following types of sensors:
Before configuring the calculation table for the fuel level sensor, calibrate the fuel tank to get a table in which the values X correspond to the sensor readings, and the values Y, to the fuel volumes.
Below you can see two examples of the table configured using the XY pairs tool.
Consider the case when you calibrate the fuel tank and get a table with the following data:
Input value X | Output value Y |
---|---|
0 | 0 |
86 | 10 |
173 | 20 |
252 | 30 |
330 | 40 |
405 | 50 |
477 | 60 |
546 | 70 |
618 | 80 |
686 | 90 |
749 | 100 |
To configure the calculation table based on this data, follow the steps below.
Note. You can see how the coefficient a and the displacement b were calculated. The first interval starts with 0 and influences all input values up to 86. At the last point, the output value should be 10. First, the displacement along the X-axis was calculated: ∆Х = 86 − 0 = 86. The displacement along the Y-axis was calculated in the same way: ∆Y = 10 − 0 = 10. Then, using the formula a = ∆Y / ∆X, the coefficient a was calculated, which is the tangent of the angle at the beginning of the coordinate axes: a = 10 / 86 = 0,11627906976744186.
For other intervals, the same calculation formulas were used:
Interval | X | Y | a | b |
---|---|---|---|---|
N | X | Y | (Y(i+1) − Y(i)) / (X(i+1) − X(i)) | Y − a × X |
1 | 0 | 0 | (10 − 0) / (86 − 0) | 0 − a × 0 |
2 | 86 | 10 | (20 − 10) / (173 − 86) | 10 − a × 86 |
3 | 173 | 20 | (30 − 20) / (252 − 173) | 20 − a × 173 |
4 | 252 | 30 | (40 − 30) / (330 − 252) | 30 − a × 252 |
5 | 330 | 40 | (50 − 40) / (405 − 330) | 40 − a × 330 |
6 | 405 | 50 | (60 − 50) / (477 − 405) | 50 − a × 405 |
7 | 477 | 60 | (70 − 60) / (546 − 477) | 60 − a × 477 |
8 | 546 | 70 | (80 − 70) / (618 − 546) | 70 − a × 546 |
9 | 618 | 80 | (90 − 80) / (686 − 618) | 80 − a × 618 |
10 | 686 | 90 | (100 − 90) / (749 − 686) | 90 − a × 686 |
11 | 749 | 100 | (110 − 100) / (812 − 749) | 100 − a × 749 |
Consider the case when you calibrate the fuel tank and get a table in which the input values X are indicated in descending order, and the output values Y, in ascending order:
Input value X | Output value Y |
---|---|
2,8 | 0 |
2,58 | 10 |
2,18 | 20 |
2,0 | 30 |
1,65 | 40 |
1,3 | 50 |
1,25 | 60 |
1,1 | 70 |
0,96 | 80 |
0,6 | 90 |
0,32 | 100 |
To configure the calculation table based on this data, follow the steps below.
In this example, the table with formulas for calculating intervals looks as follows:
Interval | X | Y | a | b |
---|---|---|---|---|
N | X | Y | (Y(i+1) − Y(i)) / (X(i+1) − X(i)) | Y − a × X |
1 | 0,32 | 100 | (90 − 100) / (0,6 − 0,32) | 100 − a × 0,32 |
2 | 0,6 | 90 | (80 − 90) / (0,96 − 0,6) | 90 − a × 0,6 |
3 | 0,96 | 80 | (70 − 80) / (1,1 − 0,96) | 80 − a × 0,96 |
4 | 1,1 | 70 | (60 − 70) / (1,25 − 1,1) | 70 − a × 1,1 |
5 | 1,25 | 60 | (50 − 60) / (1,3 − 1,25) | 60 − a × 1,25 |
6 | 1,3 | 50 | (40 − 50) / (1,65 − 1,3) | 50 − a × 1,3 |
7 | 1,65 | 40 | (30 − 40) / (2,0 − 1,65) | 40 − a × 1,65 |
8 | 2,0 | 30 | (20 − 30) / (2,18 − 2,0) | 30 − a × 2 |
9 | 2,18 | 20 | (10 − 20) / (2,58 − 2,18) | 20 − a × 2,18 |
10 | 2,58 | 10 | (0 − 10) / (2,8 − 2,58) | 10 − a × 2,58 |
Before configuring the calculation table for the temperature sensor, find out what temperature the different values of the specified parameter correspond to. Consider the case when the parameter sends only positive values but some of them correspond to negative ones, that is, to the temperature below zero. For example:
To configure the calculation table, follow these steps:
Consider an example of configuring the calculation table for a non-digital engine ignition sensor, when the ignition activation is determined by the parameter transmitting voltage. For example, at a voltage up to 0,5 V, the ignition is turned off, and at a voltage over 0,5 V, the ignition is turned on.
To configure the calculation table, follow these steps: