![Fagor 8070 BL Скачать руководство пользователя страница 265](http://html1.mh-extra.com/html/fagor/8070-bl/8070-bl_programming-manual_537547265.webp)
CNC 8070
14
·265·
(R
EF
: 1709)
SUBROUTINES.
A subroutine is a set of blocks that, once properly identified, may be called upon several times
from another subroutine or from the program. Subroutines are normally used for defining a
bunch of operations or movements that are repeated several times throughout the program.
The CNC allows up to a total of seven subroutines to be executed per block (G180, G380,
G500, functions M with subroutine, etc.).
Types of subroutines.
The CNC has two types of subroutines, namely local and global. There is also a third type
available, OEM subroutines, that are a special case of a global subroutine defined by the
OEM. See
"14.5 OEM subroutine execution."
Global subroutines.
The global subroutine is stored in CNC memory as an independent program. This subroutine
may be called upon from any program or subroutine being executed.
Local subroutines.
The local subroutine is defined as part of a program. This subroutine may only be called upon
from the program where it has been defined.
A program can have several local subroutines; but they all must be defined before the body
of the program. A local subroutine can call a second local subroutine with the condition that
the calling subroutine be defined after the one being called.
Subroutine nesting levels and parameters.
Since a subroutine may be called upon from the main program (or a subroutine) and another
subroutine from this one and so on. The CNC limits the number of these calls to a maximum
of 20 nesting levels.
Arithmetic parameters in the subroutines
Local parameters.
The CNC has global parameters (accessible from the program or any subroutine) and local
parameters (accessible only from the program or subroutine where they have been
programmed).
Local parameters may be assigned to more than one subroutine up to 7 parameter nesting
levels within the 20 subroutine nesting levels. Not all the subroutine call types change the
nesting level; only the #PCALL, #MCALL calls and functions G180 to G189 and G380 to
G399.
Global parameters.
Global parameters will be shared by the program and the subroutines of the channel. They
may be used in any block of the program and of the subroutine regardless of the nesting level
they may be at.
Содержание 8070 BL
Страница 1: ... Ref 1709 8070 CNC Programming manual ...
Страница 8: ...BLANK PAGE 8 ...
Страница 12: ...BLANK PAGE 12 ...
Страница 14: ...BLANK PAGE 14 ...
Страница 26: ...BLANK PAGE 26 ...
Страница 28: ...BLANK PAGE 28 ...
Страница 30: ...BLANK PAGE 30 ...
Страница 60: ...Programming manual CNC 8070 2 MACHINE OVERVIEW Home search 60 REF 1709 ...
Страница 72: ...Programming manual CNC 8070 3 COORDINATE SYSTEM Coordinate programming 72 REF 1709 ...
Страница 80: ...Programming manual CNC 8070 4 WORK PLANES Select the longitudinal axis of the tool 80 REF 1709 ...
Страница 96: ...Programming manual CNC 8070 5 ORIGIN SELECTION Polar origin preset G30 96 REF 1709 ...
Страница 178: ...Programming manual CNC 8070 9 TOOL PATH CONTROL MANUAL INTERVENTION Variables 178 REF 1709 ...
Страница 304: ...Programming manual CNC 8070 16 C AXIS Machining of the turning side of the part 304 REF 1709 ...
Страница 440: ...Programming manual CNC 8070 22 STATEMENTS AND INSTRUCTIONS Flow controlling instructions 440 REF 1709 ...
Страница 442: ...Programming manual CNC 8070 23 CNC VARIABLES 442 REF 1709 ...
Страница 443: ...Programming manual CNC 8070 443 User notes REF 1709 ...