^70 - The Humidity Port
This port is a read only value of the current humidity.
This value will include any temperature offset configured in the device properties. It is not a raw value. |
Syntax
LDA ^70,0 For the whole value
LDA ^70,1 For the fractional value
The value fluctuates wildly within a few percent. System Builder smoothens this out when broadcasting the value. |
Example
Example of a task checking the current measured humidity.
Task1()
{
LDA ^70,0 // Get the whole number humidity percentage.
CMP #70 // Compare to 70%
BCC TooHumid // If greater than or equal to the 70% it is too humid
CMP #50 //Compare to 50%
BRC JustRight //If below or equal to 50% it is comfortable
Null
TooHumid:
StartTask(2) //Go start dehumidification task (usual fan low AC on)
Null
JustRight:
StartTask(3) //Go start task to return HVAC to previous settings
Null
}