Rockwell-automation 1771-DB BASIC MODULE Manual de usuario Pagina 188

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 394
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 393 394

Comentarios a estos manuales

Sin comentarios