Campbell CR5000 Operator's Manual page 209

Measurement and control system
Table of Contents

Advertisement

DataTable is called, it will process data as programmed and check the output
condition.
CallTable Example
This example uses CallTable to call the ACCEL table.
CallTable ACCEL
Data, Read, Restore
Used to mark the beginning of a data list.
Syntax
Data list of constants
Read [VarExpr]
Restore
Remarks
Data function: A list of floating point constants that can be read (using Read)
into an Array Variable.
Parameter: A list of floating point constants.
Reads Data from Data declaration into an array. Subsequent Read picks up
where current Read leaves off.
Parameter: Variable destination.
Restore pointer to Data to beginning. Used in conjunction with Data and
Read.
Data Statement Example
This example uses Data to hold the data values and Read to transfer the values
to variables.
Data 1, 2, 3, 4, 5
Data 6, 7, 8, 9, 10
For I = 1 To 5
Next I
For I = 1 To 5
Next I
This next example uses Restore to read 1, 2, 3, 4 into both X( ) and Y( )
variables.
Data 1, 2, 3, 4
For I = 1 To 4
Next I
Restore
For I = 1 To 4
Next I
ClockSet
(Source)
Sets the CR5000 clock from the values in an array. The most likely use for
this is where the CR5000 can input the time from a more accurate clock than
Read x( I )
Read y( I )
Read X( I )
Read Y( I )
Section 9. Program Control Instructions
'data for x
'data for y
9-3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CR5000 and is the answer not in the manual?

Table of Contents