Section 9. Program Control Instructions
9-8
Delay
Used to delay the program.
Syntax
Delay(
Delay, Units
)
Remarks
Delay processing the specified time before continuing.
Parameter
& Data Type
Enter
Delay
Constant
The time to delay before continuing with the next measurement.
Units
The units for the delay.
Constant
Alpha
Code
Numeric
Code
Units
USEC 0
microseconds
MSEC 1
milliseconds
SEC 2
seconds
MIN 3
minutes
Delay Function Example
This example uses Delay to cause the program to pause for 20 milliseconds.
Delay(
20, msec
)
Do
Repeats a block of statements while a condition is true or until a condition
becomes true.
Syntax 1
Do
[{
While
|
Until
}
condition
]
[
statementblock
]
[
Exit Do
]
[
statementblock
]
Loop
Syntax 2
Do
[
statementblock
]
[
Exit Do
]
[
statementblock
]
Loop
[{
While
|
Until
}
condition
]
The
Do...Loop
statement has these parts:
Part Description
Do
Must be the first statement in a
Do...Loop
control structure.
While
Indicates that the loop is executed while
condition
is true.
Until
Indicates that the loop is executed until
condition
is true.
Summary of Contents for CR9000
Page 6: ...CR9000 Table of Contents iv This is a blank page ...
Page 22: ...CR9000 Overview OV 16 This is a blank page ...
Page 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Page 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Page 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 217: ...This is a blank page ...