beautypg.com

Young Meteorological Translator Model 26800 User Manual

Page 5

background image

Page 4

26800-90(K)

4.2 PROGRAM INSTRUCTIONS

Instruction names are listed below. Each instruction is followed by

a detailed description of its function and parameter settings.

ALARM

tests the value in a specified SLOC and activates one of

the SOLID STATE SWITCH channels if the value meets condi-

tions defined in the parameters.

SPAN determines how to compare the value in SLOC to the

range defined by SETPOINT 1 and 2. INCL (inclusive) com-

pares SLOC to values inside the range. EXCL (exclusive)

compares SLOC to values outside the range. DELAY sets the

duration the compare condition must be true in order to change

the SW state. Use this to prevent switch chatter when the input

value hovers near SETPOINT thresholds.

sloc=

Source location (001-256)

set1=

Setpoint 1

set2=

Setpoint 2

delay= Number of seconds (00-99)

span=

Span logic (INCL or EXCL)

sw=

SOLID STATE SWITCH channel (1-4)

AVERAGE

calculates the average of samples retrieved from

SLOC. Values are evaluated on each iteration of the instruction.

#SAMP is used on MOVING type averages only. BLOCK type

calculates the result when FLAG 1 is set. The result is stored in

DLOC.

BLOCK type adds new values to an internal sum with each in-

struction iteration. When FLAG 1 is set, the average is calculated

and stored in DLOC. Typically, FLAG 1 is set using the FLAG

TIME INTERVAL instruction.

MOVING type keeps a list of every sample. After #SAMP sam-

ples have been collected, the first average is calculated. After

that, a new average is calculated for each new sample acquired.

The amount of internal memory used is proportional to #SAMP.

An error message will appear if memory limits are reached.

ANGLE type temporarily converts unit vector angles to Cartesian

form which are used for the actual calculation. Cartesian aver-

ages are then converted back to angles for the final result.

sloc=

Source location (001-256)

dloc=

Destination location (001-256)

type=

BLOCK, BLOCK ANGLE, MOVING, MOVING ANGLE

#samp= Number of samples, MOVING type only (0001-7000)

BEEP

produces from 1 to 9 beep sounds. It can be used to signal

an event.

num=

Number of beeps to sound (1-9)

CHANGE TO SCREEN

instructs the unit to change to a screen

number based on the value in SLOC. The value in SLOC must

be in the range of 1 to 8.

sloc=

Source location (001-256)

DELAY

creates a millisecond delay in program execution to the

nearest multiple of 5 milliseconds.

msec= Millisecond delay (5-9995)

DISPLAY FLAGS

shows the condition of all 16 user flags in ei-

ther HEX or BINary format. The flags are numbered 1 to 16 from

right to left. Digit value 1=SET, 0=RESET.

scrn=

Screen number (1-8)

font=

Font size (BIG or SMALL)

row=

Screen row (1-3 for BIG, 1-6 for SMALL)

col=

Screen column (1-20 for BIG, 1-40 for SMALL)

DISPLAY NESW

takes the angular wind direction value in

degrees from SLOC and displays it in terms of compass point

descriptions: N, NNE, NE, ENE, E, etc. Allow 3 character spaces

on display screen.

sloc=

Source location

scrn=

Screen number (1-8)

font=

Font size (BIG or SMALL)

row=

Screen row (1-3 for BIG, 1-6 for SMALL)

col=

Screen column (01-20 for BIG, 01-40 for SMALL)

DISPLAY TEXT

displays up to 25 text characters. Truncate to

fewer than 25 characters by terminating with the ' \ ' (backslash)

character. Otherwise, all 25 characters will be displayed even if

most are blanks.

scrn=

Screen number (1-8)

row=

Screen row (1-3 for BIG, 1-6 for SMALL)

col=

Screen column (01-20 for BIG, 01-40 for SMALL)

text=

Text to be displayed (up to 25 characters)

font=

Font size (BIG or SMALL)

DISPLAY TIME

displays time from the internal real time clock in

hh:mm:ss format. Leap years are handled automatically.

scrn=

Screen number (1-8)

font=

Font size (BIG or SMALL)

row=

Screen row (1-3 for BIG, 1-6 for SMALL)

col=

Screen column (01-20 for BIG, 01-40 for SMALL)

DISPLAY VALUE

displays the value in SLOC. WIDTH defines

total character width on screen. DECPT defines the number of

digits after the decimal point. Asterisks (*) are displayed if the

value exceeds the defined WIDTH.

sloc=

Source location (001-256)

scrn=

Screen number (1-8)

font=

Font size (BIG or SMALL)

row=

Screen row (1-3 for BIG, 1-6 for SMALL)

col=

Screen column (01-20 for BIG, 01-40 for SMALL)

width= Maximum number of characters (1-9)

decpt= Number of digits following decimal point (1-9)

ELSE

is used with IF statements as a branch when the associ-

ated IF test is false. Only one ELSE statement can be used

with an IF statement. ELSE statements other than the first will

be ignored and an ELSE without a preceding IF statement will

generate an error when PGM ERR HANDLE is set to STOP.

Example:

IF LOC 10 = 100.0
BEEP 5
LOC 10 = 0
ELSE
LOC 10 = LOC 10 + 1.0
END IF

Count to 100 by 1s then beep and start over.

END IF

marks the end of an IF block and must be used to con-

clude every IF statement. END IF without an IF will generate an

error when PGM ERR HANDLE is set to STOP.