^29 - The 1/4 °C Current Temperature Port

This port is a read only value of the current temperature in 1/4 °C.
This port can be hard to work with, you may find it easier to use ^31, the 1 °C Temperature Port. You can use the subport on that to get a precise value.

This value will include any temperature offset configured in the device properties. It is not a raw value.

Syntax

LDA ^29,0

Example

Example of a task checking the current measured temperature.

Task1()
{
LDA ^29,0     // Get the current temp in 1/4 degree C.
CMP ^30,0     // Compare to the set temp in 1/4 degree C.
BCC TooHot    // If greater than or equal to the set temp it it too hot
BRC TooCold   // If Less than the set temp it it too cold
Null
TooHot:
    Dynet(0x6c,"TooHot")
    Null
TooCold:
    Dynet(0x6c,"ToCold")
    Null
}