Instruction manual

SECTION 2. PROGRAM: EDLOG
PC208W, Version 3.0, Instruction Manual 2-5
2.4.2 DATA ENTRY WARNING
When the Data Entry Warning is active, a
warning is displayed immediately after an invalid
input has been entered for an instruction's
parameter. The warning lists the valid inputs. A
valid input must be entered before advancing to
the next parameter.
By default, the Data Entry Warning is enabled.
To disable the Data Entry Warning, select
OPTION | EDITOR. Use the <tab> key to place
the cursor on the brackets and press the <space>
bar or select the brackets with the computer's
mouse. A space instead of an 'X' between the
brackets indicates this option is disabled.
2.5 EXPRESSIONS
Expressions are a shortcut for processing
numbers and input data. They must be entered
into one of the program tables. When a
datalogger program that contains an expression
is compiled, the appropriate instructions are
automatically incorporated into the .DLD file.
2.5.1 RULES FOR CREATING EXPRESSIONS
Expressions must be set equal to the label
of the Input Location that will store the
result. The label must be to the left of the
expression. See Section 2.7 for more
information about Input Location labels.
Expressions can have both fixed numbers and
Input Location labels. Input Locations can
ONLY be referenced by their label; each
number is always assumed to be a constant.
Floating point numbers are limited to five (or
six for the CR10X) digits plus the decimal
point and sign.
The operator(s) and/or function(s) used in
the expression must be on the operator or
function list (Table 2.5-1).
Numbers and labels that are immediately
after a function must be enclosed in
parentheses.
Several operators and/or functions can be
used in one expression. Operations and
functions that are enclosed in parentheses
are calculated first; the inner most
parentheses are evaluated first.
To continue an expression to the next line,
end the first line with an underscore (_).
TABLE 2.5-1. Operators and Functions
Operators
* (multiply)
/ (divide)
+ (add)
- (subtract)
^ (raise to the power of; enclose negative
values in parentheses)
@ (modulo divide)
e (for CR10(X) only, scientific notation; 6e-1=0.6)
Functions
COS (cosine; angle in degrees)
SIN (sine; angle in degrees)
TAN (tangent; angle in degrees)
COTAN (cotangent; angle in degrees)
ARCTAN (arctangent; angle in degrees)
ARCSIN (arcsine; angle in degrees)
ARCCOS (arccosine; angle in degrees)
ARCCOT (arccotangent; angle in degrees)
SQRT (square root)
LN (natural logarithm)
EXP (exponent of e; EXP(2) = e
2
)
RCP (reciprocal; RCP(4) = 1/4 = 0.25)
ABS (absolute value)
FRAC (takes the fraction portion;
FRAC(2.78)=.78)
INT (takes the integer portion;
INT(2.78)=2)