beautypg.com

Young Meteorological Translator Model 26800 User Manual

Page 28

background image

Page 27

26800-90(K)

INPUT WIND SPEED (FREQ)

Wind speed signal input on FREQ

chan= 01

channel 01. Result stored in DLOC

sensor= 051xx

001

units= M/S

dloc= 001

INPUT WIND DIR (VOLTAGE)

Wind direction signal input on

chan= 01

VIN1. Result stored in DLOC 002.

sensor= 051xx

dloc= 002

INPUT VOLTAGE

0-1V Temperature signal measured

chan= 05

on differential VIN pair 5/6 at a

type= DIFF

rate of 60Hz. MULT and OFFS

mult= 0.10000

scale signal to -50 to +50 C. Result

offs= -50.000

stored in DLOC 003.

rate= 60Hz

dloc= 003

INPUT VOLTAGE

0-1V RH signal measured on differ-

chan= 07

ential VIN pair 7/8 at a rate of 60Hz.

type= DIFF

MULT and OFFS scale signal to 0

mult= 0.10000

to 100% RH. Result stored in DLOC

offs= 0.00000

004.

rate= 60Hz

dloc= 004

DISPLAY VALUE

Wind speed in SLOC 001 displayed

sloc= 001

on screen 1 using big font at row/

scrn= 1

column 1/02. WIDTH and DECPT

font= BIG

define 00.0 format.

row= 1

col= 02

width= 4

decpt= 1

DISPLAY VALUE

Wind direction in SLOC 002 dis-

sloc= 002

played on screen 1 using big font

scrn= 1

at row/column 1/07. WIDTH and

font= BIG

DECPT define 000 format.

row= 1

col= 07

width= 3

decpt= 0

DISPLAY VALUE

Temperature in SLOC 003 display-

sloc= 003

ed on screen 1 using big font at

scrn= 1

row/column 1/11. WIDTH and

font= BIG

DECPT define 000.0 format.

row= 1

col= 11

width= 5

decpt= 1

DISPLAY VALUE

RH in SLOC 004 displayed on

sloc= 004

screen 1 using big font at row/

scrn= 1

column 1/17. WIDTH and DECPT

font= BIG

define 000 format.

row= 1

col= 17

width= 3

decpt= 0

IF TIME INTERVAL

Flag 1 is set when the top of the minute

unit= MIN

(00 seconds into the minute) is reached.

time= 0001

We'll use this flag to align our statistical

FLAG SET

calculations and data recording with

flag#= 01

uniform time intervals.

state= ON

END IF

END IF for IF TIME INTERVAL

AVERAGE

The AVERAGE and MAXIMUM instructions

sloc= 001

process values from their repective SLOCs.

dloc= 011

Because we use BLOCK type, the resulting

type= BLOCK

calculatations are controlled by FLAG 1

#samp= 00000

rather than #SAMP. Note that wind

AVERAGE

direction average uses the BLK ANGLE

sloc= 002

type.

dloc= 012

type= BLK ANGLE

#samp= 00000

AVERAGE

sloc= 003

dloc= 013

type= BLOCK

#samp= 00000

AVERAGE

sloc= 004

dloc= 014

type= BLOCK

#samp= 00000

MAXIMUM

sloc= 001

dloc1= 021

type= BLOCK

#samp= 00000

IF FLAG

When time aligns with the top of the

flag#= 01

minute, record the average wind speed,

state= ON

wind direction, temperature, RH and

RECORD TIME

maximum wind speed.

frmt= DATE

RECORD TIME

frmt= TIME

RECORD VALUE

sloc= 011

RECORD VALUE

sloc= 012

RECORD VALUE

sloc= 013

RECORD VALUE

sloc= 014

RECORD VALUE

sloc= 022

END IF

END IF for IF FLAG

FLAG SET

Turn FLAG 1 OFF so statistical instructions

flag#= 01

can begin collecting new samples.

state= OFF

PGM END

EXAMPLE USER PROGRAM

This program takes wind speed and direction measure-

ments from a Young 05103 Wind Monitor and Temperature/

RH measurements from a Young 41382V Temp/RH Sensor.

The execution interval is set to 1 iteration per second.

Instantaneous measurements are displayed on screen 1.

Averages for all values and maximum wind speed are calcu-

lated and recorded once per minute.