Remote Processing Coorporation RPC-320 Especificações Página 149

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 186
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 148
Commands - 119
TICK
Process Function
SYNTAX: a=TICK(n)
PURPOSE: To return the time from the TICK timers.
REMARKS: There are three TICK timers in CAMBASIC that accumulate on a 12 hour basis. These are separate
from the calendar/clock and are not battery-backed.
n is from 0 to 2, corresponding to the tick timer.
The functions return the time in 0.005 (0.010 in 9 Mhz systems) second increments up to 12 hours.
Using the process clock has an advantage over the calendar/clock in that you deal only with seconds,
and not hours and minutes.
On power–up all TICK timers start at 0.0 and begin counting. You can reset the process at any time
by using the CLEAR TICK statement. The process clock cannot be preset to a value other than 0
(using CLEAR TICK).
RELATED: CLEAR TICK, ON TICK
EXAMPLE: 10 CLEAR TICK 2
20 FOR X=0 TO 5000 : NEXT
30 PRINT TICK (2)
RUN
.6
ERROR: <Data negative> - for n
<Data out of range> - if n > 2
Vista de página 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 185 186

Comentários a estes Manuais

Sem comentários