I n s t a l l a t i o n m a n u a l .
14.3
Subroutine associated with the reset.
For each channel, the reset may have an associated subroutine, which will be executed after
pressing the [RESET] key on the operator panel or when the PLC activates the RESETIN
mark. This subroutine, for example, establishes any initial conditions that are different from
those set by the reset or conditioned to the configuration of the machine, activates
operations/modes that disable the reset, etc.
If this subroutine exists, the CNC will execute it immediately after the reset. If this subroutine
is missing, the CNC executes the reset directly.
Execution of subroutine
During execution, the CNC displays the name of the subroutine on the general status bar.
The CNC does not display the blocks under execution, however, it executes the subroutine
as a single block, this means that the block-by-block execution is not affected.
The CNC executes the subroutine with the "Functions G" option of the simulated execution
mode.
• The execution takes into account tool radius compensation (functions G41 and G42),
hence drawing the tool center path.
• The execution does not send M H S T functions to the PLC.
• The execution does not move the axes of the machine nor starts the spindle.
• The execution takes into account the dwells programmed with G4.
• The execution takes into account the program stops programmed with M00 and M01.
14.3.1
Configure the subroutines.
Name and location of the subroutine.
The name of the subroutine must be PROGRAM_RESET (without an extension) and it will
be saved in the folder ..\Users\Sub. If there are several channels, there may be a different
subroutine for each channel, whose name must be PROGRAM_RESET_Cn, where n is the
channel number (between 1 and 4).
Name.
PROGRAM_RESET
PROGRAM_RESET_C1
PROGRAM_RESET_C2
PROGRAM_RESET_C3
PROGRAM_RESET_C4
Executing the reset and the associated subroutine.
Each channel can have a subroutine associated with the reset. The reset process is as
follows.
1
The user presses the [RESET] key on the operator panel or the PLC activates the
RESETIN (RESETIN=1) mark.
2
The channel assumes the initial conditions (those defined by the machine parameters).
3
The channel activates the RESETOUT (RESETOUT=1) mark to indicate that the reset
has finalized. This mark stays active for the time period set in general parameter
MINAENDW.
Channel.
Channel 1. The CNC accepts both names for the subroutine
associated with the first channel and where both subroutines exist,
the CNC will execute the PROGRAM_RESET.
Channel 2.
Channel 3.
Channel 4.
14.
CNC 8060
CNC 8065
(R
: 1709)
EF
·619·