Campbell CR5000 Specifiche Pagina 209

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 238
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 208
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
Vedere la pagina 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 237 238

Commenti su questo manuale

Nessun commento