Section 2. Program: EDLOG
PC208W, Version 3.3, Instruction Manual
2-9
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: Temperature, 107 (P11)
1:
1
2:
2
3:
1
4:
2
5:
1.0
6:
0.0
2: Z=X (P31)
1:
2
2:
5
3: Z=F (P30)
1:
1.8
2:
0
3:
3
4: Z=X*Y (P36)
1:
3
2:
5
3:
5
5: Z=F (P30)
1:
32
2:
0
3:
3
6: Z=X+Y (P33)
1:
3
2:
5
3:
6
Summary of Contents for PC208W
Page 2: ...This is a blank page...
Page 4: ......
Page 58: ...Section 2 Program EDLOG 2 18 PC208W Version 3 3 Instruction Manual This is a blank page...
Page 98: ...Section 3 Report SPLIT 3 40 PC208W Version 3 3 Instruction Manual This is a blank page...
Page 126: ...Section 6 Program Conversion 6 4 PC208W Version 3 3 Instruction Manual This is a blank page...
Page 156: ...This is a blank page...