beautypg.com

0 programming – Young Meteorological Translator Model 26800 User Manual

Page 4

background image

Page 3

26800-90(K)

MENU. Navigate to the KEYPAD LOCK parameter and set it to

UNLOCKED. Method two: Use RMYComm to reset the KEYPAD

LOCKOUT parameter.

SCREEN SCROLL

sets parameters that automatically scroll the

display through one of 8 screens. END SCREEN also sets the

last screen to show in manual scroll mode.

AUTO SCROLL:

ON or OFF

END SCREEN:

Last screen to show, 1-8

PAUSE (SECONDS):

Duration of pause, 01-99

4.0 PROGRAMMING

In OPERATE MODE, the 26800 executes a list of USER PRO-

GRAM instructions to make measurements, display data, manipu-

late data, record data, test for conditions, and produce output.

The instructions may be combined in any way for a broad range of

applications.

The user program environment has three memory areas with vari-

ous capacities.

Program Instruction:

512 instructions

Temporary Storage:

256 data values

Recorded Data:

2,162,688 data values

USER PROGRAM instructions may be entered, edited, or deleted

using the front panel keys or remotely via serial communication

and RMYComm.

IMPORTANT NOTE ABOUT PROGRAM DEVELOPMENT:

When developing your own programs, set PGM ERR HANDLE

to STOP. This allows the 26800 to stop and identify sources of

error in the USER PROGRAM when in OPERATE MODE. In most

cases, specific offending instructions and parameters will be identi-

fied. After your program has been developed and demonstrated

to operate without error, you may set PGM ERR HANDLE to SKIP

which will omit execution of instructions in which errors arise and
continue execution of other instructions.

VIEWING PROGRAM INSTRUCTIONS

From the MAIN MENU, navigate to USER PGM and press the

ENTER key. The first program instruction will appear.

Example:

i001 INPUT VOLTAGE
chan= 16

rate= 300Hz

type= SE

dloc= 001

mult= 1.00000
offs= 0.00000

The i001 designation is the sequential instruction number which

ranges from 001 to 512. The instruction description appears next.

Instruction parameters are below the instruction description. In this

example, there are six parameters.

Use the LEFT and RIGHT ARROW keys to navigate the USER

PROGRAM. The last instruction is always PGM END. Navigation

will wrap from end to beginning and vice versa. Press the EXIT

soft-key to return to the MAIN MENU.

EDITING PROGRAM INSTRUCTIONS

Only parameters for an instruction may be edited. To replace an

entire instruction, DELETE it then INSERT another instruction in

its place.

To edit a parameter, press the EDIT soft-key. The selected charac-

ter or field will be highlighted.

UP/DOWN navigation keys change value.

RIGHT/LEFT navigates characters in the field.

NEXT soft-key advances to the next parameter.

After progressing through each parameter, the 26800 will exit edit

mode and return to view mode.

INSERTING PROGRAM INSTRUCTIONS

Press the INSERT soft-key to insert a new instruction ahead of the

current instruction. Select the instruction to be inserted from the

highlighted list:

UP/DOWN ARROW scrolls through the instruction list.

SELECT inserts the currently highlighted instruction.

CANCEL cancels insertion and returns to view mode

Insertion forces instruction renumbering.

DELETING PROGRAM INSTRUCTIONS

Press the DELETE soft-key to delete the current instruction. Any

instruction may be deleted except PGM END. Deletion forces

instruction renumbering.

4.1 PROGRAM CONCEPTS

The 26800 executes USER PROGRAM instructions to measure,

process data, display, record, produce calibrated output, or com-

municate with other devices.

A USER PROGRAM is assembled from a list of available instruc-

tions. Most instructions use TEMPORARY STORAGE LOCA-

TIONS which allow instructions to share data values. There are

256 locations available. Any location may be identified as a desti-

nation or source (DLOC or SLOC) depending on context. Values

in these locations exist only while the program operates. Recorded

values are stored in a separate area.

A simple USER PROGRAM example follows:

i001 INPUT VOLTAGE
chan=

16

rate= 300Hz

type=

SE

dloc= 001

mult=

1.00000

offs=

0.00000

i002 DISPLAY VALUE
sloc=

001

col= 30

scrn=

1

width= 7

font=

SMALL

decpt= 2

row= 5

i003 PGM END

Labels i001, i002, and i003 indicate the sequential instruction

number. As instructions are inserted or deleted, each one is re-

numbered in sequence. Use these numbers to navigate the USER

PROGRAM.

The first instruction, INPUT VOLTAGE, makes a single-ended

(SE) voltage measurement on input channel 16. It measures at a

sample-rate of 300Hz, multiplies the measurement by 1.00000,

applies a 0.00000 offset, and stores the result in DLOC 001.

The second instruction, DISPLAY VALUE, displays the value in

SLOC 001 on screen 1, row 5, column 30, using a small font for-

mat seven characters wide with 2 digits after the decimal point.

PGM END designates program end.

Please see the APPENDIX C for a more extensive example.