Remote-processing BASIC for the CX-10 Modbus Instrukcja Użytkownika Strona 16

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 84
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 15
BASIC PROGRAMMING GUIDE
2-7
The above example shows that ONTICK continues to run after a CLEAR statement but variables are cleared.
If a program error were generated after the clear, the program would stop because ONERR was cleared.
The next example demonstrates how CLEAR S can be used in a FOR-NEXT loop. A C-STACK error is
returned if the CLEAR S is not in line 20.
10 FOR N=0 TO 10
20 IF N=5 THEN CLEAR S : GOTO 10
30 PRINT N
40 NEXT
>RUN
1
2
3
4
0
1
Przeglądanie stron 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 83 84

Komentarze do niniejszej Instrukcji

Brak uwag