Download introduction - Custom Solutions, Inc.

Transcript
Chapter 23
Weather Data
247
The barometric pressure direction of change is stored as follows:
0 = steady
1 = falling
2 = rising
anything else = blank spaces are displayed
For example, to display a pressure of 29.75 inches and rising, set the weather variables as follows:
Current barometric pressure - inches = 29
Current barometric pressure - hundredths = 75
Barometric Pressure Direction = 2
Wind Variables
The controller can track wind direction and speed:
•
•
•
•
•
Wind direction digit 1
Wind direction digits 2-3
Current wind speed
Today's low wind speed
Today's high wind speed
Wind direction (in degrees from 0 to 359) requires two variables for storage. The first variable holds the first
digit, which can range from 0 to 3. The second variable holds the second and third digits, which can range
from 00 to 99. If the first variable is >3, then blanks will be displayed on the weather conditions TV screen.
Wind speed can range from 0 to 254 in increments of 1. A value of 255 is displayed as blank spaces.
For example, to set the current wind direction to due south (180 degrees) and the wind speed to 15, set the
weather variables as follows:
Wind direction digit 1 = 1
Wind direction digits 2-3 = 80
Current wind speed = 15
Rainfall Variables
Four different rainfall amounts can be tracked, with each requiring two weather variables for storage:
•
•
•
•
•
•
•
•
Today's rainfall - inches
Today's rainfall - hundredths
Rainfall this week - inches
Rainfall this week - hundredths
Rainfall this month - inches
Rainfall this month - hundredths
Rainfall this year - inches
Rainfall this year - hundredths
The "hundredths" values can range from 0 to 99. Only for the variable "Today’s rainfall - inches", a value of
>99 is displayed as blank spaces instead of the digits. The other rainfall "inches" amounts are not included
on the weather conditions screen and can range from 0 to 255 inches.
For example, to set today's rainfall to 1.29 inches, set the weather variables as follows:
Today's rainfall - inches = 1
Today's rainfall - hundredths
= 29