Section 9. Program Control Instructions
9-3
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 for x
Data 6, 7, 8, 9, 10
'data for y
For I = 1 To 5
Read x( I )
Next I
For I = 1 To 5
Read y( I )
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
Read X( I )
Next I
Restore
For I = 1 To 4
Read Y( I )
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
Содержание CR5000
Страница 39: ...Section 1 Installation and Maintenance 1 15 S A N Y O FIGURE 1 11 6 Removal of band clamp and battery ...
Страница 40: ...Section 1 Installation and Maintenance 1 16 This is a blank page ...
Страница 54: ...Section 2 Data Storage and Retrieval 2 14 This is a blank page ...
Страница 88: ...Section 4 CRBasic Native Language Programming 4 12 This is a blank page ...
Страница 94: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 172: ...Section 7 Measurement Instructions 7 46 This is a blank page ...
Страница 206: ......
Страница 236: ...Index Index 4 This is a blank page ...
Страница 237: ...This is a blank page ...