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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 186
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 46
Commands - 17
CLEAR TICK
Tasking Statement
SYNTAX: CLEAR TICK n
PURPOSE: To reset the internal TICK clock to zero. This does not affect a calendar/clock or the counter for the
ON TICK statement.
REMARKS: There are three TICK timers in CAMBASIC. The parameter n is the timer number and the range is 0
to 2. All TICK timers are independent. This statement can be used as an electronic stop watch. It
can be used in conjunction with the ON BIT statement to measure how long an input is active.
See the Multitasking Chapter for more information.
RELATED: ON TICK, TICK
EXAMPLE: 10 CLEAR TICK 0
20 IF BIT(&18,0) = 1 THEN 20
30 PRINT TICK (0)
RUN
37.20
This example measured the elapsed time for bit 0 of address &18 to go high.
ERROR: <Data out of range> - if n>2
<Data negative> - for n
Vista de página 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 185 186

Comentários a estes Manuais

Sem comentários