Creating Subroutines Called by G Functions
en-938872/2 5 - 3
5
5.1 Calling Subroutines by G Functions
Gxxx Subroutine call by a G function.
Function Gxxx is used to call and execute a subroutine.
Function Gxxx is used for execution of machining cycles. The cycles created can be
customised. This functionality is also used to create special functions.
Syntax
N.. Gxxx Parameters specific to each machining cycle.
Gxxx This function forces a call to subroutine %10xxx whose
number corresponds to the machining cycle.
Example:
- G81 calls subroutine %10081,
- G199 calls subroutine %10199.
Parameters The parameters (or arguments) specific to the
machining cycle must be specified after Gxxx.
Properties of the Functions
Functions Gxxx calling subroutines are modal.
A function Gxxx is nonmodal when the cancellation function G80 is included in the
subroutine called by the cycle.
Cancellation
Modal functions Gxxx are cancelled by function G80 (this function does not call a
subroutine).
Notes
!
CAUTION
Since functions G200 to G255 may be used for NUM applications, it is recommended to use
only functions G100 to G199.
List of G functions forcing a call to a subroutine:
- G06, G31, G33, G38, G45, G46, G48, G49, G63, G64, G65, G66, G81-G89,
- G100 to G255 (reminder: G200 to G255 reserved for NUM).