Instruction manual

SECTION 2. PROGRAM: EDLOG
2-6 PC208W, Version 3.0, Instruction Manual
2.5.2 Examples
Below are examples of valid expressions:
Zee = Vee+Ex
es = tee^(-2)
Root = SQRT(ABS(data))
avg = (data1+data2+data3+data4+data5)/5
length = SQRT((adj^2)+(opp^2))
TempF = (TempC*1.8)+32
The following section of an EDLOG program for
the CR10X uses an expression to convert
Temperature from Celsius to Fahrenheit:
Execution Interval = 10 sec
1: Temperature (107) (P11)
01: 1 REPS
02: 2 Channel
03: 1 Excitation Channel
04: 2 Loc [TempC]
05: 1 Mult
06: 0 Offset
TempF = (TempC*1.8)+32
When this program is compiled, the .DLD file
contains the following instructions. The last 5
instructions calculate the expression.
1: P11 (Temperature, 107)
1: 1
2: 2
3: 1
4: 2
5: 1.0
6: 0.0
2: P31 (Z=X)
1: 2
2: 5
3: P30 (Z=F)
1: 1.8
2: 0
3: 3
4: P36 (Z=X*Y)
1: 3
2: 5
3: 5
5: P30 (Z=F)
1: 32
2: 0
3: 3
6: P33 (Z=X+Y)
1: 3
2: 5
3: 6
2.6 EDITING EDLOG PROGRAMS
Table 2.6-1 provides a list of keystrokes which
can be used in editing programs and moving
around in the PROGRAM DEVELOPMENT
screen.
TABLE 2.6-1. Editor Keystrokes
PgUp Page Up
PgDn Page Down
Up Arrow Move Up One Line
Down Arrow Move Down One Line
Right Arrow Move One Character Right
Left Arrow Move One Character Left
<ctrl> Home Move Cursor to Beginning of
File
<ctrl> End Move Cursor to End of File
<ctrl> PgUp Move Cursor to Top of
Screen
<ctrl> PgDn Move Cursor to Bottom of
Screen
<Enter> Move to Next Field or Create
New Line
<shift> Ins Select an Instruction from a
Dialog Box
<ctrl> Right Arrow Move Instruction 1 Tab Right
(Cursor on Parameter)
<ctrl> Left Arrow Move Instruction 1 Tab left
(Cursor on Parameter)
or Move from Input Location
label to Input Location number.
<ctrl> n Comment out a Line or
Instruction
<shift> <ctrl> n Uncomment a Line or
Instruction
<end> Move to end of line, Add a
comment if on an Instruction
<ctrl>C Copy highlighted text
<ctrl> X Cut highlighted text
<ctrl>V Paste clipboard
Del Delete character to right or
highlighted text
<shift> Del Delete the Instruction or Line
Under the Cursor
<Esc> Close Dialog Box