Stopping And Resuming Execution - Omron SYSMAC CV500-BSC11 Operation Manual

Basic units
Table of Contents

Advertisement

Program Execution and Debugging

4-3-3 Stopping and Resuming Execution

STOP Command
1, 2, 3...
CONT Command
BREAK Command
1, 2, 3...
The STOP command is inserted in the program in advance. When the program is
executed and the STOP command is reached, the program is stopped. In the fol-
lowing example, the STOP command is placed at line 55.
55 STOPs
. . . . . . . . . . . . . . . . . . . .
1. Execute the program.
RUNs
2. The program is stopped at line 55 by the STOP command and the line num-
ber (55) is displayed.
55 STOP
RUN
7
Stop in 55
To resume the program stopped by the STOP command, the CONT command is
used.
CONTs
Erase line 55. (55s)
CONT
11
Stop in 55
CONT
15
Stop in 55
CONT
Ok
55
The program execution can also be stopped by the BREAK command. With this
command, the line where execution is to be stopped is specified. This method
stops the execution without modifying the program. Up to 10 lines, where the
execution is to be stopped, can be specified.
BREAK 20,70s
. . . . . . . . . . . . . . . .
1. First specify a break line execute the program. (RUNs)
2. Displays a message and stops the program before executing line 20. Then
resumes execution. (CONTs)
3. Displays a message and stops the program before executing line 70. Then
resumes execution. (CONTs)
BREAK 20, 70
Ok
RUN
Break in 20
CONT
7
11
15
Break in 70
CONT
Ok
To cancel the effect of the BREAK command, use the BREAK DELETE com-
mand.
BREAK DELETE 20s
. . . . . . . . . . .
BREAK DELETE ALLs
. . . . . . . . . .
BREAKs
. . . . . . . . . . . . . . . . . . . . . . .
55 is the line number into which STOP
command is inserted.
20 and 70 are the line nos. where the
program is required to break
20 is the break line no
ALL means all break lines are deleted
BREAK means the set break line is dis-
played
Section 4-3
69

Advertisement

Table of Contents
loading

Table of Contents