Rockwell-automation 1771-DB BASIC MODULE Manuel d'utilisateur Page 188

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 394
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 187
Chapter
Statements
1
1
11 -36
Use the STOP statement to break program execution at specific points in a
program. After a program is stopped you can display or modify variables.
You can resume program execution with a CONT command (page 10 -3).
The STOP statement allows for easy program debugging.
Note that the line number printed out after execution of the STOP
statement is the line number following the STOP statement, not the line
number that contains the STOP statement.
Syntax
STOP
Example
>1
REM EXAMPLE PROGRAM
>
10 FOR I = 1 TO 100
>
20 PRINT I
>
30 STOP
>
40 NEXT I
READY
>RUN
1
STOP – IN LINE 40
READY
>CONT
2
STOP – IN LINE 40
READY
>
CONT
3
STOP – IN LINE 40
READY
>CONT
4
STOP – IN LINE 40
READY
>
STOP
Vue de la page 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 393 394

Commentaires sur ces manuels

Pas de commentaire