This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | |||

cms:units:sensors:negative [24/09/2018 15:45] tagr |
cms:units:sensors:negative [21/07/2020 17:56] (current) mary |
||
---|---|---|---|

Line 8: | Line 8: | ||

===== Parameter Analysis ===== | ===== Parameter Analysis ===== | ||

- | Switch to the //[[user/msg/msg|Messages]]// panel and request messages for any interval of time. Indicate //Show parameters as raw data//. In the column //Parameters// find the parameter you are interested in and analyze its incoming values. | + | Switch to the **[[user/msg/msg|Messages]]** tab and request messages for any interval of time. Indicate **Show parameters as raw data**. In the column **Parameters** find the parameter you are interested in and analyze its incoming values. |

{{ :units:negative01.png?nolink }} | {{ :units:negative01.png?nolink }} | ||

Line 16: | Line 16: | ||

===== Defining the Maximum Value ===== | ===== Defining the Maximum Value ===== | ||

- | Firstly, you should define the maximum threshold for such numbers. In order to do so, take any of the //incredibly large digits//, which occurs in the values of the parameter, and enter it into a calculator in the decimal mode (Dec.). Afterwards, switch to the hexadecimal displaying (Hex. mode). | + | Firstly, you should define the maximum threshold for such numbers. In order to do so, take any of the **incredibly large digits**, which occurs in the values of the parameter, and enter it into a calculator in the decimal mode (Dec.). Afterwards, switch to the hexadecimal displaying (Hex. mode). |

{{ :units:negative02.png?nolink }} | {{ :units:negative02.png?nolink }} | ||

Line 22: | Line 22: | ||

Count the register length in the number appeared. Possible values are: 2, 4, 8. If the register length is less, we should round it up (for example, 5 should be rounded up to 8). In our case the register length is 8. | Count the register length in the number appeared. Possible values are: 2, 4, 8. If the register length is less, we should round it up (for example, 5 should be rounded up to 8). In our case the register length is 8. | ||

- | Now letter //F// should be entered in to the calculator in Hex. mode as many times as the register length appears to be after rounding up. Afterwards, switch to the //Dec// mode. Appeared result is the maximum possible number. You should write it down or memorize. | + | Now letter **F** should be entered in to the calculator in Hex. mode as many times as the register length appears to be after rounding up. Afterwards, switch to the **Dec** mode. Appeared result is the maximum possible number. You should write it down or memorize. |

{{ :units:negative03.png?nolink }} | {{ :units:negative03.png?nolink }} | ||

Line 28: | Line 28: | ||

===== Sensor Calculation Table ===== | ===== Sensor Calculation Table ===== | ||

- | Switch to the [[cms/units/units#unit_properties_dialog|unit properties dialog]] and create a [[cms/units/sensors/sensors|sensor]] on the basis of this parameter. Now you should create a [[cms/units/sensors/calc|calculation table]] for it. Switch to the //Calculation Table// tab and deselect //Continue last segment// checkbox. | + | Open the [[cms/units/units#unit_properties|unit properties]] and create a [[cms/units/sensors/sensors|sensor]] on the basis of this parameter. Now you should create a [[cms/units/sensors/calc|calculation table]] for it. Switch to the **Calculation Table** tab and deselect **Continue last segment** checkbox. |

We have found out that all the interval of possible values is from 0 to 4294967295. Therefore possible values start from 0 to the half of the maximum number and negative numbers go from the half to the end of the maximum number (where the maximum number is the smallest negative number module). Divide the maximum number by 2, which equals 4294967295 : 2 = 2147483647,5. It means that positive values start from 0 to 2147483647 and negative —from 2147483648 to 4294967295. | We have found out that all the interval of possible values is from 0 to 4294967295. Therefore possible values start from 0 to the half of the maximum number and negative numbers go from the half to the end of the maximum number (where the maximum number is the smallest negative number module). Divide the maximum number by 2, which equals 4294967295 : 2 = 2147483647,5. It means that positive values start from 0 to 2147483647 and negative —from 2147483648 to 4294967295. | ||

Line 42: | Line 42: | ||

{{ :units:negative04.png?nolink }} | {{ :units:negative04.png?nolink }} | ||

- | :!: //Note.//\\ | + | :!: The calculation can be also made in the **Hex** mode. To do this, enter the letter **F** as many times as the number of digits (in our case 8), and then divide by 2. Then go to the **Dec** (decimal digits) mode and save or memorize the resulting number. This is the maximum positive value. |

- | The calculation can be also made in the //Hex// mode. To do this, enter the letter //F// as many times as the number of digits (in our case 8), and then divide by 2. Then go to the //Dec// (decimal digits) mode and save or memorize the resulting number. This is the maximum positive value. | + | |

===== Result Analysis ===== | ===== Result Analysis ===== | ||

- | You can analyze the resulting table, switching to the //Calculation Table// tab and clicking //Refresh// button. | + | You can analyze the resulting table, switching to the **Calculation Table** tab and clicking **Refresh** button. |

{{ :units:negative05.png?nolink }} | {{ :units:negative05.png?nolink }} | ||

- | Besides, you can estimate the sensor setting in the [[user/msg/msg|Messages]] panel. Request messages on the unit for the same time interval, and this time select //Show parameter as sensor values//. | + | Besides, you can estimate the sensor setting in the [[user/msg/msg|Messages]] panel. Request messages on the unit for the same time interval, and this time select **Show parameter as sensor values**. |

{{ :units:negative06.png?nolink }} | {{ :units:negative06.png?nolink }} |

Was this helpful?

Thank you!