Young Meteorological Translator Model 26800 User Manual
Page 8
Page 7
26800-90(K)
LOC1 = LOC2 OPER VALUE
performs a numerical operation
on the value in LOC2 using the number in VAL and stores the
result in LOC1. POW raises the value in LOC2 to the power of
VAL. MOD calculates modulo VAL.
loc1=
Location where result is stored (001-256)
loc2=
Location (001-256)
oper:
Math operator (+, -, *, /, POW, MOD)
val=
Numerical value
LOC1 = FUNCTION(LOC2)
performs one of several complex
functions on one or more values starting with LOC2 and stores
the result in LOC1.
loc1=
Location where first result is stored (001-256)
func:
ABS
Absolute value of number in LOC2
COS
Cosine of number in LOC2
SIN
Sine of number in LOC2
ATAN2
Standard atan2 function calculates arc-
tan of two Cartesian numbers in
sequential storage locations. Result
is in degrees.
LOC2 = first value
LOC2+1 = second value
DEWPT
Calculates dew point (°C) from RH%
and temperature. Uses two sequential
storage locations for input.
LOC2 = RH%
LOC2+1 = temperature (°C)
WETBULB Calculates wetbulb temperature
(°C) from RH%, temperature, and
pressure. Uses three sequential
storage locations for input.
LOC2 = RH%
LOC2+1 = temperature (°C)
LOC2+2 = pressure (hPa or mB)
WNDCHLL Calculates wind chill temperature
(°C) from ambient temperature and
wind speed using standard NWS
formula. Uses two sequential storage
locations for input.
LOC2 = temperature (°C)
LOC2+1 = wind speed (m/s)
POLYNOM Calculates polynomial using the
number in LOC2 and 5 coefficients in
sequential storage locations. Result =
A + B*X + C*X^2 + D*X^3 + E*X^4
LOC2= X
LOC2+1= A
LOC2+2= B
LOC2+3= C
LOC2+4= D
LOC2+5= E
RTD375
Calculates temperature of a 1000-ohm
3.75-alpha platinum RTD sensor using
the ratio of RTD resistance to 1000 in
LOC2. A value of 1.0000 represents
1000 ohms
LOC2= RTD ratio to 1000 ohms
RTD385
Calculates temperature of a 100-ohm
0.385-alpha platinum RTD sensor
using the ratio of RTD resistance in
LOC2. A value of 1.0000 represents
100 ohms.
LOC2= RTD ohms
P CORR Calculates sea level pressure
correction in hPa when given altitude in
meters. Add the correction to measured
pressure to get sea level equivalent.
LOC2= altitude (meters)
ERRCODE Puts the ErrCode result of the previous
instruction in LOC1. LOC2 is ignored.
Values less than 200 correspond to the
error code listed in section 6.0. Error
code value >= 200 indicate incorrect
instruction parameters.
DATETIME Stores the date and time in successive
locations starting with LOC1.
LOC1=
Year
LOC+1=
Month
LOC+2=
Day of Month
LOC+3=
Hour
LOC+4=
Minute
LOC+5=
Second
LOC+6=
1/100th of a second
WAITFOR Waits until an interrupt-driven modulo
counter matches the millisecond value
in LOC2. The counter is updated every
5 milliseconds therefore the millisecond
value should be a multiple of 5. The
modulo counter is reset to zero once per
second. A 25 millisecond delay is added
to every User Program execution cycle.
LOC2= Milliseconds (5-995)
MAXIMUM
finds the algebraically highest value in a group of
samples taken from SLOC. #SAMP defines the number of
samples for MOVING only.
BLOCK type progressively examines new samples and stores
the current maximum in DLOC. When FLAG 1 is set, the maxi-
mum is stored in DLOC+1 and reset with the value in SLOC.
MOVING type maintains a list of #SAMP samples. DLOC and
DLOC+1 are both set to the maximum value in the entire list.
The maximum is updated with every new sample. Each new
sample displaces the oldest sample on the list. The number of
samples that can be maintained in the list is limited by available
memory. If PGM ERR HANDLE is set to STOP, an error will be
generated when #SAMP exceeds available memory.
sloc=
Source location (001-256)
dloc1=
Destination location(001-256)
type=
Max type (BLOCK or MOVING)
#SAMP= Number of samples to examine (0001-7000)
Limited to available memory for MOVING MAX.
MINIMUM
finds the algebraically lowest value in a group of
samples taken from SLOC. #SAMP defines the number of
samples for MOVING type only.