·408·
Programming manual
CNC 8055
CNC 8055i
14.
PROGRAM CONTROL INSTRUCTIONS
·M· & ·EN· MODELS
SOFT: V02.2X
Program instructions
14.8 Program instructions
With this CNC, from a program in execution, it is possible to:
• Execute another program. Instruction (EXEC P.....)
• Execute another program in modal mode. Instruction (MEXEC P.....)
• Generate a new program. Instruction (OPEN P.....)
• Add blocks to an existing program. Instruction (WRITE P.....)
( EXEC P(expression), (directory) )
The EXEC P instruction executes the part-program of the indicated directory
The part-program may be defined by a number or any expression resulting in a number.
By default, the CNC interprets that the part-program is in the CNC's RAM memory. If it is in another
device, it must be indicated in (directory).
HD in the Hard Disk (KeyCF).
DNC2 in a PC connected through the serial line.
DNCE in a PC connected through Ethernet.
( MEXEC P(expression), (directory) )
The MEXEC instruction executes the part-program of the indicated directory and it also becomes
modal; i.e. if after this block, another one is programmed with axis movement; after this movement,
it will execute the indicated program again.
The part-program may be defined with a number or with an expression whose result is a number.
By default, the CNC interprets that the part-program is in the CNC's RAM memory. If it is in another
device, it must be so indicated in (directory):
HD in the Hard Disk (KeyCF).
DNC2 in a PC connected through the serial line.
DNCE in a PC connected through Ethernet.
If while the modal part-program is selected, a motion block is executed with a number of repetitions
(for example X10 N3), the CNC ignores the number of repetitions and executes the movement and
the modal part-program only once.
If while a part-program is selected as modal, a block containing the MEXEC instruction is executed
from the main program, the current part-program stops being modal and the part-program called
upon with MEXEC will then become modal.
If within the modal part-program, an attempt is made to execute a block using the MEXEC instruction,
it will issue the relevant error message.
1064: The program cannot be executed.
( MDOFF )
The MDOFF instruction indicates that the mode assumed by a subroutine with the MCALL
instruction or a part-program with MEXEC ends in that block.
( OPEN P(expression), (destination directory), A/D, "program comment" )
The OPEN instruction begins editing a part-program. The part-program number may be indicated
by a number or any expression resulting in a number.
By default, the new part-program edited will be stored in the CNC's RAM memory. To store it another
device, it must be indicated in (destination directory).
HD in the Hard Disk (KeyCF).
DNC2 in a PC connected through the serial line.
DNCE in a PC connected through Ethernet.