Programming manual.
CNC 8070
EXECUTING BLOCKS AND PROGRAMS
15.
Abort the execution of the program and resume it in another block or
program.
·295·
(REF: 1709)
15.3.1 Define the execution resuming block or program.
The point where the execution is resumed is defined with the #ABORT instruction. Within
the same program, it is possible to define several resume points; when interrupting the
program, the CNC will use the one that is active at the time; in other words, the one executed
last. If no resume point has been defined, the execution continues in the #ABORT OFF
instruction; if the instruction has not been defined, the program will jump to the end of the
program (M30).
Programming.
When defining this instruction, there is an option to define a block or program where it will
resume execution.
Programming format.
The programming format is the following; the arguments appear between curly brackets.
#ABORT
#ABORT {label}
#ABORT ["{path\name}"]
Label programming.
The labels that identify the blocks may be of a number type or a name type. In the program,
the ":" character must be added to the number type labels after the block number.
Name and location (path) of the program to be executed.
The program to be executed may be defined by either writing the full path or without it. When
indicating the whole path, the CNC only looks for the program in the indicated folder. If the
path has not been indicated, the CNC looks for the program in the following folders and in
this order.
1 Directory selected with the #PATH instruction.
2 Directory of the program that executes the #ABORT instruction.
3 Directory defined by machine parameter SUBPATH.
{label}
Block label.
{path\name}
Program name and location (path).
#ABORT
Execution continues at #ABORT OFF; if there isn't one, resumes at M30.
#ABORT N120
The execution continues in block N120.
#ABORT [LABEL]
The execution continues in block [LABEL].
#ABORT ["PRG.NC"]
The execution continues in program PRG.NC.
#ABORT ["C:\FAGORCNC\USERS\PRG\EXAMPLE.NC"]
The execution continues in program EXAMPLE.NC.
#ABORT N50
·
·
N50: G01 G91 X15 F800
#ABORT [LABEL]
·
·
[LABEL] G01 G91 F800