Formatting temperature

Temperature readings and settings are stored as int_16 numbers. To achive greater accuracy the values are multiplied by constant number before storage.

Temperature register example

0x02 - ZoneTRef

Target temperature.

Parameter name

Description

Min

Max

Multiplier

TEMP_REF

Target temperature.

50

450

0.1

Note

Table shows multiplier for current row. Most of temperature settings / readings have 0.1 multiplier. If there is no multpier column or value, multipier equals 1 (data does not need formating).

How to set values

task

Set target zone temperature to 18.5stC (RealValue).

Math representation

\begin{gather*} SetValue = RealValue / Multiplier\\ 185 = 18.5^\circ / 0.1 \end{gather*}

How to extract values

assumption

User read value 245 from temperature register with multiplier 0.1.

task

Extract real temperature.

Math representation

\begin{gather*} RealValue = ReadValue * Multiplier\\ 24.5^\circ = 245 * 0.1 \end{gather*}