Campbell CR800 Specifiche Pagina 242

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 324
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 241
Section 9. Program Control Instructions
RealTime (TIME)
PulseCount (WINDSP,1,1 ,1,1,1.0,0)
PulseCount (RAIN,1,2,2,0,1.0,0)
CallTable METDATA
NextScan
EndProg
Call
The Call statement is used to transfer program control from the main program
to a subroutine.
Syntax
Call Name(list of variables)
Remarks
Use of the Call keyword when calling a subroutine is optional.
The Call statement has these parts:
Call Call is an optional keyword used to transfer
program control to a subroutine.
Name The Name parameter is the name of the
subroutine to call.
List of Variables or Constants The list may contain variables, constants, or
expressions that evaluate to a constant (i.e., do
not contain a variable) that should be passed
into the variables declared in the subroutine.
Values of variables passed can be altered by
the subroutine. If the subroutine changes the
value of the subroutine declared variable, it
changes the value in the variable that was
passed in. If a constant is passed to one of the
subroutine declared “variables”, that “variable”
becomes a constant and its value cannot be
changed by the subroutine.
Call Statement Example
See Sub description in Section 5.
CallTable
Used to call a data table.
Syntax
CallTable Name
Remarks
CallTable is used in the main program to call a DataTable. DataTables are
listed in the declaration section of the program prior to BeginProg. When the
DataTable is called, it will process data as programmed and check the output
condition.
9-2
Vedere la pagina 241
1 2 ... 237 238 239 240 241 242 243 244 245 246 247 ... 323 324

Commenti su questo manuale

Nessun commento