Argox PA-20 Basic Programming Manual Uživatelský manuál Strana 37

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 143
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 36
PT-Basic Programming Manual Ver. 1.00 36/143
ON TIMER GOSUB
Purpose
To activate TIMER event trigger.
Syntax
ON TIMER(N%, duration%) GOSUB SubLabel | SubName
Example
ON TIMER(1,200) GOSUB TimeOut
TimeOut:
OFF TIMER(1)
RETURN
Description
When the system runs out of the time duration specified by
user, a specific subroutine will be executed.
Up to five timers can be set in a BASIC program. Be sure the
timer IDs are properly differentiated. Otherwise, the latter
created timer will overwrite the former one.
N% is an integer variable in the range of 1 to 5, indicating the
ordinal number of timer.
duration% is an integer variable, indicating a specified period
of time in units of 10 ms.
Zobrazit stránku 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 142 143

Komentáře k této Příručce

Žádné komentáře