^30 - The 1/4 °C Set Temperature Port

This port is a read only value of the set temperature in 1/4 °C for the area the temperature sensor is assigned to. This is based on network messages and is not a measured value.
This port can be hard to work with, you may find it easier to use ^32, the 1 °C Set Temperature Port. You can use the subport on that to get a precise value.

This is a read only value even though it doesn’t correlate to a physical component.

Syntax

LDA ^30,0
Initial value is initial measured temperature until a set temp messages is received

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
}