
B-63943EN-2/01 7.DEBUGGING FUNCTION
- 277 -
Single-block execution
Enable single-block execution (set to ON). Move the cursor to OFF in
the single-block execution field. Press
INPUT
to set ON. To reset the
setting to OFF, press
INPUT
again. When the setting is changed to ON
during P-CODE macro execution, the execution stops. To re-execute
the macro, press
SHIFT
and
1
.
Break function
P-CODE macro execution must be in the stopped state. Move the
cursor to the break condition you want to set.
Type a value, then press
INPUT
. Next, move the cursor to OFF in the
break condition field. Press
INPUT
to change the setting to ON. To
reset the setting to OFF, press
INPUT
again. To re-execute the P-
CODE macro, press
SHIFT
and
1
.
The relationship among break conditions is shown in the figure below.
When the status of the P-CODE macro being executed matches the
break conditions, the execution of the P-CODE macro is stopped.
When 0 is set in a break condition, that condition is excluded from the
break conditions.
Program No.
Sequence No.
Number of blocks
OR
Iteration count
ND
Stop
AND
NOTES
1 The number of executed blocks is preset to 0 when
the program end command (M99<Pp>) has been
executed in the main program of the P-CODE
macro.
2 When no sequence number is assigned to a block
in the P-CODE macro, the sequence number of the
previously executed block is used to make a
decision on a break.