
82
Software
9.6.4
Sequence commands
We distinguish between seven different terms for programming the sequence. Each of this terms
is described in a separate sub chapter. If an own sequence has to be programmed, then it is
recommended to read through these sub chapters and an existing sequence source code.
–
Sequence Structure
–
Variables
–
Fix Variables
–
Operators
–
Procedure
–
Function
–
Flow Control
Each command has to be finished by a semicolon “ ; “ except the keywords “
var
”, “
begin
” and
“
end
.”.
Comments in the code are possible by adding two slashes “
\\
“ at the end of a code line or on
an empty line. For testing and debugging a sequence the comments are very helpful to comment
out code lines to ignore them. There is no difference between upper and lower case letters in the
source code.
9.6.4.1
Sequence Structure
A sequence code has following code structure:
var
VariableS: string;
VariableI: integer;
VariableD: double;
VariableB: boolean;
…
Declaration of Variables
The keyword is
var
for the
first sequence code section. If
no variables has to be defined
then this section can be
omitted.
procedure UserProcedure(A,B: double);
begin
VariableD:=A+B;
end;
Declaration of User
Procedures
For complex sequences the
user can define his own
procedures for a better
legibility and for repetitive
command sets.
function UserFunction(A,B: integer):
boolean;
begin
if A>B then
UserFunction:=true;
else
UserFunction:=false;
end;
end;
Declaration of User
Functions
For complex sequences the
user can define his own
functions for a better legibility
and for repetitive command
sets.
begin
Start of Sequence
Summary of Contents for 2830
Page 1: ...2830 2831 Precision Liquid and Solid Dielectric Analyzer User Manual 4843477 M Version 3 0 ...
Page 7: ...Introduction VII 17 Conformity 113 18 Notes 114 ...
Page 8: ...VIII Introduction ...
Page 121: ...Conformity 113 17 Conformity ...
Page 122: ...114 Notes 18 Notes ...
Page 123: ...Notes 115 ...