Rockwell-automation 1771-DB BASIC MODULE Bedienungsanleitung Seite 188

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 394
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 393 394

Kommentare zu diesen Handbüchern

Keine Kommentare