EasyManua.ls Logo

Fagor 8070 BL - Page 281

Fagor 8070 BL
444 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming manual.
CNC 8070
SUBROUTINES.
14.
Generic user subroutines (G500-G599).
·281·
(REF: 1709)
Additional data in the block.
Besides initializing the parameters, any other type of additional information may be added
to these functions, even movements. This information must be programmed before the
subroutine calling function; otherwise, the data will considered as for initializing the
parameters. The associated subroutine is executed once the execution of the rest of the
information programmed in the block has ended.
User subroutines (G500-G599) and modal subroutines.
User routines do not alter the modal/non-modal status of other possible active subroutines,
this means should there be an active subroutine with #MCALL among the user subroutines,
it will remain modal.
For this case, if the program activates a local subroutine as a modal subroutine and within
the user subroutine there are motion blocks, the CNC will display a subroutine not found error.
Modal subroutines must be global, so they may be used outside the range of influence of
the program.
Cancelling a modal subroutine.
A subroutine stops being modal and in the following cases.
When programming G80 or #MDOFF.
After executing an M02 or an M30 and after a RESET.
Define the subroutines.
The subroutines associated with these functions will be global and will have the same name
as the function, without extension. The subroutines must be defined in the folder
..\Users\Sub. If the CNC executes a function and there is no subroutine, the CNC will issue
an error message.
G500 will have subroutine G500 associated with it.
G501 will have subroutine G501 associated with it.
· · ·
G599 will have subroutine G599 associated with it.
Subroutines supplied by Fagor.
Execute the subroutines.
The CNC executes the subroutine after executing the function with which they are
associated. To execute the subroutine as a single block, program the instructions #ESBLK
and #
RETDSBLK. After executing the instruction #ESBLK, the CNC executes the blocks
programmed next as a single block until it reaches the end of the subroutine (#RETDSBLK).
If the file that contains the subroutine has the "hidden" attribute, the CNC does not display
the contents of the subroutine while it is executed. The attributes of the files may be modified
from the utilities mode (see the operating manual).
G01 X50 F450 G500 P0=15 P1=20
It first executes the programmed movement to point X50 and then the subroutine
associated with G500 initializing parameters P0 and P1.
G500 P0=15 P1=20 G01 X50 F450
All the data is interpreted as parameter setting, where P6(G)=1, P23(X)=50 and
P5(F)=450.
Subroutine. Meaning.
G500 HSC cancellation.
G501 HSC activation for roughing operations.

Table of Contents

Related product manuals